-
Notifications
You must be signed in to change notification settings - Fork 759
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
macOS 无法编译出相关 so 库 #54
Comments
此外问个问题,使用 xHook 之后,如何能够调用原本的函数返回呢? 如 hook malloc,myMalloc 仅记录内存分配信息,但是还是要调用系统真正的 malloc 方法返回。 |
我觉得可以通过函数指针直接调原来的malloc,不用担心死循环问题。 |
@AlphaHans 编译警告的问题我有空改一下,暂时请先使用readme中的方法用 NDK r16b 编译吧。 可以用 |
@caikelun 有个问题请教,一定要用r16b么,hook修改的是data,感觉不是一定需要flush cache吧,会不会有其他后果。主要是我的ndk太古老不想换。 |
@fr0zenrain r16b是最后一个官方支持 armeabi 的版本,ndk版本太低的话bug比较多,建议升级哦。需要 flush cache,你可以把 flush 的逻辑临时去掉对比试一下。 |
The text was updated successfully, but these errors were encountered: