There have been a few questions regarding the GUI-Injector, so I want to clarify a few things.
- Magisk Alpha & Delta have problems with handling ptrace correctly, injection may not work here. (Official Magisk and KernelSU are working fine)
- Due to restrictions on android, the library to inject needs to be in a location that allows execution for example /data/local/tmp/ or /data/...
- SELinux on emulators is not handled by default. If your emulator does not have SELinux disabled, please manually set it to Permissive by using setenforce 0
- Android 7 Emulators have old versions of arm translation, please android 9 or 11 (Android 5 might work as well but not tested)
To test whether the injection has been successful, you can use the following commands to check. Run them through Adb or Termux.
su
pidof com.app.package
cat /proc/pid/maps | grep "libTest.so"
Replace pid with the output of the second command and
libTest.so with your library name. Obviously, this command will not work if remapping is enabled.