Results 61 comments of Ruikai Liu

编译环境的问题吧

我用的是在线工具 http://armconverter.com/

应该是了,调用`loadLibrary`会把callerClass也传入作为参数,可能和这里的检查有关,导致找不到动态库

调用原方法是从hook代码里唤起的,所以`callerClass`是插件中而不是在原始APP中 可以试下在创建插件的`DexClassLoader`时把要搜索的`librarySearchPath`设置为APP动态库所在的目录

YAHFA是java代码hook的工具,GPLv3。它本身和VirtualApp没有关系

`OFFSET_classlinker_in_Runtime` is not initialized on Android 12: https://github.com/PAGalaxyLab/YAHFA/blob/fe3971295f149068664a28be6589f9d28bcedc86/library/src/main/jni/utils.c#L17 So maybe we could set the offset value for Android 12 and try again?

Visibly initialization was added for Class initialization after Android R. Detailed discussion for the YAHFA commits can be found [here](https://github.com/PAGalaxyLab/YAHFA/pull/133). In short, when running visibly initialization, static method addresses are...

可以再试试其他final方法,最好是自己写一个测试app

可以,构造方法对应的也是`ArtMethod`结构体。匿名类也是需要先通过反射拿到目标方法的`ArtMethod`

64位GcRoot转为指针似乎比较奇怪 http://androidxref.com/6.0.1_r10/xref/art/runtime/mirror/object_reference.h#70 应该要具体结合调试来看怎么从GcRoot获取到实际对象