Question Odd issue taking OTA update to Android 13 with Magisk (NE2217) - OnePlus 10 Pro

I have previously followed topjohnwu's guides to uninstall Magisk to install OTA updates but this one has me stumped.
The first time I took an OTA, I noted that the guide instructed not to select the update's reboot prompt--however, it did not prompt but rather just rebooted on its own. I lost root but the process of getting root again was not a big deal.
This time, however, I did get a prompt and ignored it, instead reinstalling the Magisk app first to an inactive slot and allowing Magisk to reboot the phone. I got into a bootloop and had to force the phone off. When I rebooted, it entered Android just fine, but it was as if the update never happened--I was still on Android 12 and the old security update. The Magisk app is still installed, but not Magisk itself and I lost root.
The strangest thing is that when I go back to the OTA update, it still says "Reboot", not install update, so it is clearly still wanting to do something on restart.
Any advice on the best way to proceed? Thanks.

icherub said:
I have previously followed topjohnwu's guides to uninstall Magisk to install OTA updates but this one has me stumped.
The first time I took an OTA, I noted that the guide instructed not to select the update's reboot prompt--however, it did not prompt but rather just rebooted on its own. I lost root but the process of getting root again was not a big deal.
This time, however, I did get a prompt and ignored it, instead reinstalling the Magisk app first to an inactive slot and allowing Magisk to reboot the phone. I got into a bootloop and had to force the phone off. When I rebooted, it entered Android just fine, but it was as if the update never happened--I was still on Android 12 and the old security update. The Magisk app is still installed, but not Magisk itself and I lost root.
The strangest thing is that when I go back to the OTA update, it still says "Reboot", not install update, so it is clearly still wanting to do something on restart.
Any advice on the best way to proceed? Thanks.
Click to expand...
Click to collapse
The phone storage where the OS resides is divided into two slots: A and B. Only one is active at a time. When you install an update it gets installed on the inactive slot (slot A if you're on slot B and slot B if you're on slot A). When you reboot after an update completed, the phone will mark the other slot as active and will boot from there. If the phone fails to boot for whatever reason it will revert to the previous active slot, effectively undoing the update. This is what indeed seems to have happened to you.
Now, there are two things I can't say why they happened:
- Why installing Magisk to the inactive slot made it unbootable.
- Why you lost root on the active slot.
You could try rebooting again to the inactive slot from the update prompt but it will probably fail and bring you back to the previous slot because I believe Magisk is still installed there and there is no option such as "uninstall from inactive slot". Anyway, I think it's something you should try, because in the worst case it will just repeated the same thing that happened the first time.

It sounds like you're in a pretty "dire" situation. Your phone has flipped its boot slot back to the safe one, and your other boot slot with the update is fried. For MAJOR Android updates, i.e. From Android 12 to Android 13, you must almost always FULLY Unroot and take the update, then reroot after the update.
I suggest safe updating all over again with a full zip using LocalUpdate apk from OPlus, fully unrooted, and just reroot when you're done.

the old way no longer works. because when updating to oos 13, the rom is flashed directly (this happens when the device writes extracting) and then the button appears with Install now (but if you click on it there, the cell phone restarts)
and if you don't click on Install now and go to magisk at this point and magisk into the inactive flash slot, the phone doesn't boot into the system but switches back to the non-updated slot in the background (you're then back in the old system) no idea if which is related to the virtual a/b.
That's why I do that I first do the update and restart and then simply patch the new boot.img (or init_boot.img for new devices) and flash it again.

Prant said:
It sounds like you're in a pretty "dire" situation. Your phone has flipped its boot slot bacl to the safe one, and your other boot slot with the update is fried. For MAJOR Android updates, i.e. From Android 12 to Android 13, you must almost always FULLY Unroot and take the update, then reroot after the update.
I suggest safe updating all over again with a full zip using LocalUpdate apk from OPlus, fully unrooted, and just reroot when you're done.
Click to expand...
Click to collapse
This is the correct (and most concise) answer

I just tried doing what you did and encountered the same thing. Wish I stumbled upon this post first.
Where can I get the A13 zip for NE2217 to do a local update? My slot b is A13 bootlooped with Magisk

Related

ota question on unlocked phone

i have the fi - android one phone. it is unlocked and rooted with magisk. last nite i was prompted for march update. it failed. i then realized i could get the update by having magisk patch back the images to default and then after the update put back magisk patched images. i no longer get the notification on the upgrade and it shows current. i tried to reset via clearing configupdater in apps and still nothing.
is there any way to force the ota updater to give me another try ? i believe i could re flash this version and not erase user data and then maybe get the update and reinstall magisk, but i'd rather not go that route as i spent some time getting my gpay to work etc. thanks if anyone knows.
glenb77 said:
i have the fi - android one phone. it is unlocked and rooted with magisk. last nite i was prompted for march update. it failed. i then realized i could get the update by having magisk patch back the images to default and then after the update put back magisk patched images. i no longer get the notification on the upgrade and it shows current. i tried to reset via clearing configupdater in apps and still nothing.
is there any way to force the ota updater to give me another try ? i believe i could re flash this version and not erase user data and then maybe get the update and reinstall magisk, but i'd rather not go that route as i spent some time getting my gpay to work etc. thanks if anyone knows.
Click to expand...
Click to collapse
I don't think there is a way around flashing the stock firmware first.
Same phone. I would suggest flashing the latest firmware (edit the flash-all to disable the userdata wipe). The phone should take the update at this point.
https://mirrors.lolinet.com/firmware/moto/payton/official/FI/
You can flash either Fi or Retail, as they are interchangable.
jhedfors said:
I don't think there is a way around flashing the stock firmware first.
Same phone. I would suggest flashing the latest firmware (edit the flash-all to disable the userdata wipe). The phone should take the update at this point.
https://mirrors.lolinet.com/firmware/moto/payton/official/FI/
You can flash either Fi or Retail, as they are interchangable.
Click to expand...
Click to collapse
yeah, that is method i was referring in my post. i am looking to do the update because fi has sort of said this update should correct this problem on x4. https://forums.lenovo.com/t5/Moto-X...to-X4-quot-Invalid-SIM-Card-quot/td-p/4308420 but i don't want to have to reset/add my credit cards in gpay because banks are calling because i have added or attempted so many times trying to get gpay and magisk to work. so i was hoping to do this method which should keep everything as is with magisk: https://github.com/topjohnwu/Magisk/blob/master/docs/tutorials.md that was what i was wondering. i got this phone recently from google and have it doing everything i want except the fluid carrier switching. probably best i wait a few weeks. thanks for the reply
just a quick update, maybe it helps someone. i did get the new march update on the phone. i did get the update notice eventually. i did try the magisk a/b method but that failed. that left magisk not available as i restored the original image.
i flashed the feb image from mirror from bootloader with no erase of userdata. when that rebooted i got update notice for the same image i had just flashed (feb 2019). i am guessing that is the result of leaving the userdata intact. i let it complete that process and rebooted.
following that install and reboot, i got the notice for the march update and i got a failure which may be because i had the vpn proxy ad blocker (block this) running so i terminated that and uninstalled magisk manager. the update then completed. leaving me on PPW29.69-39-1 patch level march 1, 2019. this is a fi phone.
rebooted and reinstalled magisk manager. i had to install magisk (canary) from bootloader using twrp img. everything seems the way it was with nothing lost, my gpay cards are still there i don't know whether or not gpay will work in stores yet.
this issue where fi pops up invalid sim has gone away so i am hopeful the fi switching issue has been resolved on this phone
Where did you get magisk canary?
I went back to Feb stock to install the March update. Now when I try fastboot boot twrp image, it just sits there "sending" nothing happens.
nxt said:
Where did you get magisk canary?
I went back to Feb stock to install the March update. Now when I try fastboot boot twrp image, it just sits there "sending" nothing happens.
Click to expand...
Click to collapse
magisk canary is here https://github.com/topjohnwu/magisk_files/tree/master/canary_builds use release.zip. i had this on my external mem card because twrp can break encryption on internal storage.
i did : 1. magisk uninstall in app by replacing image 2. from fastboot/bootloader flash rom from mirror don't erase user data. 3. reboot 4. get march update (in my case i got same feb, installed and rebooted then got march update 5. reboot to bootloader boot from twrp.img, install magisk zip off of memory card. 6. reboot install magisk apk. i am sure this is a ymmv but this is what worked on mine.

Unsupported Magisk Version - Cannot Upgrade to 18.x from 6.x, but can't open Magisk 7

Rooted Pixel 2XL 9.0
No TWRP
Upgraded Magisk to 7.2 - get error, "Unsupported Magisk Version"
trying to upgrade to 19.x manually, but all guides say, "Then go open Magisk on your phone", which I can't do.
If I downgrade to 6.x, I cannot upgrade to 19.x. So what to do?
Apologies if this has been addressed, but I cannot find a solution
With your old version of Magisk and Manager installed, download the the update and flash it manually from the modules section (the "+" button).
Didgeridoohan said:
With your old version of Magisk and Manager installed, download the the update and flash it manually from the modules section (the "+" button).
Click to expand...
Click to collapse
did that, and ended up in a boot loop.
It would seem that with version 6.x, (or anything lower than 7.x), you can't upgrade to 18.x or higher. I tried this 2-3x and same result. Had to flash old patched_boot.img and was back where I started.
The Manager version shouldn't really matter when installing like that (it is a known working solution for your exact problem). You might have a module acting up and causing issues. Might be a good idea to uninstall Magisk and start out clean.
Booting TWRP and flashing the Magisk zip there could also be a thing to try.
Walsh_M said:
did that, and ended up in a boot loop.
It would seem that with version 6.x, (or anything lower than 7.x), you can't upgrade to 18.x or higher. I tried this 2-3x and same result. Had to flash old patched_boot.img and was back where I started.
Click to expand...
Click to collapse
I tried again, and it worked
1. I downgraded to 6.1 and when prompted to reboot, I just closed, and restarted.
2. I then upgraded to 18.1. Again, when prompted to reboot, I closed and then restarted manually.
There seems to be a bug with regard to rebooting straight from upgrading.
It's only a bug if you can consistently reproduce it, and preferably provide logs showing it happening. Until then it was just gremlins...

Keep root after update with Magisk and no TWRP

If you already have root with Magisk, and don't have TWRP on your otherwise stock ROM, it is easy to retain root after upgrade. I have done this the past 4 updates.
1) Install the update through system updates. Don't reboot.
2) Open Magisk Manager and select "Install to Inactive Slot (After OTA)." Press Magisk Reboot button to reboot.
If for some reason you don't get the choice in Magisk to install to inactive slot the first time, then do this:
1) Install the update through system updates. Don't reboot.
2) Open Magisk Manager and install Magisk. Don't reboot
3) Open Magisk Manager again and this time select "Install to Inactive Slot (After OTA)." Press Reboot button to reboot.
don't you have to restore first the stock boot image in Magisk, before downloading/installing the OTA?
https://github.com/topjohnwu/Magisk/blob/master/docs/tutorials.md
I haven"t done the procedure yet, but I"m gonna have to update soon before Q drops, I wanna stay in Pie
Nope. I just updated to android 10 (A6013_41_191214) using the same method, so that makes 5 updates. I am really glad I found this method that is so simple since I always used to dread updating and regaining root. Now it adds about 10 seconds to the process.
I did have to use the three-step process since I had not updated Magisk in a while and it wants to be on the latest version before it allows you to install to inactive slot. Unlike previous updates, I had to re-choose Nova as the default launcher.
This helped me after I hard bricked my phone trying to root android 10. Thanks!
H10N3 said:
This helped me after I hard bricked my phone trying to root android 10. Thanks!
Click to expand...
Click to collapse
No problem. When I said "I used to dread updating and regaining root" it was because i had bricked my phone trying to re-root after an update, too, so I was always on edge when doing it until I found this easy method.
It works for me from 10 oos to oos10.3
I did that, I'm now stuck on Bootloader warning screen, even after rebooting :/
Phone can't boot in fastboot, PC can't detect device anymore.
Edit: Managed to boot in fastboot mode (vol +/-/power), had to use MsmDownloadTool to unbrick.
Hi can anybody give me a hint how to procede?
- I was on 8.1 Oreo with my 1043 PL2
- did select System Update --> Android 10 (V4.16B)
- in magisk I selected "Install to Inactive Slot (After OTA)." + reboot
I just got a loop of white android one screens,
every third cycle "Android Recovery" is offering a selection of "Try again" or "Factory data reset".
Did I lose unlocked Boot loader?
Would some more retries help?
If I use "factory data reset" do I keep magisk - or would it be non rooted system?
Any hint to go to an android 10 rooted device is apreciated (preferrably with my data).
I id a TWRP BU of 8.1 system before update.
Would also a switch back to other "sltot" with 8.1 be possible?
cheers
lino
EDIT (29mar21):
since no answer,
- I selected "delete Data partition"
- Phone deleted all my data I had no BU (pictures, Download folder)
- installed MagiskManager, and at least I stayed rooted.
- now I have to setup may phone from scratch :'(
EDIT2: and I did not even realise that I that I stumbled in wrong thread (I was searching for Nokia 6.1 ... anyway)
woo that was close.
ok so, sorry, reviving from the future, hello!
for some reason, I followed this on a Nord. Bootloop.
A/B partitions!
fastboot --set-active=a
Is there a update guide for Magisk using LOS 19.1? This method does not work for LOS, only for OOS. It will give you a bootloop. I have been flashing Magisk's zip file under LOS recovery, but there should be another way to update Magisk without all that hassle. Magisk's direct install will not work.

[ROOT] Samsung SM-A605FN (Android 9.0)

So, about a week ago I tried rooting my A6+ (2018) using TWRP and the latest Magisk build (20.0)
It wasn't the first time, so it was no big deal. Unlocked OEM, installed TWRP (the unofficial version for the A6+, I found it here and in other numerous tutorials), then I hopped on TWRP, formated the data, and I rebooted the phone.
(I followed The***********'s tutorial.)
Then I flashed RMM_Bypass_v3_corsicanu.zip and no-verity-opt-encrypt-6.1.zip. Then I proceeded to flash Magisk (20.0). When I rebooted the phone, there was a yellow text on the top-left of the boot screen saying set guarantee bit: Kernel.
The phone booted as usual, and I got to the setup screen, where I needed to fill all the information (you know, like after you buy a new phone). When I was done with that, there were plenty of strange things going on with the phone:
1) There was no Magisk application installed, and I didn't have root access.
2) Everytime I rebooted the phone it got stuck for a bit and then it went back to the "first boot", (like if it were reseted everytime).
Now, my question is, has this to do with Magisk, the RMM bypass patch, or the no verity opt encrypt one? Were any of those outdated?
In the end, I just flashed the stock firmware and it all works fine.
install magisk manager app. you will get the root access. but it will ruin lockscreen security. with pie samsung f**ked us real hard.
Same here, I bricked it twice and tried all available twrp (3), my main reason for rooting as I am complete noob, was the chance that I could somehow enable camera 2 api. No chance of doing that, if you do, you get message "serious camera error" smh, I had it on J3 but can't have it on much more expensive a6 plus. Anyhow my impression is that problem could be in unofficial TWRP, rather than in those zip files, after all they do work on other devices.

Oneplus 7T bootloop for new magisk (with solution for booploop)

So, i updated magisk (version 21? EDIT: manager was set to upda te to beta, but 20.4 also bootloops :/ ). Before rebooting, also installed to inactive slot, cause.... If you can do it after a OTA update, why not doing it normally, right? Bootloop. Have to press both the power button and VOL up for it to turn off. Usually just the long press on power buttton would do the trick.
Oneplus 7T OOS 10.012 EU
SOLUTION for the bootloop:
- Installed TWRP 3.4.0.2
- Because it cannot access data partition nor transfer files via USB, i did adb push -p local-pc-file-here /tmp
- So, i installed OOS 10.0.13 from there and it booted fine, however without magisk even tough i installed it from /tmp as well right after the ROM install without reboot.
- Tried to reinstall magisk from TWRP (had to reinstall it too, as OOS deleted it), but it bootlooped again. So, i'll wait for a boot file with it.
Executing Magisk-uninstaller-20201003.zip on TWRP did NOT work, cause it couldn't mount the necessary partitions.
EDIT: I have no magisk modules, so i don't know why all of this mess :/
If magisk was already installed on the inactive slot before you patched it, the boot image gets corrupted (at least it always does on my 7T). Really shouldn't use the ota patch feature if you're not installing an ota
Allen77777 said:
If magisk was already installed on the inactive slot before you patched it, the boot image gets corrupted (at least it always does on my 7T). Really shouldn't use the ota patch feature if you're not installing an ota
Click to expand...
Click to collapse
Gotcha! All good now. BTW, if anyone needs, there's a patched boot file on 7T's forum for 10.0.13 EU.
I have the same issue with 10.0.13 HD65AA.
First I tried to do the full update like usual with installing Magis 21 into both slots before reboot but then I got stuck on the boot animation.
Tried a lot of things until I found this thread here. Once I got into TWRP I pushed the latest ROM over to the phone and installed it and I could get back into my phone again. But once I tried to install Magisk via TWRP or boot the patched image for 10.0.13 HD65AA from XDA I get stucked in the boot animation again. So I had to once again push the ROM to the phone and install it into the second slot and once again my phone boots again.
So for whatever reason there is an issue with Magisk and both 10.0.13 HD65AA and HD65BA. So at least for me for now no root.
Thank you very much for at least getting into my phone again without losing any data. :good:

Categories

Resources