PC computer terminal connects Android device through adb for debugging

1. Connect the PC to the Android device via WIFI/network cable. First, use the USB cable on the PC to connect to the Android device. For the Android device, check Connect TO PC and turn on the USB debug.

2. PC device manager to check if android devices appears, if not, install DriverInstall.exe ( download link )

3. Enter CMD on PC and execute the following commands:

adb devices  #列出设备 
adb tcpip 5555  #设置端口为5555,如不设置可能会出现"由于目标计算机积极拒绝,无法连接"
adb connect 10.11.201.3:5555 #连接到安卓设备

Other adb commands:

adb -s 10.11.201.3:5555 shell uptime -s --- view startup time

Guess you like

Origin blog.csdn.net/biao197/article/details/109496430