AOSHook

A hook framework based on Libiegou and adbi.

What I have modifed is written in this blog.

Usage

  1. 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);
  1. ndk-build

  2. push the stalker and libinject.so file to your android (e.g. push to /data/local/tmp)

  3. On android, type ./stalker [pid].