显示 成功挂载 但是 钩子回调 不执行
jing1007209484 opened this issue · 7 comments
2023-12-05 22:38:06.684 22357-22357 Pine space.dualmeta32 D Hooking method public final java.lang.String com.zj.wuaipojie.Demo.a(java.lang.String) with callback NettyServerSingleton.hook.MyHookModule$MyCustomMethodHook@9defe9d
2023-12-05 22:38:06.684 22357-22357 Pine space.dualmeta32 D Mapped new memory 0xe8b0f000 (size 4096)
2023-12-05 22:38:06.684 22357-22357 Pine space.dualmeta32 D InstallReplacementTrampoline: origin 0xe7c1494c origin_entry 0xe7692ee1 bridge_jump 0xe8b0f001
很有可能是被内联了,解决方法:找到该方法所有调用者并逐个调用 Pine.decompile()
,或更换 hook 点。
我也有这问题,挂载成功,回调不执行。
"android.provider.Settings$NameValueCache", "getStringForUser", ContentResolver.class, String.class, int.class
你解决了嘛!
PineConfig.debuggable=true
看里面有注释:
// Android 8.0+ and debug mode, ART may force the use of interpreter mode,
// and entry_point_from_compiled_code_ will be ignored. Set kAccNative to avoid it.
// See ClassLinker::ShouldUseInterpreterEntrypoint(ArtMethod*, const void*)
那就不知道了,我设置debugger=true就好了