本文最后更新于33 天前,其中的信息可能已经过时,如有错误请发送邮件到[email protected]或[email protected]
前言
需要带核显的x86架构处理器。
镜像列表:https://github.com/ERSTT/redroid
过程
飞牛OS版
在飞牛商店搜索binder_linux安装,然后打开docker-compose,设置名称和目录,compose内容如下
services:
redroid:
image: erstt/redroid:11.0.0_houdini_ChromeOS
tty: true
stdin_open: true
privileged: true
devices:
- /dev/dri
- /dev/binder
networks:
- main
ports:
- 5555:5555
volumes:
- ./data:/data
command:
- androidboot.redroid_width=1280
- androidboot.redroid_height=720
- androidboot.redroid_dpi=240
- androidboot.redroid_fps=60
- androidboot.redroid_audio_mode=none
- androidboot.redroid_gpu_mode=host
- androidboot.use_memfd=1
- ro.config.low_ram=true
networks:
main:
driver: bridge
name: main
其他Linux系统
参考下列两个帖子:
使用ReDroid打造自己的云手机 #X86架构
香橙派5plus上跑云手机方案一 redroid(带硬件加速) #Arm架构
连接
在windows系统中下载scrcpy,点我直达
在解压出来的文件目录下,新建一个bat脚本,注意编码为ansi,代码如下
@echo off
echo Starting scrcpy with 1280x720 resolution and audio...
cmd /k "scrcpy.exe --tcpip=xxx.xxx.xxx.xxx:5555 --max-size=1280 --video-bit-rate=3M --no-audio"
双击刚创建的bat脚本即可连接redroid容器,向窗口拖入安装包即可安装应用,安装后的应用在下滑菜单中。关闭时关闭cmd窗口即可。
容器无网络解决办法
1.进入ADB调试
adb -s xxx:5555 shell
2.进入shell后切换到root
su
3 禁用网络监控服务
settings put global captive_portal_mode 0
settings put global captive_portal_server ''
4.重启
reboot






