[adb] Android development wireless connection device for debugging (adb)

I don’t know if you have such troubles. During the development process, sometimes you want to debug the device, but you can’t find the wire to connect the device. Ever since, wireless connection devices have become a good choice

1. Turn on the hotspot on the computer, or the device and the computer are in the same LAN.

Insert image description here

2. Connect the device to WiFi

3. Check the device IP address (after connecting to wifi, click on the settings below to view)

Insert image description here
Insert image description here

4.adb connection (win+R and enter cmd to open the command line)

输入
adb connect “这里填第三步找到的IP地址”

Insert image description here
If connected to XXX is displayed, it means that it is connected.

5. Successful connection for debugging

// 可以使用此命令查看链接设备情况
adb devices

Insert image description here

Guess you like

Origin blog.csdn.net/tuhuanxiong/article/details/125997754