拉取docker镜像
docker pull redroid/redroid:12.0.0_64only-latest
开启虚拟化
apt install linux-modules-extra-`uname -r`
modprobe binder_linux devices="binder,hwbinder,vndbinder"
modprobe ashmem_linux
启动容器
docker run --name=my_phone -itd --privileged \
-v ~/android/data:/data \
-p 5555:5555 redroid/redroid:12.0.0_64only-latest \
androidboot.redroid_width=1080 \
androidboot.redroid_height=2160 \
androidboot.redroid_dpi=480
#
# 连接adb 需android tool
adb connect ip:5555
# 显示连接的设备
adb devices