https://stackoverflow.com/a/33881295/853191
打开命令行:
cd ~/Library/Android/sdk/platform-tools/
./adb devices
My result:
List of devices attached
XXXXXXXXX device
-
设置端口:
./adb shell setprop service.adb.tcp.port 4444
./adb tcpip 4444
Result message:
restarting in TCP mode port: 4444 -
从手机上得到 IP 地址,比如我的是
192.168.0.155
, 执行连接:
./adb connect 192.168.0.155:4444
Good luck!
网友评论