使用免费的甲骨文ARM服务器搭建云手机
项目地址:https://github.com/remote-android/redroid-doc
## install required kernel modules 安装内核相关依赖 apt install linux-modules-extra-`uname -r` modprobe binder_linux devices="binder,hwbinder,vndbinder" modprobe ashmem_linux ## running redroid docker run -itd --rm --privileged \ --pull always \ -v ~/data:/data \ -p 5555:5555 \ redroid/redroid:12.0.0_64only-latest
安装adb
apt install android-tools-adb
安装投屏工具:https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md
这里建议自己编译最新版本:
1. # for Debian/Ubuntu 安装编译环境的依赖 sudo apt install ffmpeg libsdl2-2.0-0 adb wget \ gcc git pkg-config meson ninja-build libsdl2-dev \ libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \ libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
##拉取代码和编译
git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh
##看下编译完成以后 scrcpy 安装的路径,如果是下面路径,需要放到环境变量里面
which scrcpy /usr/local/bin/scrcpy
scrcpy --no-audio --record=file.mkv
评论
发表评论