Android
Parrier tests Android apps two ways. Give it an APK for static analysis (copy it into ~/.parrier/targets first), or an
installed package on a device for dynamic testing with Frida hooks and traffic
capture.
parrier apk /targets/app.apk # staticparrier -t android://com.example.app # dynamic, on a deviceSet up a device
Section titled “Set up a device”No container gets USB access. Parrier reaches your devices through the adb server on
your host, so any device or emulator adb devices shows is usable.
-
Expose the host adb server to containers.
Nothing to do. Containers reach the host’s default adb server at
host.docker.internal:5037.The default server only listens on
127.0.0.1. Restart it on all interfaces:Terminal window adb kill-server && adb -a start-server -
Check that Parrier sees the device.
Terminal window parrier devicesWith several devices attached, set
PARRIER_ANDROID_DEVICE=<serial>. -
Install frida-server. Frida injection needs a rooted device or emulator.
Terminal window parrier android setup -
Pick the app with
/devicesin the console, or pass-t android://<package>.
Agent tools
Section titled “Agent tools”| Tool | What it does |
|---|---|
pull_apk |
Pull installed APKs, with their sha256 |
hermes_decompile |
Turn React Native Hermes bundles into readable code |
ensure_frida |
Install and start the pinned frida-server (17.10.1) |
frida_enumerate |
List classes, methods and native modules |
frida_spawn_hook, frida_attach |
Run a Frida script on spawn or against a running app |
frida_script |
Built-in scripts: unpin, native_unpin, flutter_unpin, bypass, trace, http_capture |
setup_android_proxy |
Route the device through Caido and trust its CA |
Hooks run for one window: 8 seconds by default, 120 at most. The lab image, built from a
source checkout with ./parrier.sh build-lab, adds jadx, apktool, radare2 and objection.
Traffic capture with Caido
Section titled “Traffic capture with Caido”Each Android device run starts its own Caido sidecar, parrier-caido-<run>, on a free
host loopback port. The device reaches it through adb reverse. Set
PARRIER_CAIDO_SIDECAR_PORT to pin the port.
The sidecar needs Docker Desktop for now. On Linux, or to use your own instance, point Parrier at an external Caido:
export PARRIER_CAIDO_URL=http://host.docker.internal:<port>export PARRIER_CAIDO_TOKEN=<token> # without it, Caido must allow guestsThat Caido must listen on the host loopback at the same port and start with
--ui-domain host.docker.internal, or its DNS-rebinding protection answers 403.
If a killed run left a proxy setting on the device, clear it:
parrier android proxy-clear