New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad 2SI checking logic for Android 11 devices? #2994
Comments
@osm0sis As your device is A/B, magisk should work again with patching boot.img with creating apex folder and switch to |
Yep, that's a viable workaround, but as you say, detection will need to be fixed. This is likely another case of Google not following their own OEM specs, just as with adding recovery_a/recovery_b partitions back is the current standard everywhere except on Pixels where it's still boot-as-recovery. |
@topjohnwu I'm thinking looking for /apex OR /avb OR /debug_ramdisk might be the way to go |
I would personally choose a more definite way, maybe parsing the init binary directly. |
@osm0sis @topjohnwu Is there any progress? I need Magisk on Oxygen OS DP3 urgently. Thanks! |
https://androidfilehost.com/?fid=8889791610682913299 Use this boot.img to get root working on OOS 11 DP3 I'm personally using it and its working correctly. This is for the International OnePlus 8 Pro I should specify. |
@antnyhills Could you provide a dmesg log for your boot.img? |
Thank you so much! I'm using exactly International OnePlus 8 Pro and that what I need! Also, I wonder how you made it and hope it would be merge into Magisk. BTW, you're using a wrong Markdown url pattern so that the url link to the Magisk Issue page. |
Thanks, should be fixed. This is not my work, so I'm unsure of what was done to make it work, sorry! :/ |
there is something similar for the MI10 with MIUI12 ? or any news on fixing this problem with android 11? thx |
I have similar issue. Appears magisk.init is not run at boot time. So device boots without having root. |
Then it's not the same issue. |
#2979
My device is Mi 10 with MIUI12 based on Android 11 Beta 1-3. After patching boot, the phone boots but magisk seems not working.
For my device, which is using Android 11 SAR A-only, Magisk is jumping into
RootFSInit
instead ofFirstStageInit
because of the/apex
dir is missing in the ramdisk.However, this device is definitely 2SI as it is necessary for dynamic partition device, right? With Android 10, It is working because the ramdisk contains
/apex
dir.boot.tar.gz
new-boot.tar.gz
dmesg.log
logcat.log
patchboot.log
Magisk/native/jni/init/init.cpp
Lines 177 to 193 in 7fc9b90
And with
FirstStageInit
I still got bootloop instead, but let's track it on #3093The text was updated successfully, but these errors were encountered: