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

一个奇怪的问题 #17

Closed
wjy000 opened this issue Jun 4, 2017 · 2 comments
Closed

一个奇怪的问题 #17

wjy000 opened this issue Jun 4, 2017 · 2 comments

Comments

@wjy000
Copy link

wjy000 commented Jun 4, 2017

public static void origin (Object thiz, String path)
{
    //Log(thisClass(),"调用原函数");
}

这是hook file类构造函数,我发现如果原函数下面不写任何东西在5.1系统就会崩溃,6.0系统正常,我猜想可能是没有写任何内容导致调用原函数失败,所以必须把这行注释解开才行,这个问题找的我头都大了

@rk700
Copy link
Member

rk700 commented Jun 6, 2017

如果没有任何内容的方法,在编译时会优化为内联,从而造成hook失败

@rk700 rk700 closed this as completed Jun 6, 2017
@wjy000
Copy link
Author

wjy000 commented Jun 6, 2017

看来只能增加一些无用代码了

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