Share Adb Devices With Adb Server
Remote ADB server
To connect to a remote adb server, make the server listen on all interfaces:
adb kill-server
adb -a nodaemon server start
# keep this open
Warning: all communications between clients and the adb server are unencrypted.
Run adb shell from another terminal
Suppose that this server is accessible at 192.168.1.2. Then, from another terminal, run adb shell:
- in bash
export ADB_SERVER_SOCKET=tcp:192.168.1.2:5037
- in cmd
set ADB_SERVER_SOCKET=tcp:192.168.1.2:5037
- in PowerShell
$env:ADB_SERVER_SOCKET = 'tcp:192.168.1.2:5037'
文档信息
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)
- 发表日期: 2024-09-03T11:31:31+08:00