Frida is a dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers
Zygisk part of Magisk allows you to run code in every Android application's Process.
ZygiskFrida is a zygisk module allowing you to inject frida gadget in Android applications in a more stealthy way.
This repo also provides a Riru flavor in case you are still using riru with an older magisk version rather than zygisk.
your.target.application
in the commands)
adb shell 'su -c cp /data/local/tmp/re.zyg.fri/config.json.example /data/local/tmp/re.zyg.fri/config.json'
adb shell 'su -c sed -i s/com.example.package/your.target.application/ /data/local/tmp/re.zyg.fri/config.json'
frida -U -N your.target.application
or frida -U -n Gadget
This assumes that you don't have any other frida server running (f.e. by using MagiskFrida). You can still run it together with frida-server but you would have to configure the gadget to use a different port.
This module also supports adding a start up delay that can delay injection of the gadget to avoid checks run at startup time, loading arbitrary libraries and child gating.
Please take a look at the configuration guide for this.
./gradlew :module:assembleRelease
out
directory.You can also build and install the module to your device directly with ./gradlew :module:flashAndRebootZygiskRelease