# Android Frida Server Setup ## Install the Frida Server in the Android Emulator Get the Android architecture: ```bash adb shell getprop ro.product.cpu.abi ``` The output should look like: ``` x86 ``` Now that we know the architecture is `x86` we can use it to download the Frida server: ```bash version=$(frida --version) && curl -Lo frida-server.xz https://github.com/frida/frida/releases/download/$version/frida-server-$version-android-x86.xz ``` After the download it’s finish we need to decompress it with: ```bash xz -d frida-server.xz ``` Next, we will push the frida-server into the Android device with: ```bash adb push frida-server /data/local/tmp ``` Give it executable permissions: ```bash adb shell "chmod +x /data/local/tmp/frida-server" ``` ## Start the Frida Server in the Android Emulator Now, open another shell in your computer to start the frida-server inside the Android device or emulator. Switch adb to the root user with: ```bash adb root ``` Start the Frida server in the background with: ```bash adb shell "/data/local/tmp/frida-server&" & ``` Now, check the frida-server is running on the device: ```bash frida-ps -U ``` The output should be a process list: ``` PID Name ---- --------------------------------------------------- 5310 adbd 1687 android.hardware.audio@2.0-service 1790 android.hardware.biometrics.fingerprint@2.1-service ... ```