XposedBridge
XposedBridge copied to clipboard
Method.invoke crash in Android 7.0-7.1
Calling "XposedBridge.hookMethod" to hook "java.lang.reflect.Method.invoke" causes a crash in the Genymotion emulator with Android 7.0-7.1. The log is the following:
04-22 05:09:52.953 1517-1517/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xfffe6f48 in tid 1517 (re-initialized>)
04-22 05:09:53.013 1531-1531/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Android/vbox86p/vbox86p:7.1.1/NMF26Q/25:userdebug/test-keys'
Revision: '0'
ABI: 'x86'
pid: 1517, tid: 1517, name: re-initialized> >>>
This problem does not occur in Genymotion with Android 6.0 and lower. I guess that the massive work Xposed is doing to deal with ART changes in Nougat may be causing the crash, and maybe there is nothing that can be done about it (other than avoid to hook "invoke").
Now I do understand that hooking "invoke" can be dangerous by itself. However I'm studying obfuscators and packers so such method is crucial for the analysis. I'm interested in knowing if there are any hopes or if I should just give up on "invoke" (or just stick to 6.0 for the moment).
Thanks