我用的是ubuntu系统使用的是DD过的
DD命令
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -u 20.04 -v 64 -a -firmware -p '123456' --ip-dns 8.8.8.8
安装模块
apt install linux-modules-extra-`uname -r`
modprobe binder_linux devices="binder,hwbinder,vndbinder"
modprobe ashmem_linux
安装docker教程省略
拉去docker镜像并启动
docker run -itd --rm --memory-swappiness=0 \
--privileged --pull always \
-v /www/wwwroot/anzhuo8/data1:/data \
--name=redroid8 \
-p 5557:1821 \
redroid/redroid:8.1.0-230331 \
androidboot.hardware=mt6891 ro.secure=0 ro.boot.hwc=GLOBAL ro.ril.oem.imei=861503068361145 ro.ril.oem.imei1=861503068361145 ro.ril.oem.imei2=861503068361148 ro.ril.miui.imei0=861503068361148 ro.product.manufacturer=Xiaomi ro.build.product=chopin \
redroid.width=720 redroid.height=1280 \
redroid.gpu.mode=guest
安装web面板
docker run --rm -itd --privileged -v /www/wwwroot/anzhuo8/data:/data --name scrcpy-web -p 127.0.0.1:8000:8000/tcp --link redroid8:myphone1 emptysuns/scrcpy-web:v0.1
链接安卓
docker exec -it scrcpy-web adb connect myphone1:5555
链接cf
cd /www/wwwroot/adb.puguying.cn
nohup ./cloudflared tunnel run --url 127.0.0.1:8000 scrcpy-web > argotunnel.log 2>&1 &
评论 (0)