yashsingh1/xdaforums huggingface dataset:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
What happened originally was:

I flashed twrp from magisk but I forgot to install magisk again and rebooted. Since Twrp erases root I got stuck in a boot-loop. The system wasn't booting up. I was only able to get into twrp so I got into TWRP and I adb side loaded magisk 19.3 zip file and now my phone is running fine. But twrp isn't functional. I can't do anything with it besides adb-sideloading stuff and rebooting the system or turning off the phone. Those are the only commands that work for me
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] musicman5844:
Remove passwords and use it works great without all that
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
how do I do that?

You mean remove PIN and fingerprint scanner ?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] twinnfamous:
Make sure your slot didn't change when you flashed installer. Maybe try to switch slots and see.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
Now the situation gets even more weird. I change the slot and when i reboot to system from that slot (in this case A), I get into a bootloop... Should i flash magisk to fix that slot? That's how I fixed slot B when I was having that issue
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] twinnfamous:
U can try but honestly I think there's more to your issues. Like magisk modules installed so when you lost root the module files are still in data/adb/ so the system panics and bootloops until you use magisk uninstaller to remove the files or factory reset.

This happens to me quit often when testing different things
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
Just tried that, still the same issue. Can I flash twrp from magisk again? The same twrp that I have currently installed? Will i lose data?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] twinnfamous:
Do you have stock boot.img. start by fastboot flashing it to a/b then install twrp again and magisk. Worth a shot.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
What if i try flashing one of the other TWRPs posted here? I am currently on TWRP 3.3.1-35 and thinking to flash one of the older versions, maybe 3.3.1-30 to see if I can fix my issue. You think that could work?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] twinnfamous:
Yes 3.3.1-30
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
Just did, still having the same issues. If I change to slot A and reboot to system I get into a bootloop.

And twrp gives me the same errors whenever i try to run a command from it
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] twinnfamous:
If u boot into system can you back up your data with oneplus switch
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
I'm thinking to wait. When OP releases the next OS update hopefully Twrp will work on that. If not, it's not a big deal. I am using adb sideloading to get the job done
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] twinnfamous:
USB stick is alot better when not next to PC. I keep one with me because sometimes flashing is a pain with the phone anytime something ain't right it bootloops till I format data or upgrade rom to newer security patch.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
Apparently this is the way to fix whatever issue I'm having because users are swearing it works but I just don't wanna deal with backup/restores lol, since I would need to wipe the data folder to get it fixed:

"While formatting device using TWRP re., device failed and showed me something like "unable to mount /data or system"

This happens because your recovery is unable to read internal storage. You need to do some small steps.

Steps

1) Reboot into TWRP recovery

2) go to " Wipe "

3) then " Advanced Wipe "

4) Choose " data " and tap on " Repair or Change File System "

5) Then tap " Change File System "

You will see text as ext4 infront of ' file system '

6) Change it to "EXT2" by tapping and swiping.

7) Once its done, change it to "EXT4" again.

(if some detail doesn't match after step 5, don't worry... Change file system path to something else then and to default again.)

DONE !"
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] twinnfamous:
I choose format data and type yes then after I flash magisk I reboot and all is good again. I've never did any of those steps. And I've screwed my phone over multiple times. The data must be formatted for metadata encryption to work again once it's broken. That is what causes the bootloops other then flashing the wrong boot.img.

Edit: also modifying the system without magisk modules. Like changing Lines in build prop or removing system apks by root explorer apps will result in bootloops as well
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
Man I might just be the biggest dumba*** on the face of the Earth. I read this guide and apparently I was entering a letter password that I had setup to encrypt my internal storage, or fastboot (don't remember very clearly). Twrp accepted that letter password but kept all the internal storage as read-only and wasn't decrypting, it wasn't telling me that the password was wrong or anything like that. So the guide says that you need to change the pin and then try to enter that pin when TWRP asks you for that. Well, I didn't even change the PIN, I'm like: let me reboot to recovery and try the screen lock PIN that I use all the time. Did that and got the message on TWRP that "data is successfully decrypted" and now I have a fully functional TWRP. ... I gotta lay off the drugs man :eek::eek::eek::p:p:p

How to Fix TWRP Unable to Mount Storage

The first thing to try is if somehow your internal storage became encrypted when using a legacy screen lock method.

Go to your Android device’s Settings > Security > Screen Lock, and change your screen lock method to either Pass or Pin. Create a new one.

Reboot into TWRP, and it should ask for a password – enter the pass or pin you just created.

TWRP will attempt to decrypt your device’s internal storage, and if it succeeds, you should not have further issues. However, if this does not solve your issue of “unable to mount data, internal storage 0mb”, continue with the rest of this guide.

Reboot your device into TWRP again.

Navigate to Wipe > Advance Wipe > Data, and choose Repair or Change File System.

Press Repair File System to see if this fixes the issue. If not, continue.

Press Change File System, choose Ext2, and swipe to confirm.

Now switch back to Ext4 and swipe to confirm.

Go back to TWRP main menu, then the Mount menu, and check if your partitions can be mounted now.

If you are still unable to mount your partitions, you need to repair Internal partition, which will most likely wipe your internal storage.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] starrynighthn:
Hi guys, do you have patched boot.img for 9.5.8 AA/BA that included Magisk 9.3 & latest TWRP? I have one for 9.5.7 that works great.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] musicman5844:
Twrp works fine here not one issue

---------- Post added at 04:49 AM ---------- Previous post was at 04:27 AM ----------

Yes
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
You can update to 9.5.8 by using local upgrade and without rebooting the device when the download finishes you can install magisk and stay rooted. Then you can flash twrp through magisk. Follow the steps below:

1. Downloaded the 9.5.8 update from Oxygen Updater (DONT REBOOT)

2. Went to Settings\System\System Update and click on the wheel on upper right corner.

3. Select Local Upgrade, then install the update (DONT REBOOT)

*DO NOT REBOOT after applying the update.

4. Launch Magisk, and click the first "install"

5. Choose the "Install to inactive slot (OTA)" option

6. Reboot once completed

7. Go into Magisk again and install TWRP zip that you downloaded and ***DO NOT REBOOT!!***

8 Install Magisk again. Click Install, then select "Direct Install" option.

9. Reboot
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] starrynighthn:
Thank you for replying. But that what I did before. I flashed some kernels that cause fastboot/recovery boot loop. Only way to fix is the file combined boot.img 9.5.7 posted here. I want to find the file for 9.5.8 for backup later.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] btvolta:
Does backups and restores work yet?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mac796:
Worked for me every time. Back up boot, data, system image, vendor image
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Krsmqn:
Question: Have you tried, or heard of restoring a nandroid backup from USB drive after a format? Just wondering if it's possible ( for the flashaholics ).

Thanks
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mac796:
.I think it will work as long as you don't reboot to recovery. If you reboot then try it after you wipe, I don't think it will be able to mount data.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Nekromantik:
i think compressed backups dont work

it fail backing up data
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
Depends of what you have in your data, if you have multipe users or double apps (or if you ever used them) the data backup will always fail
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Nekromantik:
i did try double apps but turned it off.

anyway to remove traces?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
The guide is already in the first post:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] armma:
This A/B layout is causing me a lot of headache. I managed to install TWRP and Magisk properly on 9.5.8 without any issue, but after flashing LineageOS 16.0 I'm completely lost. After flashing it, I lost root which was expected but I also lost TWRP. TWRP was replaced by the LineageOS recovery instead. When I try to use fastboot to boot into the TWRP image after this, all I get is "FAILED (remote: unknown command)" after it says "booting".

I tried to use fastboot to flash the image to recovery so I at least could boot into recovery again. From there, I flashed the TWRP installer which worked fine. Though once I flash the installer, I can no longer boot back into LineageOS. It throws me into the bootloader instead. Flashing LineageOS again makes it work without wiping any of my stuff, but it also replaces TWRP.

I'm not sure if I should be posting this here or in the LineageOS thread, but does anyone here know how to get around this? How do I flash LineageOS while also keeping TWRP?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
So, How did you update to 9.5.8? Seems you have the old bootloader...
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] santiagoruel13:
Good evening..

About the step number 5

Where can i find the magisk ???? Is it the magisk .zip?? Flash it via twrp?? Then after that?? It will just boot normally??

And what do you mean your phone will not boot again?? Will.it be stuck in a bootloop?? If thats the case.. will i still be able to.boot to twrp then flash magisk???

Im a bit.confused, sorry ..
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
You can find magisk in the related thread here on xda, yes you need to flash it in twrp, after that just boot the phone. If you flash the twrp installer you will eventually lose magisk, but if you flash magisk you will not lose the twrp, so you need to flash before the twrp installer and then magisk to keep them both.

If you are in bootloop or if the rom completely doesn't start, you should always be able to boot the twrp, if you are not able to that, there are the fastboot roms and the msmtool to restore your phone..
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] santiagoruel13:
So basically after i unlock bl..

Flash twrp.

Flash twrp installer

Flash magisk .zip..

Then boot the phone?? Is that it?? Thanks in advanced..

Im just a bit confused as this seemed to be more complicated than what ive done with my pocofone f1.. heheheh.. where in im just flashing force disable encryption.zip so as to root as well as to retain TWRP...
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] armma:
I used the OTA updater within OxygenOS to update before I flashed anything. Is there a way to check the version of my bootloader? The version shows as blank when I'm in the bootloader.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
Don't flash disable force encryption or you will lose the fingerprint scanner.

The guide is already in the first post:

Boot the twrp (NOT FLASH);

Flash the twrp installer;

Flash magisk;

Reboot.

I don't know if there is a a bootloader version on the OnePlus 7 pro bootloader. Just to be sure re-flash the same rom you already have using phone settings local update.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] santiagoruel13:
Got it.. thanks sir. I wonder why boot to twrp only. And not flash???
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] armma:
Via recovery? Or the updater found in settings? I can't flash an update from the one found in settings unless there's an update.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
Because there is not a recovery partition so you need to flash the twrp installer to keep the twrp.

Through local update in phone settings, just open the update settings, click on settings icon on the top right of the screen and the local update. Before do this you need to manually download the rom from oneplus site or xda related thread and put it in the internal storage.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] armma:
This is for OxygenOS, right? Because I can't find this in LineageOS. I'm looking in "Settings -> System -> Updater". It's the only place I can find in settings that has anything to do with updating.

Anyway, I've tried to re-flash LineageOS in TWRP a few times and every time it removes TWRP again. I don't know if maybe the ROM comes with an outdated bootloader that doesn't support fastboot boot.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
So wait, it's normal that flashing a new rom you will lose the twrp
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] armma:
Oh, right. This is my first A/B device haha.

The normal installation steps applies when re-flashing TWRP, right? Because that's where issues crop up with my device not booting up in LineageOS again after TWRP is re-flashed. It goes straight to the bootloader.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
Have you flashed the installer or the .img? If the installer you should try to install also magisk.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] nostradomis:
I understand why you don't like the complexity users trying to run internal storage decrypted and security trade-offs. Unlike the OnePlus 6t, the OnePlus 7 Pro will operate on unencrypted storage and allow security like fingerprint, face unlock, etc.

I disable Force encryption in fstab and fingerprint does work fine.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
My bad i thought it was like the oneplus 6t, so if there are not problems, do what you want.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] armma:
Since "fastboot boot" doesn't work, these are the steps I've taken:

"fastboot flash boot twrp.img" so I can boot into recovery

From TWRP, I flash the .zip TWRP installer

If I try to reboot at this point, it boots into the bootloader instead of LineageOS.

If I try to flash magisk before rebooting, it still throws me into the bootloader instead of LineageOS.

The only way to boot back into LineageOS at this point is to flash LineageOS again, which of course removes TWRP.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jdhedden:
Official v. Unofficial

The official TWRP site now has twrp-installer-3.3.1-4-guacamole.zip for OP7P as of 7/4. How does this compare to your 3.3.1-35? Should we now be going off the official site instead of this thread?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Nekromantik:
Anyone know where twrp logs are stored? Normally in tmp but this does not exist on here
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
Teorically in is stored in /tmp/recovery.log

They finally added the synthetic password v3 commit to decrypt data on devie with may+ security patch.

The unofficial is always the reccomended one (no twrp app, unified for all oneplus 7 devices)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Aphex13:
Anyone have a changelog for Official 3.3.1-4?

Thanks in advance.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
Have you saw the post before the your one?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Aphex13:
If I had, I wouldn't have asked.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] btvolta:
Quick question while I'm still in twrp. I followed the install instructions to flash Havoc and when I did the first twrp boot after flashing rom and twrp installer, I'm in slot B and none of my files are visible to continue installation. How do I get back to Slot A to finish?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] smk513:
I used op3 before

What is the role of the vendor partition and the partition that should not be wiped?

And I wonder why it does not wipe the vendor and system partitions when flashing custom ROMs
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Mr.Crucial:
In twrp select reboot and select slot A and reboot recovery
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] ryan8r:
Do we still need a patched boot image and Will the steps provided also root the phone (magisk)?

Ref: recommended guide
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RandomPooka:
You should be able to fastboot boot the twrp image, then use it to flash the twrp installer zip. No patched boot needed
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] suzook:
Getting my 7pro later. Wondering what partitions does this twrp backup?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] xhitm3n:
is decryption broken on latest version ? im using havoc ROM, get weird string on folders on Internal storage
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] insanebob:
Do we need to update twrp to 3.3.1.4 after update to 9.5.9 or we can still use the 3.3.1-35?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] mauronofrio:
You can still use the -35
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] insanebob:
Thanks a lot sir!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] wolfsister:
Can anyone help me?

I installed 9.5.9 from system updates. Then when phone was rebooting, I put my phone in fastboot and 'fastboot boot twrp.img" flashed twrp. Then when it booted into twrp, I installed the zip installer for twrp and flashed magisk. But now my Oneplus 7pro keeps booting into recovery instead of booting.

---------- Post added at 02:38 PM ---------- Previous post was at 01:43 PM ----------

Okay so I did the following steps but my Op7pro is stuck on recovery boot loop.

Fastboot boot twrp.img

>boots into twrp<

Input phone password to decrypt files

Flash Full 2gb OTA

Flash twrp.zip

Flash Magisk 19.3

Wipe Dalvik Cache

>system reboot<

And then the phone shows the unlocked bootloader screen twice and goes into TWRP recovery, this time without asking me to input a password. And because of this, I can't flash anything. So I have to boot into fastboot and fastboot boot twrp again. Rinse and repeat.

Please help!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] vibrantliker:
How would I update to your latest from 3.3.1-3-guacamole? Could I just flash the installer .zip in TWRP?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] reaper000:
You might want to try, in order of least severe to most intrusive:

- adding a reboot to TWRP after flashing twrp.zip before flashing magisk (if upon reboot you find twrp cannot decrypt, flash Magisk from external USB drive)

- clean flash (by twrp factory reset once you have gotten twrp up and running)

- formatting internal storage (i know it's a pain, but pretty much everything else has failed. You can hopefully access your phone's files for backup via computer upon fastboot twrp injection) and installing oos from USB drive

I'm afraid that you might have buggered encryption upon initial boot of the updated OS when you you interrupted that initial boot to put it into bootloader mode. In which case, only the last option would work.

Good luck!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] wolfsister:
First 2 methods didn't work. I wiped data, dalvik cache and reflashed 9.5.9 but same error.

Going for the third one now, can you tell me why formatting internal storage would make a difference?

Also, when I fastboot boot twrrp.img, I do get the encryption screen. When I put my password there I can install zips and images from TWRP. It's only after I install any zip that the phone boots into twrp without asking me for password.

I just want to confirm before factory resetting the phone.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] immppa:
So you did flash full ota, then flashed twrp, rebooted back to twrp and flashed magisk?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] wolfsister:
Yeah, but as reaper said, I think the booting into bootloader when the device was doing it's first boot after update ****ed things up. Currently I am in fastboot with no recovery and no OS. What should I do to get back to recovery? "Fastboot boot twrp.img" is giving me an error that says "FAILED (remote: Failed to load/authenticate boot image: Load Error)"
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] reaper000:
Hate to say it, but I think you need to use a fastboot rom to get your device booting, which will flash both slots and format internal storage.

https://xdaforums.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424#poststop

As I write this, only 9.5.8 is up, but I'm sure the dev will update soon.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] wolfsister:
My internal storage is already gone so at this point I'm fine with anything. I'll try following that thread and do as it says. What's a fastboot ROM?

Will I have to flash it, then boot into the os, enable usb debugging, boot into fastboot, and then flash twrp?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] reaper000:
A fastboot rom is one that flashes from bootloader mode.

Per that thread's instructions (I added a couple things for clarity) :

Download the zip;

Unpack the zip in a folder;

Reboot the OnePlus 7 Pro in fastboot mode (Power and volume + and volume-);

Connect the OnePlus 7 Pro to PC;

*Open a shell on your pc and verify it can see your device with "fastboot devices"

*Double click flash-all.bat

Wait until the process end

**There may be numerous warnings, even fails noted,and this takes like 10 minutes**

The phone will automatically reboot.

After you see the welcome setup screen, you can reboot to bootloader mode and setup twrp and root.

From now on, I'd recommend that you (and everyone else) manually flash all OOS updates in TWRP... But that's just me.

Good luck
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] GhostZini:
Hello, on a OnePlus 7 pro rooted running newest Twrp, Renovate rom on newest 9.5.9 firmware. I flashed everything but when I reboot into recovery it says unmounted when I try to wipe cache. What do I do.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rage302:
I had the same problem today while updating to 9.5.9.

Only flashing FastbootROM 9.5.8 via All-In-One Tool with erasing all Data/Storages helped me to get my device back to work.

Thank God... I thought my OP7 Pro was a expensive brick :angel:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Bradl79:
U can recover from about everything that you do, aside from hardware issues, so even if it did brick the worse that would happen is u lose all ur files on the internal storage, that is why u should regularly backup
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rage302:
That's true... Backup is important.

Lucky me, that i have a Titanium Backup synced with Google Drive.