← 返回命令列表

Linux command

adb-pair 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Pair

adb pair [192.168.1.100]:[port]

说明

adb pair establishes a secure wireless debugging connection with an Android 11+ device using a pairing code. This eliminates the need for initial USB connection to enable wireless debugging. To use this feature, enable "Wireless debugging" in Developer Options on the device, then tap "Pair device with pairing code" to get the pairing port and code. After pairing, use adb connect with the connection port shown in Wireless debugging settings.

参数

host
IP address of the Android device
port
Pairing port shown on the device (different from connection port)
pairing_code
Six-digit code shown on device (prompted if not provided)

FAQ

What is the adb-pair command used for?

adb pair establishes a secure wireless debugging connection with an Android 11+ device using a pairing code. This eliminates the need for initial USB connection to enable wireless debugging. To use this feature, enable "Wireless debugging" in Developer Options on the device, then tap "Pair device with pairing code" to get the pairing port and code. After pairing, use adb connect with the connection port shown in Wireless debugging settings.

How do I run a basic adb-pair example?

Run `adb pair [192.168.1.100]:[port]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does host do in adb-pair?

IP address of the Android device