最終更新:2021-12-13 (月) 02:26:31 (837d)
adb tcpip
Top / adb tcpip
restarts the adbd daemon listening on TCP on the specified port
adb tcpip <port>
http://developer.android.com/guide/topics/connectivity/usb/index.html
例
adb tcpip 5555 adb connect <device-ip-address>:5555
実行すると下記が有効になる
- service.adb.tcp.port: [5555]
adb tcpipを実行したときのadbdの動作
- AOSP/system/core/adb/services.c: restart_tcp_service?
- property_set("service.adb.tcp.port", value);
デバイス単体で切り替え
- android端末のターミナルより
setprop service.adb.tcp.port 5555 stop adbd start adbd
- とすることで、Androidの実機単体でも可能。