ayasa520 / redroid-script

MIT License
186 stars 44 forks source link

redroid/redroid:8.1.0_magisk doesn't work (also tried with 12.0.0_64only) #29

Open brunoaduarte opened 4 months ago

brunoaduarte commented 4 months ago
ubuntu@ubuntu:~$ python3 redroid-script/redroid.py -a 8.1.0 -gm
Downloading OpenGapps now .....
Extracting archive...
/home/ubuntu/.cache/redroid/downloads/open_gapps.zip
/tmp/ogapps/extract
    Processing app package : /tmp/ogapps/extract/Core/backuprestore-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/extservicesgoogle-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/gsfcore-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/datatransfertool-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/googlepartnersetup-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/carriersetup-all.tar.lz
    Processing extra package : /tmp/ogapps/extract/Core/defaultframework-common.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/googlecontactssync-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/extsharedgoogle-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/vending-x86_64.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/googlefeedback-all.tar.lz
    Processing extra package : /tmp/ogapps/extract/Core/defaultetc-common.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/gmscore-x86_64.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/googleonetimeinitializer-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/googlebackuptransport-all.tar.lz
    Processing app package : /tmp/ogapps/extract/Core/configupdater-all.tar.lz
Downloading latest Magisk-Delta now .....
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████| 12.9M/12.9M [00:00<00:00, 24.4MiB/s]
Extracting archive...
/home/ubuntu/.cache/redroid/downloads/magisk.apk
/tmp/magisk_unpack
Copying magisk libs now ...

Dockerfile
FROM redroid/redroid:8.1.0-latest
COPY gapps /
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  375.1MB
Step 1/3 : FROM redroid/redroid:8.1.0-latest
8.1.0-latest: Pulling from redroid/redroid
49b1258b4ac8: Pull complete
Digest: sha256:ad6fd8ec7d9cdbc6856e0f3bd51ed06ebdde3d76ecbc71e886ed4314c3e9bfda
Status: Downloaded newer image for redroid/redroid:8.1.0-latest
 ---> 2c4dfebb0f5e
Step 2/3 : COPY gapps /
 ---> feb54a2df4d3
Step 3/3 : COPY magisk /
 ---> 4dee414efb44
Successfully built 4dee414efb44
Successfully tagged redroid/redroid:8.1.0_gapps_magisk
Successfully built redroid/redroid:8.1.0_gapps_magisk
docker run -itd --rm --privileged --name Redroid8 -v ~/data:/data -p 5555:5555 redroid/redroid:8.1.0_gapps_magisk androidboot.use_memfd=true ro.secure=0 ro.product.model=SM-G991B ro.product.manufacturer=samsung ro.product.cpu.abilist=x86_64,arm64-v8a ro.product.cpu.abilist64=x86_64,arm64-v8a ro.dalvik.vm.isa.arm64=x86_64 ro.enable.native.bridge.exec=1
[ 1277.091629] init: processing action (sys.boot_completed=1) from (/system/etc/init/hw/init.rc:1140)
[ 1277.091695] init: starting service 'exec 25 (/bin/rm -rf /data/per_boot)'...
[ 1277.101676] init: SVC_EXEC service 'exec 25 (/bin/rm -rf /data/per_boot)' pid 1068 (uid 1000 gid 1000+0 context default) started; waiting...
[ 1277.101710] init: Service 'exec 25 (/bin/rm -rf /data/per_boot)' (pid 1068) exited with status 0 waiting took 0.008000 seconds
[ 1277.101715] init: Sending signal 9 to service 'exec 25 (/bin/rm -rf /data/per_boot)' (pid 1068) process group...
[ 1277.101940] init: processing action (sys.boot_completed=1) from (/system/etc/init/bootanim.rc:28)
[ 1277.101971] init: Command 'exec u:r:su:s0 root root -- /sbin/magisk --auto-selinux --boot-complete' action=sys.boot_completed=1 (/system/etc/init/bootanim.rc:30) took 0ms and failed: Could not start exec service: Cannot find '/sbin/magisk': No such file or directory
[ 1277.101988] init: starting service 'exec 27 (/system/bin/sh -c if [ ! -e /data/data/io.github.huskydg.magisk ] ; then pm install /system/etc/init/magisk/magisk.apk ; fi)'...
[ 1277.104676] init: SVC_EXEC service 'exec 27 (/system/bin/sh -c if [ ! -e /data/data/io.github.huskydg.magisk ] ; then pm install /system/etc/init/magisk/magisk.apk ; fi)' pid 1075 (uid 0 gid 0+0 context default) started; waiting...
[ 1277.108667] init: Service 'exec 27 (/system/bin/sh -c if [ ! -e /data/data/io.github.huskydg.magisk ] ; then pm install /system/etc/init/magisk/magisk.apk ; fi)' (pid 1075) exited with status 0 waiting took 0.005000 seconds
[ 1277.108676] init: Sending signal 9 to service 'exec 27 (/system/bin/sh -c if [ ! -e /data/data/io.github.huskydg.magisk ] ; then pm install /system/etc/init/magisk/magisk.apk ; fi)' (pid 1075) process group...
[ 1277.108834] init: processing action (sys.boot_completed=1 && sys.bootstat.first_boot_completed=0) from (/system/etc/init/bootstat.rc:77)
[ 1277.108857] init: starting service 'exec 28 (/system/bin/bootstat --record_boot_complete --record_boot_reason --record_time_since_factory_reset -l)'...
[ 1277.112048] init: processing action (sys.boot_completed=1) from (/system/etc/init/flags_health_check.rc:7)
[ 1277.129166] init: processing action (persist.dbg.keep_debugfs_mounted= && ro.product.debugfs_restrictions.enabled=true && sys.boot_completed=1) from (/system/etc/init/init-debug.rc:15)
[ 1277.132397] init: DM_DEV_STATUS failed for system: Bad file descriptor
[ 1277.132403] init: DM_DEV_STATUS failed for vroot: Bad file descriptor
[ 1277.132472] init: [libfs_mgr]ReadDefaultFstab(): failed to find device default fstab
Screenshot 2024-07-21 at 04 29 18 Screenshot 2024-07-21 at 04 29 59
ayasa520 commented 4 months ago

Does this version work? https://web.archive.org/web/20230718224206if_/https://objects.githubusercontent.com/github-production-release-asset-2e65be/514574759/50ec2f91-174b-4918-8587-04e847458bfd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230718%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230718T224206Z&X-Amz-Expires=300&X-Amz-Signature=ee54e872b4d3c1388601941e85b2fcf84d5e06968618271ea2f5e3ea5947d4e1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=514574759&response-content-disposition=attachment%3B%20filename%3Dapp-debug.apk&response-content-type=application%2Fvnd.android.package-archive

brunoaduarte commented 3 months ago

Does this version work? https://web.archive.org/web/20230718224206if_/https://objects.githubusercontent.com/github-production-release-asset-2e65be/514574759/50ec2f91-174b-4918-8587-04e847458bfd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230718%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230718T224206Z&X-Amz-Expires=300&X-Amz-Signature=ee54e872b4d3c1388601941e85b2fcf84d5e06968618271ea2f5e3ea5947d4e1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=514574759&response-content-disposition=attachment%3B%20filename%3Dapp-debug.apk&response-content-type=application%2Fvnd.android.package-archive

Almost. It installs, but only to ramdisk, Zygisk didn't worked. First it shows this popup and I click OK.

If I click UPDATE it updates the app and Magisk gets uninstalled. If I click INSTALL, it installs it, successfully apparently, but nothing changes, after the reboot status is the same Zygisk: No

Tried on 12.0.0_x64only too and the same issue, Zygisk: No. And if I click INSTALL it crashes the app. And direct install into system partition fails

image

Screenshot 2024-07-21 174936

Screenshot 2024-07-21 175053

Screenshot 2024-07-21 175058

image

brunoaduarte commented 3 months ago

Same issue with Redroid 12.0.0 arm64 version

image