Run frida-server in the emulator or device

If you want just a steps summary, go to Summary

Upload frida-server

First, let's test to make sure that we have working connectivity over ADB (Android Debug Bridge).

This lab is also covered off in the Environment Setup video walkthrough.

1. Open a command line and type adb devices

List of devices connected to PC

2. In order for frida to work, you need it's companion frida-server, to be running on the device. You can download it from the frida releases page on Github.

3. Push it to /data/local/tmp with adb push frida-server-XX.Y.ZZ-android-ARCH /data/local/tmp

4. Obtain root with adb root, then connect to your device with adb shell. Navigate to the /data/local/tmp directory with cd /data/local/tmp .

5. At this point it's preferred to rename frida-server-XX.Y.ZZ-android-ARCHto something a little less annoying to type: mv frida-server-XX.Y.ZZ-android-ARCH frida-server

6. Make the server executable with chmod 777 frida-server

Run frida-server persistently using nohup

7. Start the server with nohup ./frida-server &

Summary

Download frida from releases page on Github and then:

adb push frida-server-XX.Y.ZZ-android-ARCH /data/local/tmp
adb root
adb shell
cd /data/local/tmp
mv frida-server-XX.Y.ZZ-android-ARCH frida-server
chmod 777 frida-server
nohup ./frida-server &

Last updated