Mac OS adb改用WIFI连接步骤:
- adb usb
- adb devices
- adb shell netcfg //查看设备ip
- adb tcpip 3455 // 设置端口 端口自定义
- adb connect xx.xx.xx.xx:3455 // 设备ip
- adb devices //查看wifi设备是否连接,成功连接拔除usb
拔除usb后,devices 显示offline 处理步骤:
- 设备端设置:
- 设置 -> 开发者模式 -> 恢复默认设置
- 把 usb调试 开关设置为关闭
- 电脑终端设置:
- adb kill-server
- adb start-server
- adb connect xx.xx.xx.xx:3455 // 显示不能连接
- 打开设备端的 usb调试 开关,重新连接 adb connect xx.xx.xx.xx:3455