yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 Guides, News, & Discussion] Talhah Peerbhai:
Can't update from pie to android 10 rooted device

Before I came to this forum I went ahead and downloaded the latest OP6 stable update which is android 10, unfortunately I had removed all magisk modules, rebooted and then removed magisk and rebooted to recovery. When trying to flash android 10 ota in twrp I'd get an error 7 as part of the ota flash and then followed by an error 1 from twrp. After coming to this forum I realized that when I removed magisk I uninstalled it completely rather than clicking restore images (as described in method B) . How would I go about installing android 10, twrp and magisk without losing my apps and data in android 9? I'll attach a screenshot of the error as soon as possible. Do you I need to flash to stock and then update to 10? However I wouldn't like taking that route as I want to keep my apps and data as is in android 9?

Edit: I have managed to fix this by restoring the images manually and upgrading to android 10
[OnePlus 6 Guides, News, & Discussion] :
Which TWRP version are you using? The one that you're having error 7.
[OnePlus 6 Guides, News, & Discussion] akboy7015:
I don't know exactly how encryption work but if the twrp version does not know your Android version it can happen than encryption is not recognized and twrp don't ask you to decrypt, so you have strange folders and file names. It can also happen when you wipe some partition like system. It happens to me when I was under Android 10.3.0 and I flashed twrp Blu v101 (no compatible) to test my other partition (where v9.0.9 was installed). So the solution for me was to flash back the twrp v108.

In your case, if you can boot on Android, disable security and try again, or try to change the AB partition to test the previous Android version then disable security
[OnePlus 6 Guides, News, & Discussion] Jhonys:
Well it seems i accidentally deleted my system in TWRP.

When i boot my devices it goes to this state where i can select either 1. boot device, 2. boot recovery, 3. boot bootloader. Whichever option i choose it just goes back to this mode.

How can i flash 10.3? or twrp to then flash 10.3? i tried 'fastboot boot twrp-3.3.1-16-enchilada-Q-mauronofrio.img' but it gives me an error:

downloading 'boot.img'...

OKAY [ 0.665s]

booting...

FAILED (remote: Failed to load/authenticate boot image: Load Error)

I now have a semi bricked phone. Would love some guidance..
[OnePlus 6 Guides, News, & Discussion] xpakage:
try- fastboot flash boot twrp-3.3.1-16-enchilada-Q-mauronofrio.img
[OnePlus 6 Guides, News, & Discussion] Perru:
...or try the tool from here (helped me in a similar situation): https://xdaforums.com/android/software/tool-tool-one-driversunlocktwrpfactory-t3358711
[OnePlus 6 Guides, News, & Discussion] Jhonys:
ok so i tried to use that tool but was afraid to mess things even further. I eventually followed this thread and now the phone runs.

Thanks a lot :good:
[OnePlus 6 Guides, News, & Discussion] amrs:
Thanks, I just updated from 9.0.9 to 10.3.0 using this guide. Well, except I took the OTA instead of doing local update but that seemed to work just as well.

Only issue so far, stupid Boldbeast Recorder Pro decided to revert to the free version. And of course I had an important phone call I actually wanted recorded but the free version recorded the first 30 seconds only. Some other apps re-asked about their permissions too or wanted me to accept their EULA. I don't remember if it was like this last time with an Android version update. Launching all my apps to make sure there's no more surprises down the road...
[OnePlus 6 Guides, News, & Discussion] Talhah Peerbhai:
Thank you for your reply, I have since got it working again by flashing manually restoring images which fixed the problem.
[OnePlus 6 Guides, News, & Discussion] marco.it:
Hi;

I booted from fastboot the twrp.img 3.3.1.16, it asked for my pattern, introduced it and it said wrong pattern even I was using the correct one. I reboot system and know the system also says wrong pattern.

What did happened? I did not flash anything, just booted that IMG. I tried to remove lock settings.db on my data/system file using that encrypted twrp, phone boots but got stuck on "phone is booting".

Any tips?
[OnePlus 6 Guides, News, & Discussion] thugslug:
Yes. Always remove any security before you upgrade anything, or especially downgrade anything, even if every one says it doesn't matter, because often it does.
[OnePlus 6 Guides, News, & Discussion] Brisky86:
Thank you so much!

This greatly helped!

10.3 seems to be much better than 10.1 was.
[OnePlus 6 Guides, News, & Discussion] subodhdhull:
Thank for the instructions.

Updated to 10.3 with section B without any problem.

Just make sure to disable/remove all magisk modules and remove all pin or password.
[OnePlus 6 Guides, News, & Discussion] manny18pr:
Delete
[OnePlus 6 Guides, News, & Discussion] plopingo:
Hi,

twrp "mauronofrio" build only? it's not working with the official build?

Thanks.
[OnePlus 6 Guides, News, & Discussion] hill67:
I am on 9.0.9 with an old TWRP.

Before updating to 10.3.0 according section B can i just flash the newest TWRP in the old TWRP itself?

EDIT

Just flashed the new bluspark via the old TWRP and everything is fine except that i lost root.

I got root back by first flashing the magisk-uninstaller zip file and after that magisk 20.2

EDIT 2

Followed instructions according section B and now I am on 10.3.0 with root and TWRP

THANKS!!
[OnePlus 6 Guides, News, & Discussion] no_one008:
Might be a stupid question but does it work on oneplus 6t as well?
[OnePlus 6 Guides, News, & Discussion] :
It should work, but the TWRP links I included are for the OP6 only.
[OnePlus 6 Guides, News, & Discussion] no_one008:
Could you drop the links for OP 6t? Would be really great
[OnePlus 6 Guides, News, & Discussion] :
https://xdaforums.com/oneplus-6t/development/recovery-unofficial-twrp-touch-recovery-t3861482
[OnePlus 6 Guides, News, & Discussion] no_one008:
Thank you very much
[OnePlus 6 Guides, News, & Discussion] Lastwurdz:
I'm on 9.09 with magisk. And edxposed. Should I unusual edxposed as well before updating? The only module I have is gravity box in edxposed and the riru core module in magisk. I was considering just uninstalling all of it before the upgrade. Any advice would be appreciated. Thanks.
[OnePlus 6 Guides, News, & Discussion] unexpected0ne:
Sigh... After flashing Magisk v20.2 I'm stuck on "Phone is booting..." screen (or whatever it says in English). You know... I can see almost booted system with my wallpaper, the clock and wifi, but it loads infinitely and can't do anything... Maybe I'll try to reboot it...

[edit] Ok, after forced reboot it works. But I had sh*t in my pants for a moment. And I can't change my poll vote now, thanks XDA.

[edit2] Ok, but some of the applications doesn't work, phone is hot and recent applications menu doesn't work. It freezes and I need to forcefully reboot phone. Something's still very wrong here.

[edit3] I uninstalled Magisk and system works... Of course no root now. I think that with the Magisk the phone couldn't build app's cache. Maybe I'll wait for the next version or use a previous one... I'll see.

[edit4] It works with 20.1. Don't update guys...
[OnePlus 6 Guides, News, & Discussion] lm089:
I understand that situations like these are frustrating, but recommending *not* to update is probably a bit harsh. I write this because update went perfectly smooth on my side (running OOS 10.3.0,updated magisk manager first then made a Nandroid backup to be on the safe side then finally updated magisk from 20.1 to 20.2,then rebooted. No probs at all here...)

Did you by any chance unload any modules before you updated? Because fact is that I don't run any modules here, just using magisk as a su management tool...
[OnePlus 6 Guides, News, & Discussion] unexpected0ne:
Well, yes, I left the modules intact, that is enabled... But that never was a problem and it was not a problem with 20.1 version apparently... Either way I'll try to update with Magisk with modules disabled to check it. But not today, because I'm tired :)
[OnePlus 6 Guides, News, & Discussion] AndechitoOP6T:
Hi everyone,

I am sure this is a very very noob question because nobody had the same problem, but I´m still trapped with this TWRP .img... It does not decrypt my sdcard. Could you tell me why, please?

My OP6T has A 10.3.0 full stock.

Thank you for advance!
[OnePlus 6 Guides, News, & Discussion] :
You're in the OP6 forums, sweetie.
[OnePlus 6 Guides, News, & Discussion] Mississip:
Thank you, remewer! I was floundering after taking the 10.3 OTA. All went smoothly, other than a mistake of my own making that wasn't difficult to resolve.
[OnePlus 6 Guides, News, & Discussion] unexpected0ne:
Just to finish my story - I disabled modules and installed the update to Magisk through Magisk and it's ok.
[OnePlus 6 Guides, News, & Discussion] lazye53:
works flawlessly for oneplus 6.

Thank you very much :)
[OnePlus 6 Guides, News, & Discussion] sierraindigo:
local upgrade fails if filenames are altered

just as an fyi the local upgrade fails if you have altered the filename at all. probably seems obvious but it had me stumped for ages - i'd downloaded on my laptop and renamed to reflect different versions of stables and betas then couldn't do anything with them after transferring to my op6
[OnePlus 6 Guides, News, & Discussion] ired17:
I'm on oos 9.0.9, so i should follow method D, right?
[OnePlus 6 Guides, News, & Discussion] Althair10:
I'm with 9.0.9 with TWRP and Magisk 20.3, should i install Magisk 14 and try method B? Or stick with 20.3 and install TWRP retention?
[OnePlus 6 Guides, News, & Discussion] Hitman478™:
As op says in OP, if you're coming from oos 9 follow section B ;)
[OnePlus 6 Guides, News, & Discussion] Mathorlaz:
I'm on OOS 10 OB3, and I know the guide says that we should first flash stable (as per II), but does anyone know if it would it work to flash twrp without being in Stable? I wanted to root, to make a proper titanium backup before migrating back to stable.

Thanks in advance for the help.
[OnePlus 6 Guides, News, & Discussion] Althair10:
I know but the OP says later in the comments that he tried with Magisk 20 and couldnt keep TWRP so i am just trying to keep both (Magisk and TWRP, and my data of course)
[OnePlus 6 Guides, News, & Discussion] akboy7015:
Even if magisk and twrp are gone you can still reinstall them using the fastboot method (only if you are now in 10.3.0, it is broken in 10.0.1) so even if you update from 9.0.9 via local update without installing twrp retention script it's not a real issue. I'm currently on 10.3.0 and twrp and magisk have been installed after update since my 9.0.9 was non rooted without twrp, and even non unlocked!
[OnePlus 6 Guides, News, & Discussion] angelsenvy:
Heya, could someone let me know the fastboot command to flash twrp? I normally do fastboot boot twrp.img but it just freezes on the oneplus logo doing that now. So I tried fastboot flash recovery twrp.img but of course that doesn't work on an A/B partition device. not sure what the syntax should be, I have the twrp blu_spark 3.3.x zip and img files, currently stock recovery and had done OTA update from android 9 to 10. Much appreciated.

*edit I tried it with the twrp from the OP and it was able to boot through fastboot, must have been an issue with the bluspark twrp img I had*
[OnePlus 6 Guides, News, & Discussion] Althair10:
Okay, i know i'm dumb, but when i try to uninstall Magisk i get this error, what do i do?
[OnePlus 6 Guides, News, & Discussion] akboy7015:
It happened to me when I update magisk through app itself instead of using twrp (uninstall script+install new version).

The only solution for me was to reinstall magisk properly via twrp before the local update.
[OnePlus 6 Guides, News, & Discussion] leebenningfield:
Thanks! I was wary about the upgrade to 10.3 while having TWRP and Magisk installed, these instructions were helpful. I also wasn't aware of the TWRP fork, I was still on 3.3.1-2.
[OnePlus 6 Guides, News, & Discussion] ired17:
Currrently on oos 9.0.9 having blu spark twrp. Now, if i had to chage my twrp to to 3.3.1-16 mauronofrio. Can i follow these steps?

1. Reboot to twrp(my current w/c is blu spark)

2. Flash 3.3.1-16 mauronofrio.img

3.Reboot to recovery

4.Flash 3.3.1-16 mauronofrio.zip

5. Then reboot to twrp again to check if succeeded?
[OnePlus 6 Guides, News, & Discussion] kalube01:
Thank you!

Using your TWRP allowed me to have Android 10 installed on slot B and downgrade slot A to LOS 16.0 so I could dual boot with SailfishOS
[OnePlus 6 Guides, News, & Discussion] :
It's not my TWRP, it's [MENTION=4712355]mauronofrio[/MENTION]'s. Thank him :)
[OnePlus 6 Guides, News, & Discussion] :
Is anyone here updated to OB4? Please confirm if fastboot boot command still works so I could update this guide.
[OnePlus 6 Guides, News, & Discussion] ultravy:
Flash zip first and reboot to recovery! Zip will flash in both slots(a/b).
[OnePlus 6 Guides, News, & Discussion] RASTAVIPER:
Many users are upgrading while having already installed TWRP and Magisk.

This is something standard for months.
[OnePlus 6 Guides, News, & Discussion] leebenningfield:
Previous updates I was flashing from TWRP, and that always worked fine. Upgrading from 9 to 10 didn't work this way, and without this specific post I don't know where else I'm supposed to find documentation for any of this.
[OnePlus 6 Guides, News, & Discussion] ired17:
I see. Should i flash the zip file again after rebooting in recovery?

Then flash the .img file for the last step?
[OnePlus 6 Guides, News, & Discussion] amandeepsaini11:
I am on stock recovery on ob4, kindly tell me steps to install TWRP?
[OnePlus 6 Guides, News, & Discussion] ultravy:
No need to flash zip or img, zip already have img inside and flash on both slots! Rebooting to recovery in necessary for not loosing twrp! Flash twrp zip, reboot to recovery, flash latest magisk , if you want root!

You have instructions on fist page in OP section!
[OnePlus 6 Guides, News, & Discussion] Grigori88:
I don't know what I'm doing wrong.

I am on stock recovery on 10.3.0.
[OnePlus 6 Guides, News, & Discussion] akboy7015:
Try "fastboot flash boot yourtwrp.img"
[OnePlus 6 Guides, News, & Discussion] Grigori88:
I installed OB4 and it works now.
[OnePlus 6 Guides, News, & Discussion] Oakhand:
Hi, I flashed android 10 over my stock image, then TWRP quesadila and magisk 20, as per instructions. Curiously I now have a situation where whenever I reboot I end up in TWRP recovery. From there I am able to boot into system. Any hints as to how I can make it boot directly into system? (I did the little reflash twrp, magisk several times already).

cheers
[OnePlus 6 Guides, News, & Discussion] lm089:
"TWRP quesadilla", are you sure you're using the correct twrp? Codename of op6 is enchilada.

https://xdaforums.com/oneplus-6/development/recovery-unofficial-twrp-touch-recovery-t3860815
[OnePlus 6 Guides, News, & Discussion] sttijn:
the 1st command doesnt work for me, what am i doing wrong?
[OnePlus 6 Guides, News, & Discussion] lm089:
See just 4 posts up (by akboy7015) as well as numerous others in this thread:

>> Try "fastboot flash boot yourtwrp.img"
[OnePlus 6 Guides, News, & Discussion] Oakhand:
ah darn yes: I flashed

1) Adroid 10 (OnePlus6Oxygen_22_OTA_042_all_1912142031_0fb330),

2) twrp-3.3.1-16-enchilada-Q-mauronofrio and

3) magisk 20.3

now booting consistently into recovery from where I can boot into system, but obviously I'd like to boot straight into system and ran out of ideas how to fix this... Thoughts are welcome
[OnePlus 6 Guides, News, & Discussion] lm089:
Don't have any clue whatsoever as this never happened to me since I started with rooting, flashing etc.

I take your "thoughts are welcome" literally, though:

A. looking at your list above it looks as if you had used a local update drawn from mauronofrio's great Stock ROM repository (https://xdaforums.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665).

If that is the case: may I ask why you didn't let the OP update do its job but used a ROM downloaded from somewhere else? As far as I remember mauronofrio himself states somewhere in his thread that those ROM images are rather meant for cases of emergency.

But maybe I'm wrong or you are having a good reason why you updated the way you did.

B. I'm not a real expert when it comes to Android architecture. But the answer to your problem might be lying in this great XDA post, scroll down to the paragraph entitled "What happened to the recovery partition?"

So my first attempt would be to dirty flash the entire ROM from TWRP again, then install TWRP's installer ZIP etc. (again see the post mentioned above, at the paragraph entitled "How to update an A/B device that has a custom recovery, kernel, or other mods").

C. If that doesn't work for you, what I then would possibly try was to get rid of TWRP by flashing a proper boot image then step-by-step get back to where you want to be:

1. extract the boot.img file from mauronofrio's ROM (it must be the version that's currently installed, I assume).

2. remove any security (PIN or pattern) while in system

3. uninstall any magisk modules (just to be on the safe side)

4. boot into recovery

4a. uninstall magisk (just to be sure, again)

4b. create a Nandroid backup

5. flash the boot.img from fastboot

Now see if you're able to boot to system without first entering TWRP. If that is the case you can begin to restore everything else like install TWRP, then Magisk etc.

Let me once again emphasize that I never had a situation like that, and I don't know if that really helps in your case. And of course: you're doing this at your own risk

Good luck!
[OnePlus 6 Guides, News, & Discussion] Oakhand:
hey, ty so much for your extensive reply. Much appreciated! I will try your suggestions.

for the interested: I had upgraded from within android to A10 via the stock rom (I NEVER do this, just hit the button and no going back...), noticed that I did not have twrp anymore. This led me to a set of actions some of which might not be the right ones...:

1) flash from within android 9 to android 10 (I usually do this from twrp)

2) noticed twrp was gone and root too

3) thought, well, I have a nandroid, so lets flash that back, restore to previous state - this was a bad idea, should have fastbooted and pushed twrp from PC...

4) notice android 9 does not work any more - why?

5) flashboot both slots with something (this might be the culprit) - no success

6) flash stock A10, twrp enchilada, magisk 20.3

7) working A10 system but get thrown back into recovery every reboot

so, now I have a sort of working phone, but the recovery config seems to be off :silly: - Lesson: do not turn your brain off while flashing your daily driver...

ps. ty for the ref to A/B partitioning, I think I screwed up my A partition set since I cannot boot from that any more...
[OnePlus 6 Guides, News, & Discussion] ired17:
Does anyone here tried Method B having a decrypted oneplus 6 thru noverity file? Wondering, if i have to reboot to twrp instead of rebooting to device in the last step, so i can intall/flash the noverity file to remain being decrypted. Just in case, someone had encountered this. Thanks.
[OnePlus 6 Guides, News, & Discussion] Paratax:
Can anyone confirm if i need to be on 9.0.9 in order to flash twrp-3.3.1-16-enchilada-installer-mauronofrio & install OOS 10.3.0? I'm currently several versions back.

I don't care about the data & plan to do a full wipe, but I've been hearing conflicting information, with some saying you need to be on 9.0.9 before installing the latest TWRP, while others say just flash the latest TWRP first, then reboot into the new TWRP & flash 10.3.0.
[OnePlus 6 Guides, News, & Discussion] Apex Rick:
So I'm attempting to get root working on my OP6 again (after having successfully rooted this phone twice before), and this time I've run into an issue where Magisk keeps causing bootloops. I have the latest TWRP installed fine, but every time I try to flash Magisk and reboot, the phone will just continuously loop back to the "Fastboot Mode" menu. If I go back into recovery from there and flash the Magisk uninstaller, the phone boots up just fine. I tried Magisk versions 20.3, 20.1, 20.0, and 18.1. The v18.1 zip failed to install, and the other three all exhibited the same behavior—successful installation message, then bootloop.

I'm running OOS 10.3.0 and coming off a complete system/data reset. Anyone have experience with this?
[OnePlus 6 Guides, News, & Discussion] Apex Rick:
Nevermind, fixed by re-flashing the 10.3.0 zip and then flashing Magisk afterwards
[OnePlus 6 Guides, News, & Discussion] kemz_a:
I'm having an issue with the lastest OOS 10.3.1 update. Updated from 10.3 using method B. I used that method before to update from 10.2 to 10.3 so i thought i would be good. But now I'm getting persmission controller keeps stopping error and i dont know why. Is there a fix for this?
[OnePlus 6 Guides, News, & Discussion] kemz_a:
Nevermind figured it out
[OnePlus 6 Guides, News, & Discussion] mandarinman:
hey guys i'm stuck on waiting for device in cmd. what do i do?
[OnePlus 6 Guides, News, & Discussion] lm089:
Not having the slightest idea what this post is about...
[OnePlus 6 Guides, News, & Discussion] Hateislove:
This is some extreme bull****! I have been trying to root for days now and it just won't work! These are the steps that I follow:

1. Complete wipe and flash 10.3.1 using Maunofrio's fastboot zip.

2. Boot into TWRP and flash it and reboot to recovery again

3. Flash Magisk
[OnePlus 6 Guides, News, & Discussion] rp158:
[MENTION=10510495]mandarinman[/MENTION], after looking deeply in my crystal ball, I guess you talk about ADB /Fastboot. If that's true:

1. Do you have granted USB in Developer options?

2. Does your computer confirm, when you connect your phone?

3. Did you install the actual ADB-package?

[MENTION=4392645]Hateislove[/MENTION]: your description doesn't seem complete. If you got many *** times the same bad result, take one of the complete and easy descriptions here and follow them up literally. Begin fe with flshing a fastboot-OTA-firmware for a clean base.
[OnePlus 6 Guides, News, & Discussion] thugslug:
The definition of stupidity is repeatedly doing the same thing and expecting a different result. Apart from that, you're hard to help because you don't give enough details re the nittygritty of the process you follow or the versions you use.

Read the first posts carefully again, use the latest versions of everything, report back in detail and we'll then be happy to help. I do understand your frustration, don't get me wrong there, but so far we can't.
[OnePlus 6 Guides, News, & Discussion] Hateislove:
Sorry, human beings. I lost my head there. Well, frustration led me to stupidity. First of all, I did try several different ways to make it work but it didn't. However, the solution was so simple, I feel like punching myself -

Since the command fastboot boot twrp didn't work for me, I used fastboot flash boot twrp. This was followed by flashing twrp zip and magisk. And it ended up on splash screen. Other things I tried:

1. Fastboot flash boot twrp -> flash twrp zip -> reboot

2. Fastboot flash boot twrp -> flash ota zip -> flash twrp zip -> reboot

3. Fastboot flash boot twrp -> flash ota -> flash twrp -> reboot to recovery-> flash ota -> flash twrp -> reboot

I tried the last list of steps by flashing ota on both slots. All the steps lead to the same result.

Anyway, it must have been obvious by now what I was doing wrong. I was flashing the boot partition using fastboot and going up from there. It took me a long time to realise that. Flashing boot image after fastboot flash and then flashing twrp did it.

Apologies again. It was a stupid day!