Frida Android Helper 2
Several handy commands to facilitate common Android pentesting tasks.
It uses pure-python-adb to interface with the ADB server.
Prerequisites
- Python 3
- ADB
- Rooted Android phone
Installation
- Install from PyPI:
pip install fah2 - Or from source:
git clone https://github.com/secuworm2/frida-android-helper2thenpython -m pip install . --no-cache-dir - (Optional) Editable install for development:
python -m pip install -e . --no-cache-dir
Usage
Commands are self explanatory. Ask for help fah --help.
Frida-server management
| Command | Description |
|---|---|
fah server start |
Start frida-server on device. |
fah server stop |
Stop frida-server on device. |
fah server reboot |
Reboot frida-server on device. |
fah server update |
Install the latest frida-server release from GitHub. |
fah server update 17.2.1 |
Install a specific frida-server version. |
Pengrida-server management
Pengrida is a frida-server fork built to evade Frida string detection. It is installed as pengrida-server, separate from frida-server, so both can coexist on device.
| Command | Description |
|---|---|
fah pengrida start |
Start pengrida-server on device. |
fah pengrida stop |
Stop pengrida-server on device. |
fah pengrida reboot |
Reboot pengrida-server on device. |
fah pengrida update |
Install the latest pengrida-server release from GitHub. |
fah pengrida update 17.18.0 |
Install a specific pengrida-server version. |
fah pengrida gadget_art update <packagename> |
Download the ART-patched gadget, register it in the zygisk_gadget module for the package, and place its per-app config. If the module is currently disabled (disable marker present), it removes the marker and reboots the device first to re-enable it. Requires the zygisk_gadget Magisk module and its zygisk-gadget CLI already installed at /data/local/tmp/zygisk-gadget. Launch the app yourself afterward to attach. |
fah pengrida gadget_art update <packagename> 17.18.0 |
Same, pinned to a specific Pengrida release. |
fah pengrida gadget_art clear <packagename> |
Disable the zygisk_gadget module, remove the gadget .so/.config from the app's data dir, and reboot the device (required — zygote keeps injecting until reboot even after disabling the module). Prints the app's pid and checks logcat for ZygiskGadget after boot to confirm a clean restore. |
Android proxy configuration
| Command | Description |
|---|---|
fah proxy |
Enable proxy with auto-detected host IP and default port 8080. |
fah proxy enable |
Same as fah proxy. |
fah proxy enable 192.168.137.137 |
Enable proxy with custom host IP and default port 8080. |
fah proxy enable 192.168.137.137 8888 |
Enable proxy with custom host and port. |
fah proxy disable |
Disable global Android proxy settings. |
fah proxy get |
Print current proxy-related settings. |
Android proxy via reverse tethering configuration
Route traffic through adb reverse + iptables DNAT rules.
| Command | Description |
|---|---|
fah rproxy |
Enable reverse-tether proxy on default port 8844. |
fah rproxy enable |
Same as fah rproxy. |
fah rproxy enable 8888 |
Enable reverse-tether proxy on a custom port. |
fah rproxy disable |
Disable reverse-tether proxy on default port 8844. |
fah rproxy disable 8888 |
Disable reverse-tether proxy on a custom port. |
Recommended flow:
- Connect device via USB.
- Start intercepting proxy (e.g. Burp) in transparent mode.
- Connect device to any Wi-Fi network.
Android screenshot
| Command | Description |
|---|---|
fah screen |
Save screenshot as deviceID_%Y.%m.%d_%H.%M.%S.png. |
fah screen filename |
Save screenshot as deviceID_filename.png. |
Android disk snapshot
| Command | Description |
|---|---|
fah snap |
Snapshot current focused app data directory. |
fah snap com.example.app |
Snapshot specified app data directory. |
Android certificate creation & installation for mitm purposes
| Command | Description |
|---|---|
fah cert |
Generate and install certificate in one step. |
fah cert setup |
Same as fah cert. |
Android app
| Command | Description |
|---|---|
fah app |
Download the currently focused app APK(s). |
fah app dl |
Same as fah app. |
fah app dl <filter> |
Find packages by filter and download APK(s). |
fah app dl --single |
If the target is split APKs, rebuild them into one signed APK. |
fah app dl <filter> --single |
Same as above, but for packages matched by filter. |
fah app list |
List installed apps in name (package) [pid] format. |
fah app list <filter> |
Filter app list by app name or package. |
fah app start <pkg> |
Start app launcher activity. |
fah app stop <pkg> |
Force-stop app process. |
fah app clear <pkg> |
Clear app data (pm clear). |
Android intents
Syntax: fah intent <type> [package] [target]
Arguments:
| Name | Meaning |
|---|---|
<type> |
activity | service | receiver | provider |
[package] |
Optional package name. If omitted, uses focused app. |
[target] |
Optional target: <index>, <component>, or manual. |
Component commands:
| Type | List | Run by index | Manual output |
|---|---|---|---|
activity |
fah intent activity com.example.app |
fah intent activity com.example.app 7 |
fah intent activity com.example.app manual |
service |
fah intent service com.example.app |
fah intent service com.example.app 3 |
fah intent service com.example.app manual |
receiver |
fah intent receiver com.example.app |
fah intent receiver com.example.app 2 |
fah intent receiver com.example.app manual |
provider |
fah intent provider com.example.app |
fah intent provider com.example.app 1 |
fah intent provider com.example.app manual |
Notes:
- Receiver actions are parsed from each manifest
intent-filterand shown in list output. - Receiver
manualoutput prints oneam broadcastcommand per discovered action. - If no manifest action exists for a receiver, FAH falls back to
-a fah.intent.TEST.
Android network capture
| Command | Description |
|---|---|
fah netcap start |
Start background tcpdump capture on device (-i any). |
fah netcap start <pkg> |
Start capture with package UID filter (if supported by tcpdump). |
fah netcap stop |
Stop capture and pull .pcap to current directory. |
Requirements:
- Rooted device.
tcpdumpavailable on device (PATHor/data/local/tmp/tcpdump).
Runtime dex dump
ART DefineClass hook + auto collection + device cleanup.
Reference: inspired by frida_dump.
| Command | Description |
|---|---|
fah dexdump com.example.app |
Spawn app, hook ART DefineClass, dump payloads, pull to host, cleanup device files. |
fah dexdump com.example.app --duration 45 |
Same, but keep hooks attached for 45 seconds. |
fah dexdump com.example.app --attach |
Attach to a running process instead of spawn. |
fah dexdump com.example.app --keep-device-files |
Pull to host but keep dump artifacts on device. |
Host output path:
./fah_dexdump/<deviceSerial>/<package>_<timestamp>/
Loaded native modules
Lists every module currently loaded into a running app's process from /proc/<pid>/maps — native .so libraries, the main executable and dynamic linker, ART .oat/.odex/.vdex, and dynamically loaded dex (including in-memory dex from InMemoryDexClassLoader) — and can extract one to the host. Detects modules that were unlinked from disk after loading (a common anti-tamper trick) and recovers them from process memory via /proc/<pid>/map_files/. Also resolves libraries mapped straight out of the APK (extractNativeLibs=false, the default for Flutter and most modern apps), which plain /proc/<pid>/maps only shows as a .apk path. By default only app-provided modules are listed; pass --all to also show system/framework modules.
| Command | Description |
|---|---|
fah native com.example.app |
List app-provided modules loaded by the app (flags self-erased, APK-mapped, and in-memory dex modules). |
fah native com.example.app --all |
Same, plus system/framework modules. |
fah native |
App-provided modules of the currently focused app. |
fah native com.example.app dl libfoo.so |
Extract libfoo.so (or any listed module) from the running process, its APK, or process memory to the current directory. |
Ideas & bugs
Ideas and bug reports are welcome!
Metadata
Release files for fah2 0.83
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fah2-0.83.tar.gz | 42.3 MB | Without provenance | Details for fah2-0.83.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fah2-0.83-py3-none-any.whl | Python 3 | none | any | Details for fah2-0.83-py3-none-any.whl |
Total release size: 84.7 MB
Release files / fah2-0.83.tar.gz
| Download URL | fah2-0.83.tar.gz |
|---|---|
| Size | 42.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb83b9ec4d054509d83d5d5ea951f9dd7168d8f0bd15870ecfa605dff74e7fdc
|
|
BLAKE2b-256 checksum How to use checksums |
836694a4c2cc58fc55721cf308b8ee59b72d1e8b25d4fa35228d478f6412e905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / fah2-0.83-py3-none-any.whl
| Download URL | fah2-0.83-py3-none-any.whl |
|---|---|
| Size | 42.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
726bbccc593fcf213c81d3d35ff5df8dc6ab50511ed9d7f2a1ac241687bff423
|
|
BLAKE2b-256 checksum How to use checksums |
e9d45a0be7391d500cc657ce17e49827afe53f79901f8cb4bad7f6abf8d4b57d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for fah2 0.83
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.