Update README.md

This commit is contained in:
scavin 2022-06-28 15:36:22 +08:00 committed by GitHub
parent 151130c142
commit 77c40331df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,11 +7,20 @@
```
docker run --name ws-scrcpy -d -p 8000:8000 scavin/ws-scrcpy
docker exec ws-scrcpy adb connect android.device.ip:5555
```
注意修改 android.device.ip 为 Android 设备 IP 地址。
## 打开 Android 设备的 adb over Wi-Fi
1. 安装 adb 工具套件([SDK Platform Tools](https://developer.android.com/studio/releases/platform-tools)
2. 打开开发者模式
3. 使用 USB 连接 Android 设备,并授权
4. 用终端输入 adb tcpip 5555
返回 restarting in TCP mode port: 5555 就可以了
切换回USB模式adb usb
## 参考链接
* https://github.com/Genymobile/scrcpy