I have a OnePlus 7 Pro with Pie (9.0) and before updating to the latest Magisk I was using:
Everything was working and I was able to reboot into recovery from Magisk Manager, the power button extended menu and the bootloader. Everything was fine.
I've since flashed the latest Magisk v20.0 on my Pie device and now TWRP doesn't remain installed. Rebooting to recovery from any of the 3 methods mentioned above, actually boots into bootloader, not recovery.
I tried to fix the problem by reverting:
fastboot boot twrp-3.3.1-70-guacamole-unified-Pie.imgtwrp-installer-3.3.1-70-guacamole-unified.zip (installs to both slots)Magisk-v19.4.zip (reverting, just in case)If I try to reboot from within TWRP to recovery, I'm rebooted to the bootloader instead. If I reboot the device, everything is working as expected but if I try to reboot to recovery, again, I end up in the bootloader instead.
Somehow, Magisk v20.0 changed something in the boot partition that doesn't allow me to flash TWRP and have it remain installed. The question now is, is this a bug in Magisk v20.0 or something changed in Magisk v20.0 and the TWRP version I use needs to be updated to be compatible with Magisk v20.0?
In the mean time, do you have any recommendation to work around the issue?
Bug Report:
Oneplus 7 GM1900
Android 9, Oxygen OS 9.5.8GM57BA
The latest Magisk 20 breaks TWRP recovery from sticking after reboot.
I've also tried to downgrade to my previous twrp recovery (twrp-3.3.1-52-guacamole-unified.img) and magisk versions (19.3 and 19.4) but I still have the same problem, after reboot, twrp recovery is gone.
steps:
1) fastboot boot twrp-3.3.1-70-guacamole-unified-Pie-mauronofrio.img
2) flashed twrp installer
3) then flashed magisk 20 from twrp
4) reboot
5) reboot recovery (from extended power menu)
6) It ends up in fastboot mode, twrp is gone
There is also another person which reported the same issue: https://t.me/twrp_Mauronofrio/2292
Same here.
OnePlus 7
9.5.8.GM57BA
twrp-3.3.1-1-guacamoleb
Magisk-v19.4
I was able to reboot into recovery from Magisk Manager, the power button extended menu and the bootloader.
Since i flashed the latest Magisk v20.0 TWRP doesn't remain installed. Rebooting to recovery from any of the 3 methods mentioned above, boots into bootloader (there seems to bee no recovery).
My attempt to fix the problem by
fastboot boot twrp-3.3.1-4-guacamole.img
install twrp-installer-3.3.1-4-guacamole.zip
install Magisk-v20.0.zip
did not help.
When I try to reboot from within TWRP to recovery, the bootloader is booted instead.
I can reboot the device and it is working as expected but if I try to reboot to recovery I always end up in the bootloader instead.
Me too and I reported the error here: https://forum.xda-developers.com/oneplus-7/help/run-twrp-installing-magisk-t3983065
I first had this problem with Magisk 19.3
Phone: OnePlus 7 GM1903 (not Pro)
OS: Oxygen 9.5.8.GM57AA
TWRP: twrp-3.3.1-1-guacamoleb.img from https://twrp.me/oneplus/oneplus7.html
Magisk: problem started with v19.3 but repeated itself with v20.0
Now tried with twrp-3.3.1-70-guacamole-unified-installer-mauronofrio.zip and Magisk-v19.3.zip same result
I've just factory resetted mine, and installed twrp-3.3.1-70-guacamole-unified-Pie-mauronofrio.img with Magisk v19.4, now everything is fine.
I've just factory resetted mine, and installed twrp-3.3.1-70-guacamole-unified-Pie-mauronofrio.img with Magisk v19.4, now everything is fine.
Do you mean the factory reset in oos system settings? or the twrp settings?
factory reset from twrp, I've only kept my files in the internal storage
Based on that (and my previous suspicions) I think that flashing Magisk v20 altered something in the system that is not reversible by uninstalling Magisk or flashing an older version.
That's why this was only fixable by factory resetting the device and avoid installing Magisk v20, unless you are on Android 10, that is. Well, @lee0525 and @gumball3000ro I'm assuming you guys were on Pie too?
Maybe if @topjohnwu could pitch in here and find out exactly what could possible have changed between 19.4 and 20 that could alter this behavior, maybe we could revert it and fix the problem without factory resetting.
Xiaomi Mi A3 (laurel_sprout) doesn't allow fastboot boot. To install TWRP (for instance) we need to flash recovery.img into boot partition (on inactive slot) and then flash the TWRP installer zip (on the active slot).
With Magisk 19.3, the installer runs and the system gets booted ok. Reboot to recovery (TWRP or stock) is ok.
With Magisk 20.0 the installer runs and the system gets booted ok but it forces boot into bootloader if we try to access recovery (either TWRP or stock Recovery). Even if we install 19.3 zip and then update through Magisk Manager to 20.0, this happens if we try to access recovery.
As stated by others....something is wrong with 20.0 version.
Mi A3 is an A/B device and runs Android One (currently Pie).
Based on that (and my previous suspicions) I think that flashing Magisk v20 altered something in the system that is not reversible by uninstalling Magisk or flashing an older version.
That's why this was only fixable by factory resetting the device and avoid installing Magisk v20, unless you are on Android 10, that is. Well, @lee0525 and @gumball3000ro I'm assuming you guys were on Pie too?
Maybe if @topjohnwu could pitch in here and find out exactly what could possible have changed between 19.4 and 20 that could alter this behavior, maybe we could revert it and fix the problem without factory resetting.
Yup. I'm on Pie too and gonna try the factory reset to check if this works for me
Weird, working fine on my fajita (OP6T) with latest Magisk Canary, stable OOS and official TWRP.
Same here op7 pro, didn't try 19.4, but flashing stock boot.img and then magisk 19.3 reverts issue
edit:
for the record i tried both unofficial and official TWRP's
Something that might be worth noting: we have two different twrp images (at least the unofficial twrp does) one to fastboot boot while in pie, one for Q. Q twrp IMG will not boot from fastboot if active slot's bootloader is from the pie ROM, and if you try to install the recovery ramdisk for Q using the option in twrp (not the installer zip) causes the same behavior as magisk 20 does; rebooting to recovery fails and drops to bootloader/fastboot instead.
@Ae3NerdGod I've always used the Pie version of the unofficial TWRP, since I'm on Pie yet. But you found a way to revert the issue and I'd like to do the same, I guess the trick is on flashing stock boot.img and then flash TWRP installer again, followed by Magisk (v19.4 for me since I had that working before all of this).
Can you please let me know where can I get the stock boot.img from the latest official Pie and what is the exact command to flash that? I just want to be sure before messing my device 馃槅
@rfgamaral
op7 pro (guacamole) GM21AA 9.5.13 stock international boot image:
https://drive.google.com/open?id=1fon2XspyWSyEXe3aMi7RP-j7bQ_5JoCC
slow mirror: http://bowtie-ent.com/GM21AA_OOS_9.5.13_boot.img
guacamole fastboot packages:
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
commands:
fastboot flash boot GM21AA_OOS_9.5.13_boot.img
or; to flash both slots:
fastboot flash boot_a GM21AA_OOS_9.5.13_boot.img
fastboot flash boot_b GM21AA_OOS_9.5.13_boot.img
from there just do twrp installer zip and then magisk 19.x
@Ae3NerdGod I'm in the same situation as @rfgamaral.
I had a few questions:
1) will flashing the stock boot image erase my data or my settings ?
2) Do I need to flash the stock image in bot slots or should i just use this command: fastboot flash boot GM21AA_OOS_9.5.13_boot.img ?
3) Do I need to disable all magisk/xposed modules to flash stock image? Will flashing stock image delete my modules?
Thanks for all the help
@Ae3NerdGod Thank you very much for that.
@jkooper32
1) it will not
2) if you don't use both slots separately and always use the one active (whatever that is), just flash to both, or just flash to the current broken one, it doesn't matter much I guess
3) no need, but just make sure to flash twrp installer followed by magisk to make sure your system boots succesfully
@Ae3NerdGod Please correct me if I'm wrong anywhere...
Also, my phone is encrypted. Encryption has to be disabled in order to flash the stock image? Am I right?
Also, my phone is encrypted. Encryption has to be disabled in order to flash the stock image? Am I right?
To flash boot.img? I never heard that one before, but I'm not sure, so wait for an answer from somebody that knows before doing anything.
You can flash boot.img - this partition isn't encrypted, no worries.
Just make sure You have correct image.
Fot my OP7 I will use this one
https://www.oneplus7tips.com/download-kernel-oxygenos-9-5-8-op7/
thank you very much gentlemen. I will fix my recovery once I get home. @rfgamaral what magisk did you end up using ? 19.4 or 19.3 ?
I haven't done it yet, no time to mess with my phone at the moment but I had v19.4 working before. Only v20 borked my TWRP.
I can confirm that the following procedure was successful for me:
1) from bootloader mode execute
fastboot flash boot boot.img
2) boot twrp image (I used .70 unified)
fastboot boot twrp.img
3) flash twrp-installer.zip
4) flash magisk.zip (I flashed 19.4)
So don't worry and go ahead with fixing Your twrp :)
@salustre I was reading the article you posted and this line kinda scared me:
"If you have made other modifications (actual changes to the system, not apps that just need root access), then you鈥檒l want to undo those changes before restoring the OxygenOS 9.5.8 kernel boot.img to the OnePlus 7".
I don't think I've flashed anything through TWRP to modify the system, but I can't remember for sure. In case I have tough, what would happen if I fastboot the stock recovery?
@jkooper32
As long as you flash twrp then magisk you should have no problem booting
PS: the article is saying if you personally modified the system partition, as in remounted it RW or flashed a zip that directly modified /system
Worst case scenario you'd have to boot back to twrp and disable dm-verity with the universal dm-verity disabler here https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
PPS: to can also just flash system.img from your OOS version's fastboot package to undo any changes to system.
fastboot flash system system.img
I can confirm that the following procedure was successful for me:
- from bootloader mode execute
fastboot flash boot boot.img- boot twrp image (I used .70 unified)
fastboot boot twrp.img- flash twrp-installer.zip
- flash magisk.zip (I flashed 19.4)
So don't worry and go ahead with fixing Your twrp :)
do I need to uninstall the magisk module and do a backup first before doing so?
1) for me all my modules seem to work normally.
2) yes. Always just assume you need a backup. If whatever you're backing up is important enough to worry about and ask if you need to back it up, then the answer is yes. Anything and everything can go wrong at any time.
I can confirm that the following procedure was successful for me:
- from bootloader mode execute
fastboot flash boot boot.img- boot twrp image (I used .70 unified)
fastboot boot twrp.img- flash twrp-installer.zip
- flash magisk.zip (I flashed 19.4)
So don't worry and go ahead with fixing Your twrp :)
Just flash twrp using the above steps. Work like a charm. Thank you very much!
Does everybody reverting to Magisk19.4 mean Magisk20.0 is not supposed to work with Android 9 on OnePlus7 (9.5.8.GM57BA)?
Is this going to be resolved?
You linked my issue (1958) to this, but I'm on Q.
Also OnePlus seems to have changed some thing which causes Magisk to break sensors, screen rotating, symlinks etc.
And as there is no working twrp for 1+6T on Q I can't flash any previous Magisk versions (unless the app lets me flash any previous version. In that case I don't know how to do this...)
@MrHappy
On 1+7p, the sensors issue has nothing to do with magisk. Its caused by a persist problem or something iirc
Are you on custom ROM? Or OOS
also, this might make an ass out of us, but I'd assume if the maker of magisk closes a topic, he's either working on it or can't fix it, either of which the only option is to wait.
Do you have the q bootloader and baseband?
On my 7pro nothing works right (or at all) on Q custom ROMs unless I fastboot flash OOS Q first.
In any case, go back to pie, head down to the Winchester, have a pint, and wait for this to all blow over.
Also, you can manually install the twrp ramdisk from adb inside the ROM if you're savvy enough, you don't have to fastboot boot
@Ae3NerdGod
I'm on OOS 10.
Sensors (rotating of screen) works fine, untill I flash magisk_patched boot.img.
It seems O+ made some changes (added extra img or something like that - reserve.img if I recall correctly) and that doesn't help....
I don't like assumptions... It would also help other, I guess, if it was mentioned if he is on it / or it can be fixed.
(Prevents people opening similar issues ;) ).
adb ramdisk... WIll try that. Maybe an older version (19.4) works....
@MrHappy Sensors work fine on the op7pro oos10 just to be clear, I just remember something about persist and sensors from XDA. But
DO NOT mess with your persist unless you're sure you need to,
the motog5 community learned that the hard way.
Tldr; so maybe a separate sensors issue for the 6t
@Ae3NerdGod
It wouldn't surprise me....
I thought I was pretty clever googling stuff, but installing twrp with only adb I cannot find.... Only 'fastboot flash' or 'fastboot boot'....
Thanks for the heads-up... I'll keep away from persist.. ;)
@rfgamaral why did you close this issue? You should reopen it if it's ongoing on v20+, since I don't think anything related to this has been fixed in the source yet..
Got the same problem on the OnePlus 6.
I forgot to write a bit of infos, the twrp has not problems, without magisk installed it boots without problems.
This problem happened on Android 10 latest OnePlus Open Beta.
for all those that are in rooted oos 10 on 6t and need TWRP @MrHappy
try this
https://pastebin.com/7f7Z0kwE
get back to me if it didnt work, somethings weird about your twrp installer compared to the oneplus7pro
@Ae3NerdGod
I don't specifically need TWRP, but I have narrowed down my 'rotating screen' issue to riru-edxposed.
After disabling this module screen rotating works again, so it is not (specifically?) Magisk-related...
So after a really good clean up ( i use msmtool to come back to oreo, then update to pie and then updated to android Q), flashed TWRP installer, flashed magisk 19.4 beta and the device is rooted with a working twrp. Before this i tried to format data, but it didn't worked. After flashed magisk 20 i was unable to fix the problem also flashing Magisk 19.4.
Is there a workaround on the version that gets installed using "Install to Inactive Slot" method? I'm currently on Magisk 19.4, but whel I use I nstall to Inactive Slot, it will force the latest version of Magisk.
Someone made a custom update channel to that it will treat Magisk 19.4 as the latest version, and avoid accidentally installing Magisk 20.
https://mehstrongbadmeh.github.io/magisk-19.4-json/19.4-ever.json
Last weekend i update my OnePlus7 to Android 10.
I stored those files on my device:
OnePlus7Oxygen_14.E.21_OTA_021_all_1910071445_7c62a298c0e74bf4.zip
(from https://www.oneplus.com/de/support/softwareupgrade/details?code=10)
twrp-3.3.1-70-guacamole-unified-installer-mauronofrio.zip
(from https://forum.xda-developers.com/oneplus-7/development/recovery-unofficial-twrp-recovery-t3932943)
Magisk-uninstaller-20191011.zip
Magisk-v20.0.zip
(from https://github.com/topjohnwu/Magisk/releases/)
Then i restarted my device in bootloader-mode, connected it to my PC via USB-cable and did
fastboot boot twrp-3.3.1-70-guacamole-unified-Q-mauronofrio.img
From within TWRP i installed
OnePlus7Oxygen_14.E.21_OTA_021_all_1910071445_7c62a298c0e74bf4.zip
twrp-3.3.1-70-guacamole-unified-installer-mauronofrio.zip
Magisk-v20.0.zip
and rebooted my device.
The OnePlus7 works fine since then and TWRP is available on the device.
@HagenTronje the problem on oneplus 7 is on android Pie
Yesterday I installed the latest version of magisk manager v8.0.0 which is working here's the attachment of the latest version of magisk manager.
Most helpful comment
I can confirm that the following procedure was successful for me:
1) from bootloader mode execute
fastboot flash boot boot.img2) boot twrp image (I used .70 unified)
fastboot boot twrp.img3) flash twrp-installer.zip
4) flash magisk.zip (I flashed 19.4)
So don't worry and go ahead with fixing Your twrp :)