crash when hook something
Opened this issue · 1 comments
Pine.hook(PermissionInfo.class.getDeclaredMethod("getProtectionFlags"), new MethodHook() {
@OverRide
public void beforeCall(Pine.CallFrame callFrame) {
callFrame.setResult(0);
}
@Override
public void afterCall(Pine.CallFrame callFrame) {
callFrame.setResult(0);
}
});
当包名是android的时候,出现了如下crash
2024-01-23 22:17:19.223 24149-24149 DEBUG pid-24149 A Cmdline: com.z9.yuequan
2024-01-23 22:17:19.223 24149-24149 DEBUG pid-24149 A pid: 23279, tid: 23339, name: Thread-6 >>> com.z9.yuequan <<<
2024-01-23 22:17:19.224 24149-24149 DEBUG pid-24149 A #6 pc 00000000001b25d8 [anon:dalvik-classes.dex extracted in memory from /data/app/~~7zWuf_USTLvIIdTmL8wBpQ==/com.z9.yuequan-2XOaDz6VWDbc4ynM-MB8ZA==/base.apk] (top.canyie.pine.Pine.getObject+0)
2024-01-23 22:17:19.224 24149-24149 DEBUG pid-24149 A #16 pc 00000000001b454c [anon:dalvik-classes.dex extracted in memory from /data/app/~~7zWuf_USTLvIIdTmL8wBpQ==/com.z9.yuequan-2XOaDz6VWDbc4ynM-MB8ZA==/base.apk] (top.canyie.pine.entry.Arm64Entry.intBridge+0)
2024-01-23 22:17:19.224 24149-24149 DEBUG pid-24149 A #49 pc 00000000000188bc /data/data/com.z9.yuequan/code_cache/.overlay/base.apk/classes2.dex (com.qihoo.superfuzz.MainActivity.dealWithPackage+0)
2024-01-23 22:17:19.224 24149-24149 DEBUG pid-24149 A #54 pc 0000000000017b5c /data/data/com.z9.yuequan/code_cache/.overlay/base.apk/classes2.dex (com.qihoo.superfuzz.MainActivity$1$1.run+0)
机型?系统版本?pine 版本?
这个日志看起来不全,用 level:assert 过滤,不要用你包名过滤