You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## manually get a working Magisk on redroid12
## kind busy these days. will add magisk support in redroid building process later.
# add /sbin
/sbin/
├── magisk
└── stub.apk
# add busybox
/data/adb/
├── magisk
│ └── busybox
# add su (override `/system/xbin/su`)
/product/bin/
└── su -> /sbin/magisk
# add init.rc
cat /vendor/etc/init/redroid.magisk.rc
service magisk-d /sbin/magisk --daemon
user root
oneshot
on boot
start magisk-d
on post-fs-data
start logd
rm /dev/.magisk-unblock
start s1
wait /dev/.magisk-unblock 5
rm /dev/.magisk-unblock
service s1 /sbin/magisk --post-fs-data
user root
oneshot
service s2 /sbin/magisk --service
class late_start
user root
oneshot
on property:sys.boot_completed=1
exec /sbin/magisk --boot-complete
on property:init.svc.zygote=restarting
exec /sbin/magisk --zygote-restart
on property:init.svc.zygote=stopped
exec /sbin/magisk --zygote-restart
I'm not provide you the complete solution to integrate Magisk here. Just a working PoC here. hopefully, you can follow this guide to enhance this solution.
For Magisk initial setup, possible to add a magisk-setup.rc and copy blobs to the desired folders.
Activity
zhouziyang commentedon Aug 4, 2022
several guys requested the
Magisk
support. And I will look into this feature request. Stay tune~~BTW,
SELinux
is ignored inredroid
; thus the policy related ops are not needed here.[-]my attempt integrating magisk[/-][+]Magisk support[/+]zhouziyang commentedon Aug 8, 2022
zhouziyang commentedon Aug 9, 2022
This is a quick setup (possible not elegant, try refine by yourself)
zhouziyang commentedon Aug 9, 2022
you can add
stub.apk
in docker image (will be there after each launch, and get removed after boot).zhouziyang commentedon Aug 10, 2022
I use locally build
magisk
(open some debug logs).check
logcat --pid <pid of magiskd>
check
logcat --pid <pid of magisk-app>
zhouziyang commentedon Aug 11, 2022
try with adb shell;
adb connect ...
thenadb -s xxx shell
zhouziyang commentedon Aug 11, 2022
adbd
help to setup some environment variables (check/init.envrion.rc
), whiledocker exec ...
not.zhouziyang commentedon Aug 11, 2022
you can create (
mkdir
) by your own.zhouziyang commentedon Aug 11, 2022
I'm not provide you the complete solution to integrate
Magisk
here. Just a working PoC here. hopefully, you can follow this guide to enhance this solution.For
Magisk
initial setup, possible to add amagisk-setup.rc
and copy blobs to the desired folders.redroid
is very easy to customize, have fun~~51 remaining items