Ruikai Liu
Ruikai Liu
Yes it's a known bug. https://github.com/PAGalaxyLab/YAHFA/commit/b15b08adac8758060951f7e270ddf2dda0664586
先找到你要hook的Java方法,在根据方法signature编写相应的hook代码
Any way to reproduce?
试下最新的commit https://github.com/rk700/YAHFA/commit/ce83f47a8f0af54cf51e4858ced4319361dd51ae 通过`kAccCompileDontBother`指定方法不编译,arm和aarch64的trampoline代码没有测试
可见相关说明 https://github.com/rk700/YAHFA/wiki/%E6%9B%B4%E6%96%B0%E8%AF%B4%E6%98%8E
Android 7.0试下把target method的access flag添加kAccNative
entry更新没有生效? x86模拟器是否会出现同样的问题?
Well I think it would be very hard and tricky since `debuggable` is the only way(AFAIK) to have `dex2oat` compiling with inline optimization disabled.
你的native方法是JNI么?如果是JNI的话应该有一个native的java方法对应。可以时下hook把目标替换成那个native java方法
在Xposed里怎么写,这里也是类似的思路 必须先通过反射拿到Test类的构造函数,调用构造一个Test类示例,再返回