One-shot transparent setup
adb_setup_transparentSets up transparent proxy on an Android emulator via ADB, installing system CA and enabling iptables capture to intercept traffic from apps that ignore the system proxy.
Instructions
Start proxy (if needed), install the system CA, and enable transparent iptables capture - the closest adb-only equivalent of HTTP Toolkit's VPN mode, with zero on-device dialogs. Catches apps that ignore the system proxy (e.g. VK). Defaults to loopback + reverse tunnel (works behind emulator NAT); pass hostIp for a directly reachable host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Proxy port (default 8000). | |
| hostIp | No | LAN IP reachable from the emulator. Omit for loopback + tunnel. | |
| serial | No |