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 failed #6

Closed
Rprop opened this issue May 19, 2017 · 1 comment
Closed

hook failed #6

Rprop opened this issue May 19, 2017 · 1 comment

Comments

@Rprop
Copy link

Rprop commented May 19, 2017

在genymotion android 5.0.0上hook没成功,
findAndBackupAndHook(targetClass, methodName, methodSig, hook, backup)显示done,
但是调用methodName所代表的方法依然是原来的方法, 调用backup所代表的方法会跳到methodName所代表的方法,
说明backup成功, hook失败了.

还未深究源码先贴这

@rk700
Copy link
Member

rk700 commented May 20, 2017

hook的目标是什么?通过oatdump打印下调用目标方法的相关代码对应的机器指令呢?

hook失败,基本上是因为目标方法在执行时没有通过entrypoint这种间接寻址的方式跳转,而是直接调用目标方法了

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