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

有没有hook jni层的demo #32

Open
TealerLinkGuo opened this issue Jun 8, 2019 · 1 comment
Open

有没有hook jni层的demo #32

TealerLinkGuo opened this issue Jun 8, 2019 · 1 comment

Comments

@TealerLinkGuo
Copy link

有没有hook jni层的demo

@fettdrac
Copy link

fettdrac commented Jul 5, 2019

导入whale.h,调用里面的WInlineHookFunction函数即可实现inline hook,不过如果在回调中调用原函数会崩溃,段错误(x86 armv7),如果只是简单的MethodReplacement的话稳定性OK
如果一定要调原函数,可以考虑加个MSHook,那个集成度高,稳定性更好些,期待asLody大佬修复下,对arm指令不是很了解

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