Pair a device for wireless debugging
wireless_pairPair an Android 11+ device for wireless debugging using its host, pairing port, and six-digit code; then connect with the separate connect port.
Instructions
Pair with an Android 11+ device for wireless debugging (adb pair <host>:<pair_port> <code>), using the pairing code from Settings > Developer options > Wireless debugging > "Pair device with pairing code". This is step one of a two-step flow: after "Successfully paired", call connect with the same host and the port shown on the main Wireless debugging screen — the temporary pairing port above is not that connect port. Pairing codes expire after a couple of minutes, so ask the user for a fresh code if this fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Six-digit pairing code from the pairing dialog; an optional single hyphen is accepted, e.g. "123-456". | |
| host | Yes | Hostname or IP shown in the Wireless debugging settings, e.g. "192.168.1.42" (no port). | |
| pair_port | Yes | Pairing port shown on the Wireless debugging pairing dialog — different from the port used by connect. |