yashsingh1/xdaforums huggingface dataset:
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
You've missed something.

Hopefully you've a backup of your data.

You'll need to push a copy the full ota inside your phone from TWRP

If can't, you'll have no choice to do a full erase and do all the update to 11.0.2.1.

- unlock the BL.

- flash twrp.

- install magisk.

-> to check which slot is you phone : https://krispitech.com/check-partition-slot-a-b/

- reboot slot a if you're in b or vice versa.

- flash magisk

- reboot slot b if last was a or vice versa.

- reboot system

in last case, you can do the boot img method, very easy and simple. After that you could always install TWRP if you need still it.
[OnePlus 7 & 7 Pro Cross Device Development] Skyrider:
Thanks for the replies. It appears that some old magisk modules from Android 10 was causing the bootloops... I finally got them removed and everything works now.
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
I forgot that case about magisk modules.
[OnePlus 7 & 7 Pro Cross Device Development] almahix:
OMG I am in shock! Finally after all this time to have a working TWRP. I didn't think I'd live to see the day. A million thanks!
[OnePlus 7 & 7 Pro Cross Device Development] xtzy:
So much delight, joy and all in vain.

TWRP will only become operational when it can make system backups.
[OnePlus 7 & 7 Pro Cross Device Development] anishadhikari:
I'm on oxygen os 11.0.2.1 magisk boot.img patched root and I want to install lineage os is this method works on lineage os? or do I have to install it with other methods?
[OnePlus 7 & 7 Pro Cross Device Development] almahix:
I'm wondering the same. Lineage looks good and is well supported.
[OnePlus 7 & 7 Pro Cross Device Development] wartomato:
Using the non_fbev2 version should be fine. Internal needs to be formatted of course and magisk can be installed from TWRP (the first time, if wanted. I recommend booting lineage first.)

You can overwrite lineage recovery that prohibits the install of magisk.

Of course you will need to reinstall TWRP on a lineage update.
[OnePlus 7 & 7 Pro Cross Device Development] anishadhikari:
booting lineage successfully without twrp. first flash the lineage recovery from fastboot method then goto lineage recovery format and flash lineage os zip from adb sideload and try pixel experience rom too it works after that safely boot and again flash magisk using sideload and voila :)
[OnePlus 7 & 7 Pro Cross Device Development] Sugaaa:
If i'm installing havoc os with twrp, should i use the regular or the _fbev2 version? first time i used regular, it was fine. i used same steps on a different oneplus 7 pro and it got bricked.
[OnePlus 7 & 7 Pro Cross Device Development] anishadhikari:
Use the regular version but after installing you have to clear data and cache i also got bootloop in first time after i flashed rom then i format data and cache then successfully booted.
[OnePlus 7 & 7 Pro Cross Device Development] Nebrassy:
Uploaded new build for non FBEv2 fixing backup in most cases, you should still not depend on TWRP backup as the only backup you have as restoring while encrypted can be problematic
[OnePlus 7 & 7 Pro Cross Device Development] TotallyAnxious:
Would you consider making an installer.zip, I for the life of me can't get fastboot to work.

Edit: got it working. fastboot works on my xps but not my spectre
[OnePlus 7 & 7 Pro Cross Device Development] midgo12:
Okay so I installed the new TWRP-3.5.2-guacamole-Nebrassy-2.img and gave back up a shot but I got this.

Flashed latest Magisk after install.

I am able to reboot back into TWRP and decrypt with no issues.

Root is still OK.

Looks like latest TWRP backup still doesn't like my phone/setup.

My phone is a Oneplus 7 Pro GM 1910.

Oxygen OS 11.0.2.1.GMA21AA.

Anyone had a succesful backup please share any relevent information that may help...

View attachment 5386941
[OnePlus 7 & 7 Pro Cross Device Development] Nebrassy:
Get recovery.log, if you had a parallel space multi users it won't work
[OnePlus 7 & 7 Pro Cross Device Development] midgo12:
Here is the recovery log.

Recovery log TWRP 16.8.21

Starting TWRP 3.5.2_11-Nebrassy-03e604b1 on Fri Jul 24 21:23:18 1970 (pid 588) BOARD_HAS_NO_REAL_SDCARD := true RE...

textuploader.com

As far as I know I don't have multi users.

Where would I check this...
[OnePlus 7 & 7 Pro Cross Device Development] Nebrassy:
Upload the log again, it wasn't uploaded
[OnePlus 7 & 7 Pro Cross Device Development] midgo12:
Here is the recovery log.

Sorry.

I have edited the post with a link to the log.
[OnePlus 7 & 7 Pro Cross Device Development] acc.ayman7:
@Nebrassy thanks for your work.

I have issue with my OnePlus 7 Pro, pc stopped detecting it even in fastboot mode, is there a way to flash twrp from within oos 11 itself? I'm rooted with magisk btw.
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
The issue is with your PC.

- Reboot your 7pro in fastboot mode.

- Connected it to your PC

- Open CMD with admin rights.

- Tape : fastboot devices -> you should see the part number of your device, if you got an error or something wrong please verify that your 7pro is correctly recognized by your PC. Install the drivers may help.

- If it works then you can boot up to TWRP and once inside twrp you can flash it.
[OnePlus 7 & 7 Pro Cross Device Development] akaloith:
can i backup my oos 11.0.2.1

7t rom with apps

before i flash a custom rom

and restore easily if i dont like something?
[OnePlus 7 & 7 Pro Cross Device Development] 5star02707:
thanks the newly updated recovery now works with backup but of course i have to remove screen lock and fingerprints
[OnePlus 7 & 7 Pro Cross Device Development] midgo12:
I removed the pin screen lock leaving swipe only and deleted fingerprints.

TWRP no longer asks for a pin no to startup but I still get Error 255 when trying to backup.

Please explain what you did to complete a succesfull backup...
[OnePlus 7 & 7 Pro Cross Device Development] 5star02707:
did manual back up first (images and internal storage in computer),

backed up on cloud for app settings, call log, messages and wifi settings. (google backup)

then factory reset the phone (like new)

followed by installing this new TWRP and root

reinstalled the apps using google restore.

still no fingerprint or any lock settings at this point

head over to TWRP and back up data should now work
[OnePlus 7 & 7 Pro Cross Device Development] wartomato:
"240

can i backup my oos 11.0.2.1

7t rom with apps

before i flash a custom rom

and restore easily if i dont like something?"

If the ROM uses the same firmware (11.0.2.1) and encryption (FBEv2) then maybe that is a possibility.

So it depends on the ROM you are flashing... But that is usually not "advised".
[OnePlus 7 & 7 Pro Cross Device Development] aaa.bbb111222:
I flashed system with MSM download tool, booted into Android, unlocked bootloader, `fastboot oem unlock` & `fastboot flash boot TWRP-3.5.2-guacamole-Nebrassy-2.img`.

Installed TWRP, Magisk, tried to boot to system and got this:

Qualcomm CrashDump Mode

Attempted to kill init! exitcode=0x00007f000

complete_and_exit

What I am doing wrong?

Also, for some strange reason, phone shows as GM1917 on PC (with official TWRP - GM1910 as expected)
[OnePlus 7 & 7 Pro Cross Device Development] Fif_:
Did you flash the recovery on the boot partition?

fastboot flash boot TWRP-3.5.2-guacamole-Nebrassy-2.img

I see "boot" there. 😧

If so reflash the boot image, then flash recovery on the proper partitions. Or just boot the recovery without flashing:

fastboot boot TWRP-3.5.2-guacamole-Nebrassy-2.img

(Note that you do need a proper boot partition in order to boot recovery, so trying to boot recovery in the current state will fail, fix boot first).
[OnePlus 7 & 7 Pro Cross Device Development] aaa.bbb111222:
My bad:oops:

It's actually funny that when I restored backup (/data) progress went up to 112% 😁

And I got stuck in recovery (system won't load) with this error:

set_policy_failed:/data/vendor

It also fails to decrypt data: only password enter is proposed but not pattern
[OnePlus 7 & 7 Pro Cross Device Development] Nebrassy:
Read the instructions
[OnePlus 7 & 7 Pro Cross Device Development] Jarek84:
Hello everyone, I have a question

If my rom is encrypted with oos11, 11.0.2.1 GM21BA stable, magisk root. is it enough to follow these steps to upload twrp? (which twrp?)

1. Boot to boot loader.

2. Fastboot boot twrp which ?

3.When in TWRP go to Advanced - Flash Current TWRP.

4. Flash Magisk

5 Reboot system and done ?
[OnePlus 7 & 7 Pro Cross Device Development] iamMG:
If you have root you can run this command to remove parallel user:

Please report back whether you are able to successfully backup the ROM.
[OnePlus 7 & 7 Pro Cross Device Development] midgo12:
Yes I have root.

Willing to try.

Explain procedure to do it please.
[OnePlus 7 & 7 Pro Cross Device Development] iamMG:
1. Install Termux from Play Store.

2. Type first command and press enter.

3. Grant Superuser access in the dialog box that pops up.

4. Type second command and press enter.
[OnePlus 7 & 7 Pro Cross Device Development] midgo12:
Superuser access granted in Magisk.

Tried but did not work.

I have attached a screenshot.

What could be the issue?

View attachment 5394069
[OnePlus 7 & 7 Pro Cross Device Development] xtzy:
Incorrectly typed command:

p

m

remove-user 999
[OnePlus 7 & 7 Pro Cross Device Development] midgo12:
pm command as shown was typed correctly several times.

It does not show in the photo due to curved glass screen protector.

Not working for me for some reason.

Any information appreciated...
[OnePlus 7 & 7 Pro Cross Device Development] parag0n1986:
I have done a successful backup with the FBEv2 version on Derpfest, but when I try to restore I get "can't wipe system" when I'm trying to restore the system.img backup. Is this supposed to be normal? If so, do I just fastboot flash the derpfest system.img manually then restore Data with TWRP?
[OnePlus 7 & 7 Pro Cross Device Development] wartomato:
Is the system.img mounted and read/write enabled? Plus i personally have no idea what derpfest does partitionwise. Sorry.

On a usual restore it is unnecessary to restore system, vendor and a few other partitions as the ROM flashes them.
[OnePlus 7 & 7 Pro Cross Device Development] parag0n1986:
Thank you for replying. I'm running o o s 11.0.2.1 right now. How do I check to see if the system image is mounted and read write enabled? I'm not sure if I actually even need that either though, I just backed it up just in case I guess LOL I have the data partition though should I just try that first and see if it works?
[OnePlus 7 & 7 Pro Cross Device Development] wartomato:
System.img is the original oos image then. You can look up what is mounted by TWRP from within it and mount and unmount from there too.

TWRP asks on first boot if you allow system modifications. If you did not grant that, your error might occur because of that too.
[OnePlus 7 & 7 Pro Cross Device Development] parag0n1986:
So when I was running the derpfest ROM and I did the backup the system image wasn't for derpfest, but OOS?
[OnePlus 7 & 7 Pro Cross Device Development] wartomato:
No. But derpfest might use another size or formatting option or filesystem than oos does. But that is just a guess. (As I said, i am not "used" to derpfest, haha).
[OnePlus 7 & 7 Pro Cross Device Development] parag0n1986:
I see. Thank you for the information ☺️
[OnePlus 7 & 7 Pro Cross Device Development] zozo932:
I can normally flash TWRP with the latest version of OOS 11.0.3.1 but when I install magisk 23 in twrp I have an error message at the end "magisk failed to mount / system_root busy" and the phone reboots and hangs on the oneplus bootloop (the logo) I have to reboot on the TWRP and reinstall the update directly via the zip file and everything goes back to normal. But I can't root the phone. can someone help me or try? thank you !!!
[OnePlus 7 & 7 Pro Cross Device Development] Nikhil:
Works fine for me, flashed yesterday only.

I flashed FBE version (not the FBE v2), are you on the same twrp build?
[OnePlus 7 & 7 Pro Cross Device Development] zozo932:
Yes I am on the same twrp version (the last one), I tried to modify the boot.img in patch via magisk manager and flash the patched boot but it is always the same the phone bootloop on the oneplus logo. I have flash the original boot so that it restarts normally I can no longer root :(
[OnePlus 7 & 7 Pro Cross Device Development] Nikhil:
I did encounter a few problems along the way when I was flashing latest oos 11. Formatting the internal storage helped. Then I just followed the traditional approach

1. Enabled the option to install twrp after rom installation

2. Flashed oos (gets installed on inactive slot)

3. Noticed that the slot changed (not sure if it's the twrp that does it or how but my inactive slot was the active one)

4. Rebooted to recovery and flashed oos again to make sure both the slots are in sync.

5. Rebooted to see if the problems I was encountering were resolved or not (they were)

6. Rebooted to recovery and flashed magisk

I am now rooted, encrypted with oos 11.

May be try this one more time?

There's also an option to flash oos 11 with official twrp but you need to stay decrypted for that. If I were you that would have been my last resort.
[OnePlus 7 & 7 Pro Cross Device Development] zozo932:
at the step 4 i flash OOS on slot B (because the first flashing zip to inactive slot: a)
[OnePlus 7 & 7 Pro Cross Device Development] TechX1991:
No matter what I do, If I try to flash ANYTHING to my bootloader unlocked OP7Pro 5G (GM1925), it bootloops and I have to MSM...
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
I'm still on OOS 10.3.8.GM21AA, with Magisk root and encryption enabled. I have been holding off updating to OOS 11 until TWRP was able to support encryption/rooting without my losing data in the process.

Will this version of TWRP allow me to update to OOS 11.0.3.1 GM21AA without losing encryption/data/root?

Thanks!
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
You're in the right topic for it.

Anyway do a backup first to do anything.
[OnePlus 7 & 7 Pro Cross Device Development] zozo932:
Hello,

Following the last update I can no longer root my phone, I flash twrp correctly via the ADB command (adv devices, adb reboot bootloader, fastboot boot twrp.img) it restarts on the TWRP (the last compatible Android 11 ), I select install current TWRP, the installation of TWRP is done correctly but the problem is when I want to flash magisk 23.0 (the latest version).

When i flash the zip via twrp no error message nothing but when the phone reboots it bootloop to the oneplus boot logo, i have to do the power button and vol button manipulation - to boot to TWRP and then reflash the OOS 11.0 rom. 3.1 for the phone to restart normally.

I tried patching the rom image (boot.img) with magisk and flashing it but bootloop ca also.

I also tried to flash on both slot A and B the rom + boot.img but the same bootloop on the oneplus logo.

I don't know what to do anymore :( I don't want to lose everything my settings, knowing that I have optimized the phone as much as possible by removing all unnecessary applications etc. :(
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
Hi, @khalisz - Thanks for replying.

That wasn't exactly a "yes" or "no" response ... so I am still not sure:

Is the latest version of TWRP mentioned in this thread fully functional and safe for upgrading my rooted and encrypted OP7P currently on OOS 10.x?​

Appreciated,

¿GJ?
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
It's strange.

Refer to your post, you said that "Will this version of TWRP allow me to update to OOS 11.0.3.1 GM21AA without losing encryption/data/root?"

So yes, so why now you mean OOS 10.X ?

Then you're not the in right topic, for OOS 10.x it's this one : https://xdaforums.com/t/recovery-3-...7-pro-5g-stable.3932943/page-30#post-85598099
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
Hi, @khalisz - My OP7P is currently on OOS 10.X, and I have had the OOS 11.X OTA update sitting in my phone's installation queue for months now. Before installing the OOS 11.X OTA update months ago, I checked on XDA to see if there were problems installing the update, and ... there were. People were having problems rooting, and losing their data because encryption wasn't properly supported with TWRP. Updating was definitely not an option for me back then.

So, I held off installing the 11.X OTA update(s) for months. I was occasionally checking back on XDA to see when it was finally safe to install.

I checked again yesterday, and saw this thread with the newer TWRP version. This looks like it might be what I need to upgrade from OOS 10.X to 11.X without losing any data and also maintain root.

Just to be sure I wasn't beta (or alpha) testing, I was asking the crew on this thread to be sure this TWRP was good for the upgrade and safe to use without losing root or data.

Cheers,

¿GJ?
[OnePlus 7 & 7 Pro Cross Device Development] TechX1991:
I tried MANY methods posted here, I was on 10.x, 9.x, never 11. I ended up figuring out my own custom method
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
As I mentioned it, always do a backup of your data just in case.

An update of this TWRP fixed this issue since, now you can update to Oxygen OS 11 and install this TWRP with no worries.

You've first to follow the steps as well. You won't lose your data if your bootloader is already unlocked.
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
I can help you, which version of oxygen os are you running now ?
[OnePlus 7 & 7 Pro Cross Device Development] TechX1991:
I got it working with the twrp-3-3-1-4 img file. Was the only one that would boot.
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
It means that you're under Oxygen OS 10.X ?

Why don't you update to the last Oxygen OS 11.0.3.1 ?

The Nebrassy TWRP works for it.
[OnePlus 7 & 7 Pro Cross Device Development] TechX1991:
I fully booted and system stated I was on 9 under settings. I had no option for official 11 update when I checked system update
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
To install Magisk for the first time when upgrading from OOS 10 to OOS 11, do I need to create and install a patch boot.img file? Or, do I just rename Magisk-v23.0.apk to Magisk-v23.0.zip, and install the Magisk-v23.0.zip using this TWRP recovery?
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
It's strange, try with Oxygen updater.
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
Don't need if you have installed TWRP, rename magisk to magisk.zip and then copy to your phone. Reboot to twrp and flash it.
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
And ... I'm kinda dead now.

I started my upgrade process based on the instructions in the original post. I installed the new TWRP and then did the Flash Current TWRP. Then, I tried to install the OTA update, and found that I can't install the OTA upgrade file in the .Ota directory with those instructions. On top of which, if I install the OTA upgrade, I believe it will overwrite the Recovery Partition with the OP Recovery - so, I would need to reinstall TWRP after installing the OTA.

So, I decided to hold off the upgrade for now, until I could research it later - and found out that I can't. My OP7P will only boot into TWRP now, and I can't boot back into normal operation. :(

I am hoping that I'm just dead, but not really dead. (A Princess Bride Reference)

It was exactly the thing I was trying to avoid.

How do I install the OTA update file, get the new TWRP, and a rooted phone?

¿GJ?
[OnePlus 7 & 7 Pro Cross Device Development] osm0sis:
I think you could flash Magisk again or go to TWRP Advanced Fix Recovery Bootloop option and be fine again.

Failing that just flash the default boot.img from your ROM, then fastboot boot TWRP to root it again.
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
Thanks, @osm0sis - In the intervening minutes since my last post, I did get my OP7P it working again by reflashing Magisk while inside TWRP.

Will these steps work successfully to install the OOS OTA update?

Install the OOS 11.0.3.1 OTA update (which will wipe out TWRP Recovery) from the phone's System Update window

Don't allow the System Update to reboot yet.

Do a long power button press to bring up the OOS boot option menu

Boot into Fast Boot mode

In a Minimal ADB command prompt, type: fastboot boot \pathTo\ThisTwrpRecovery.img

In TWRP, select Advanced >> Flash Current TWRP

Install Magisk.v23.0.zip

Reboot

Tah-Dah?

¿GJ?
[OnePlus 7 & 7 Pro Cross Device Development] TechX1991:
I made a video tutorial for how I did it since nothing else worked.
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
Don't do this, you risk to get your phone wiped by the OnePlus recovery.

When you are root with BL unlocked can't anymore use OTA, need the full rom and flash it under TWRP, flash current twrp and then Magisk.

When you're just root with the boot.img methode, same you need the full rom to extract the boot.img root it and flash it after to have updated to remain root.
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
OK, good thing I didn't try my route, then.

I have root with my BL unlocked - So, apparently I can't use the (US/Global version) OTA downloads anymore. Where would I find a copy of the flashable OOS 11.0.3.1 ROM that was embedded in the OTA update? I saw links to the OP7P Global OOS OTA files in the XDA forums, but I didn't find the OOS 11.0.3.1 flashable ROMs.

On a side note ... before I attempt the upgrade to 11.0.3.1, is it worth it?

¿GJ?
[OnePlus 7 & 7 Pro Cross Device Development] osm0sis:
With Full OTAs his method looks like it would have worked fine on a 7 Pro; TWRP flashes to both slots and it and Magisk replace and root the ramdisk, respectively. Only snag would be whether the TWRP ramdisk remains compatible with the updated OOS, which is hit or miss depending on what OnePlus changes.
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
You can get it with Oxygen updater app, or just Google it. ;)

=> https://otafsg-cost-az.coloros.com/..._21.P.39_OTA_0390_all_2108161902_24ef0f10.zip
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
OK, I'm sorry, but now I'm really confused. That is exactly the same file as the OTA download I already have in my .Ota directory. I thought that if I install that OOS OTA Zip file in TWRP, it would overwrite TWRP and revert back to the OOS Recovery Mode the next time I booted. Is that not true?

Can I just install my already downloaded OTA file (in the .Ota directory), and it will only update the OP7P to 11.0.3.1, and leave everything else (primarily data and Recovery Mode) OK?
[OnePlus 7 & 7 Pro Cross Device Development] khalisz:
As I explained, when your phone is :

- Bootloader unlocked

- Root

You have to proceed the update differently if you don't want to lose everything include your data.

Once again, first of all do a backup.

1 - Get full OTA update zip

2 - into your phone create a folder within the full OTA + Magisk

3 - Reboot to recovery

4 - Flash the full ota zip twice (slot a and then b or b then a, back to the initial partition if a, then a if b then b).

5 - Go to advanced and select "install current twrp".

5 - Flash Magisk.

7 - You're done, you can boot to system.
[OnePlus 7 & 7 Pro Cross Device Development] parag0n1986:
Have you tried Magisk Canary? If not, give that a try.
[OnePlus 7 & 7 Pro Cross Device Development] parag0n1986:
if you install current twrp after magisk, TWRP will erase magisk. Flash magisk very last
[OnePlus 7 & 7 Pro Cross Device Development] ¿GotJazz?:
Updated the instructions above for clarity.

Thanks a ton for the clarification! This step-by-step description really helped!
[OnePlus 7 & 7 Pro Cross Device Development] Jerrvdll:
Yes, but as parag0n1986 said, flash magisk after twrp otherwise you will lose root.

​
[OnePlus 7 & 7 Pro Cross Device Development] Virus1x:
I flashed TWRP, I forgot to wipe data now it flashes TWRP screen over and over and doesn't do anything else did I just brick my device?

HOLDING VOL UP + Power and plugging phone doesn't give me the MSM it starts the phone and flashes TWRP screen please help.