2017/6/28

adb over tcp

ref: https://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp

首先手機端,要設定 adb service 使用 tcp., 然後重新啟動 adb...
#setprop service.adb.tcp.port 5555
#stop adbd
#start adbd


PC 端,啟動 adb 連線前,要先設定使用 tcp 連線到 裝置的 IP, PORT
$adb connect 10.202.208.55:5555
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
connected to 10.202.208.55:5555
看看有沒有出現..
$ adb devices
List of devices attached
10.202.208.55:5555 device
連線:
$ adb shell
OK,
PC 要回到 usb mode,就下
$adb usb

沒有留言:

張貼留言