ws-scrcpy-docker/README.md
2022-06-28 15:38:27 +08:00

30 lines
835 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ws scrcpy 的 Docker 镜像
用来在浏览器中控制 Android 设备。
## 使用
```
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 555`
返回 `restarting in TCP mode port: 5555` 即可.
切换回USB模式`adb usb`
## 参考链接
* https://github.com/Genymobile/scrcpy
* https://github.com/NetrisTV/ws-scrcpy
* https://meta.appinn.net/t/topic/33828
* https://www.appinn.com/scrcpy-remote/ //用 iPhone 控制 Android