ayasa520 / redroid-script

MIT License
186 stars 44 forks source link

Magisk安装后无法找到 #33

Open cchinm opened 3 weeks ago

cchinm commented 3 weeks ago

我按照命令行安装Magisk,但docker启动后无法找到Magisk python redroid.py -m

(redroid) sbb@m1:~/data/disk1/redroid/redroid-script$ sudo python3 redroid.py -m
Downloading latest Magisk-Delta now .....
100%|██████████████████████████████████████████████████████████████████████████████| 19.3M/19.3M [00:10<00:00, 1.85MiB/s]
Extracting archive...
/home/sbb/.cache/redroid/downloads/magisk.apk
/tmp/magisk_unpack
Copying magisk libs now ...

Dockerfile
FROM redroid/redroid:11.0.0-latest
COPY magisk /

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  344.2MB
Step 1/2 : FROM redroid/redroid:11.0.0-latest
 ---> fd8cf3f520b0
Step 2/2 : COPY magisk /
 ---> 2f722cc422a0
Successfully built 2f722cc422a0
Successfully tagged redroid/redroid:11.0.0_magisk
Successfully built redroid/redroid:11.0.0_magisk

启动命令

sudo docker run -itd --rm --privileged \
    -v /tmp/redroid/data5565:/data \
    -p 5565:5555 \
     redroid/redroid:11.0.0_magisk 

环境Ubuntu20.04

17296884676487
cchinm commented 3 weeks ago
magisk/
├── sbin
└── system
    └── etc
        └── init
            ├── bootanim.rc
            ├── bootanim.rc.gz
            └── magisk
                ├── busybox
                ├── magisk64
                ├── magisk.apk
                ├── magiskboot
                ├── magiskinit
                └── magiskpolicy
ayasa520 commented 3 weeks ago

此时使用 adb 安装 magisk manager , 看是否有效

cchinm commented 3 weeks ago

此时使用 adb 安装 magisk manager , 看是否有效

使用adb install magisk.apk, 可以看到magisk app. 但似乎Superuser, Modules都不可用

1729739277260 1729739307776
ayasa520 commented 2 weeks ago

无法复现,删掉所有数据(挂载的data目录)重新安装试试看

python redroid.py -a 11.0.0 -m  
docker run -itd --rm --privileged \
    -v ~/data:/data \
    -p 5555:5555 \
    redroid/redroid:11.0.0_magisk

image