This branch is OUTDATED!!! Please see: https://github.com/nevermoe/AOSHook/blob/Marshmallow/README.md
A hook framework based on Libiegou and adbi.
What I have modifed is written in this blog.
- modify the jni/inject.c file. You can hook functions both by address or by the function's name:
hook_by_addr(&eph1, "libc.so", 0x2ca43c, hook_thumb1, hook_arm1);
hook_by_name(&eph_sendto, "libc.so", "sendto", sendto_thumb, sendto_arm);
-
ndk-build
-
push the
stalker
andlibinject.so
file to your android (e.g. push to /data/local/tmp) -
On android, type
./stalker [pid]
.