Files
gitlab-instance-0a899031_ma…/微信AI/pi5 PLUS-redroid.md
hackrobot 5bcc3a51fd 'mmm'
2024-08-03 14:18:12 +08:00

100 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
下载server img.iso
mac安装img到TF卡
- 启动时,一定要取下emmc模块
在ubuntu,使用dd刷写img到emmc [查看手册]
- scp上传img.iso到TF卡 (chmod 777 /home ,给与文件夹权限)
- 确认下 eMMC 的设备节点
```
ls /dev/mmcblk*boot0 | cut -c1-12
```
比如输出 /dev/mmcblk1
- dd 命令清空下 eMMC
```
sudo dd bs=1M if=/dev/zero of=/dev/mmcblk1 count=1000 status=progress
sudo sync
```
- dd 命令烧录开发板的 linux 镜像到 eMMC 中
```
sudo dd bs=1M if=orangepi5plus.img of=/dev/mmcblk1 status=progress
sudo sync
```
---
安装redroid [xposed]
```
docker run -itd --rm --privileged \
--pull always \
-v ~/data:/data \
-p 5555:5555 \
redroid/redroid:13.0.0-latest
```
- 查看端口号
```
lsof -i:端口号
```
安装 稳定版 微信apk
安装madisk /lsposed
X86教程 [Docker](https://hub.docker.com/r/sickcodes/dock-droid)
arm教程 [GitHub - ayasa520/redroid-script](https://github.com/ayasa520/redroid-script)
- 下载源码
```
git clone https://github.com/ayasa520/redroid-script.git
```
安装
```
pip install -r requirements.txt
```
设置容器
```
# pull the latest image 该值可以是8.1.0、9.0.0、10.0.0、11.0.0、12.0.0、12.0.0_64only或13.0.0。默认值为 11.0.0
python redroid.py -a 11.0.0
```
安装 magisk
```
python redroid.py -a 11.0.0 -mnw
```
运行容器
```
docker run -itd --rm --privileged \
-v ~/data:/data \
-p 5555:5555 \
redroid/redroid:11.0.0_magisk\
ro.product.cpu.abilist=x86_64,arm64-v8a,x86,armeabi-v7a,armeabi \
ro.product.cpu.abilist64=x86_64,arm64-v8a \
ro.product.cpu.abilist32=x86,armeabi-v7a,armeabi \
ro.dalvik.vm.isa.arm=x86 \
ro.dalvik.vm.isa.arm64=x86_64 \
ro.enable.native.bridge.exec=1 \
ro.dalvik.vm.native.bridge=libndk_translation.so \
ro.ndk_translation.version=0.2.2 \
```