One-shot device setup
adb_setupConfigure Android emulator to route traffic through a local proxy by installing a system CA and setting device proxy via adb reverse tunnel or LAN IP.
Instructions
Convenience: start proxy (if needed), install the system CA, and set the device proxy in one step. By default uses an adb reverse tunnel (127.0.0.1), which works on NAT'd emulators like MEmu without needing a reachable host IP. Set hostIp to use a LAN IP instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Proxy port (default 8000). | |
| hostIp | No | LAN IP reachable from the emulator. Omit to use the adb reverse tunnel (recommended). | |
| serial | No |