Hacking Android apps in Windows with Frida (Part I)
Frida is a dynamic instrumentation toolkit to debug and analyze processes in multiple platforms (Windows, Linux, MacOS, Android, iOS, …).
First thing before install frida-tools, you we’ll need python 3.x and pip tool. After that you can install easily Frida opening the Command Prompt as Administrator:
That’s all you need in your laptop.
As frida works like a client-server model, now we have to setup the frida server in your Android phone. (Assuming that you already have adb installed).
After unzip it, connect your Android phone to your laptop and send the executable to your phone:
$ adb root # might be required $ adb push frida-server /data/local/tmp/ $ adb shell "chmod 755 /data/local/tmp/frida-server" $ adb shell "/data/local/tmp/frida-server &"
To test that everything works well, try to list your Android phone processes from your laptop Command Prompt as Administrator:
That should output something similar to this:
If that’s the case, your setup with frida is already finished 😎
To avoid to start frida-server after each reboot/shutdown, you can use MagiskFrida plugin for Magisk as shown below:
We will continue this series to dive into the Android apps internals in the following weeks.