Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when hook something #58

Open
dalishen99 opened this issue Jan 23, 2024 · 1 comment
Open

crash when hook something #58

dalishen99 opened this issue Jan 23, 2024 · 1 comment

Comments

@dalishen99
Copy link

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)

@canyie
Copy link
Owner

canyie commented Jan 24, 2024

机型?系统版本?pine 版本?
这个日志看起来不全,用 level:assert 过滤,不要用你包名过滤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants