This script automates the process of downloading the latest 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.
- Python 3 installed.
adbin your system's PATH.xzutility installed.
- install requrements
pip install -r dep.txt - Save the script as a Python file (e.g.,
frida_installer.py). - Connect your Android device via USB debugging.
- Run the script from your terminal:
python frida_installer.py
-
Device Detection: The script checks for a connected device using
adb devices. If no device is found, it displays an error message. -
Frida Version Retrieval: It fetches the latest Frida version from the GitHub API.
-
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.