canyie / canyie/pine

crash when hook something

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

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 #06 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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.