This script automates the process of downloading the matching Frida server and installing it on a connected Android device. It handles architecture detection and simplifies the setup for Frida-based reverse engineering or instrumentation.
- Bash installed.
adbin your system's PATH.curlinstalled.xzutility installed.
- Connect your Android device via USB debugging.
- Quick run without cloning:
curl -fsSL https://raw.githubusercontent.com/m7medVision/auto-frida/master/install-frida-server.sh | bash - Or run locally from the repo:
bash install-frida-server.sh
-
Device Detection: The script checks for a connected device using
adb devices. If no device is found, it displays an error message. -
Frida Version Selection: It first tries to detect the Frida version already installed on your machine using the
fridaCLI or Python package. If no local installation is found, it falls back to the latest GitHub release. -
Architecture Detection: It determines the device's architecture (arm64, arm, x86_64, x86) using
adb shell getprop ro.product.cpu.abi. -
Frida Download: Downloads the appropriate Frida server version for the detected architecture from the official GitHub releases. The server is downloaded as an xz compressed file and then decompressed.
-
Frida Upload: Uploads
frida-serverto the device's/data/local/tmp/directory usingadb push. -
Permissions Setting: Sets execute permissions for
frida-serveron the device.
If face any error please open an issue.