-
Notifications
You must be signed in to change notification settings - Fork 1
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
mixin类注入代码失败 #2
Comments
|
如果不起作用,可能是因为Mixin是基于某个Interface的,这个时候Mixin会抽转换成abstruct class,那用下面的试试: 如果发现注入不起作用,可以用dump_kernal工具dump处注入后的dill文件查看是否已经注入成功: 然后查看注入后的dill文件是否已经注入成功: 查看injected.out.dill.txt,查找关键字 "method dispatchEvent"观察这个方法体里是否已经存在注入的代码,如果已经存在则表示注入是成功的,但是触发不了函数,可能是其它原因 |
做全埋点时,需要hook GestureBinding类的dispatchevent方法,这个类是mixin类,注入代码虽然提示成功,实际没效果,打断点,也没有看到注入的逻辑
The text was updated successfully, but these errors were encountered: