Emulator Hooking Framework based on Xposed
- Modify
XEHook.java
to filter which app you want to hook: https://github.com/nevermoe/XEHook/blob/master/app/src/main/java/com/nevermoe/xehook/XEHook.java#L19 - modify
nativehook.c
to hook functions: https://github.com/nevermoe/XEHook/blob/master/app/src/jni/nativehook.c#L59 - Build using
./gradlew assembleDebug
- Install the apk file as an Xposed module as usual.
- You may have to call dlopen in
nativehook.c
first if the native library is not loaded yet. - Use path like "nb/libc.so" to eliminate ambiguity because there are two architectures' libc.
Refer to EHOOK for more information.