Mac 无线投屏 Scrcpy
简介
安卓手机无线投屏到 Mac
安装 Scrcpy
国外源码 https://github.com/mirrors/scrcpy
国内镜像 https://gitee.com/mirrors/scrcpy
- 清华源 homebrew 安装
https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/
- 调试包 adb 安装
brew install android-platform-tools
- 安装 scrcpy
brew install scrcpy
连接手机
- 打开手机 USB 调试
有些手机需打开“仅充电形式下打开 ADB 调试”,当通知档显示有 USB 调试即配置成功
- 连接 USB
- 运行 scrcpy
scrcpy
无线投屏
- 按连接手机步骤完成
- 打开配置 adb 连接端口
adb tcpip [port]
- 查看手机 IP
adb shell ip route | awk '{print $9}'
- 拔下设备插头
- 打开 adb 调试链接
adb connect [ip]:[port]
- 运行 scrcpy
scrcpy