Search

How to setup Frida and Frida server for android emulator

What is Frida?

It is a dynamic instrumentation toolkit, Frida is used by testers to test security of mobile application, Frida is used to inject our JavaScript code to a application.

Installing frida in kali linux:

Prerequisite : Kali linux

You can use command-

  • Pip install frida-tools to install frida on kali

If that doesn’t work you can try

  • Pipx install frida-tools

Once it is intalled you can verify it by command

  • frida-ps

1 3

frida-ps will show you the running process name and its PID.

Verify the installed version by using following command :

  • frida –version

2 2

Setting frida on android:

Prerequisite : rooted emulator , ADB

For installing frida server you will need ADB tool on your kali linux .

Now download the frida server from https://github.com/frida/frida/releases according to architecture of your device (on emulator it should be x86 or x86_64)

Once you have downloaded the file unzip it using command

  • xz -d <filename>

Now copy the frida server to tmp directory of android using adb push command

  • adb push frida-server /data/local/tmp/

Now go to adb shell using command

  • adb shell

Change the permission of the frida-server file.

  • chmod 755 /data/local/tmp/<filename>

Now run the adb server using command

  • ./<frida_server_filename>

Now, everything is ready. From the terminal, we can connect frida-server by using the below command:

  • Frida-ps -U

3

If everything works fine for you, it will give you the running process id’s and names from your device. Now, you’re good to go with Frida.

 

Book A Free Demo Class

    Social Media
    Facebook
    Twitter
    WhatsApp
    LinkedIn