Inject into an app at launch or via breakpoints
mainWhen injecting into apps that use emulation (cross-ISA via libhoudini or libndk_translation), you may need to use specific timing or breakpoint strategies to ensure successful injection.
Common Scenarios:
- Wait for launch: Use
--watchto wait for the process to appear. - Inject on first dlopen: Use
--launch --bp-ldto inject as soon as the first native/emulateddlopenoccurs. - Inject on specific symbol: Use
--launch --bp-sym <binary> <symbol>to trigger injection at a specific code location. - Delayed injection: Use
--delay <micros>to provide a buffer after launch.
# Inject as soon as the first native/emulated dlopen call happens after launch.
./AndKittyInjector --package com.target.package --libs /data/local/tmp/libtest.so --launch --bp-ld
# Inject on a breakpoint at a specific symbol in a specific binary.
./AndKittyInjector --package com.target.package --libs /data/local/tmp/libtest.so \
--launch --bp-sym /libc.so malloc