Pre-condition: 手機與電腦wifi在同一局域網
1. 數據線連接手機並允許調試 cmd命令行執行:adb devices
List of devices attached
axxxxx20 device
2. 執行以下命令分配ip port(5558未被佔用):adb -s axxxxx20 tcpip 5558
restarting in TCP mode port: 5558
3. 執行使用端口連接手機(192.168.xx.xx手機的ip地址):adb connect 192.168.xx.xx:5558
connected to 192.168.xx.xx:5558
4. 拔掉數據線,查看已用wifi連接的設備:adb devices
List of devices attached
192.168.xx.xx:5558 device