ELFinjection is a simple android utility for inject so, it can do the following:
- Using ptrace to inject a so file into the process
./ELFinjection -p <pid> <libpath>
- Use ptrace to inject a so file into the process and execute a remote function
./ELFinjection -p <pid> <libpath> <funcname>
- Add a declared dependency on a dynamic library (DT_NEEDED)
example: readelf -d
./ELFinjection -e <elf_path> <so_path>