安卓网络调试 adb tcpip

安卓能够usb调试(插线)和网络调试 (不插线)android

一、手机和PC在同一网段的状况下
      把手机usb和链接线和电脑端链接起来,输入下面命令
     1)、adb tcpip 5555
     2)  、adb shell ifconfig 查看手机网络IP
     3)、在电脑上ping 手机网络ip
     4)  、 adb connect  ip (Android 设备ip)shell

链接USB数据线,打开usb调试,使用windows的“运行”命令行方式:(此方法需配置adb环境变量,也可直接进入adb工具目录执行\android-sdk-windows\platform-tools\)
adb tcpip 5555 (端口号)
adb connect 192.168.1.199 (Android设备IP地址)
 
adb usb 使用回usb调试windows

 

2 、手机和PC不在同一网段的状况下
     咱们须要用手机的 终端模拟器和ssh工具 反向代理。网络