yashsingh1/xdaforums huggingface dataset:
[OnePlus 9 Pro] reaper000:
While I have a tremendous amount of respect and appreciation for your knowledge and work over the years, I think that there might be a significant exception to your statement:

if the monthly security patch includes a different encryption scheme (which Google is known to do), then the ROM update will necessarily require a data partition format upon flashing to actually work...

Just a thought from my experiences with flashing a variety of ROMs on the OP6 through 7Pro and running decrypted.
[OnePlus 9 Pro] osm0sis:
IIRC the key gets updated in metadata and/or /data/uncrypted and /data doesn't have to technically be decrypted for either of those, just mounted (for the latter). But hey, decryption has never been my area, so 🤷‍♂️
[OnePlus 9 Pro] Warut sutthi:
I
[OnePlus 9 Pro] osm0sis:
Okay, so all that said (and now that I reread), decryption worked last time I tried. Did that change?
[OnePlus 9 Pro] reaper000:
For everyone's sake who's flashing this, I hope not! I personally haven't installed this TWRP yet on my mission-critical device because of the current inherent limitations (I don't always have a PC around).

I was just getting PTSD recollecting the difficulties updating Havoc ROM on the OP6T due to near-monthly encryption changes... I think I wiped and restored internal storage several times before giving up and flashing the disable dm-verity zip. That's an experience I'm not looking to replicate -- maybe things are quite different in updates since then.

Thanks for the discussion at least, it's good to have devs around.
[OnePlus 9 Pro] Alex1911:
Hello Guys !

Are Backups via TWRP still unrealiable ?

Workaround for MTP: ADB Push/Pull, seems to work in Recovery.

Best Regards

Alex1911
[OnePlus 9 Pro] Libra420T:
Adb push?

as in able to put zips/imgs on device, while twrp booted? 🤔
[OnePlus 9 Pro] Alex1911:
yes at the moment it's possible. Sure should be possible.
[OnePlus 9 Pro] brandon79:
So is this twrp after install does it stay installed after reboot or does it go back to stock recovery.
[OnePlus 9 Pro] ooemir:
Hi guys this working op9 global for oxygenos 12 (android 12)
[OnePlus 9 Pro] FizzyAps:
its made for 11
[OnePlus 9 Pro] jkt97401:
Does the backup/restore function work yet?? When TWRP first came to this phone I tried it out and it was buggy, how's the recovery now??
[OnePlus 9 Pro] Ionic_:
First of all, thank you very much.

Can you please update the image to include the CPU temperature fix? It's always showing 0 °C for me, which I believe has been fixed already.

Secondly, as far as I know, nandroid backup restoring on Android 11 will never fully work, since there is no way to access data in the keystore - which means that any data encrypted through that will be unreadable after a wipe. It's impossible to backup or restore this state, so we're all out of luck. That doesn't mean that nandroid backups are useless - unencrypted data can be backed up and restored just fine. What data is encrypted depends upon individual applications, though, so there is no way to exactly tell what will work and what won't after a backup/wipe/restore cycle. This has nothing to do with TWRP, or any recovery system, for that matter. It just can't work. Don't get your hopes up. I'll still use nandroid backups and live with the fact that some data will be garbage on wipes. Most of such data, though, can be exported in a non-encrypted or re-encrypted way with reproducible encryption material through the individual applications.
[OnePlus 9 Pro] instagater:
i have been away from hacking phones sense the galaxy s7. Now i have the op9 pro . I am pulling my hair out over this one. I usually learn what i need to by reading the forums and applying all the great knowledge that is here. I have tried every twrp on the internet. None works. I have tried downgrading my os without any luck. i updated to 11.2.99 LE15AA. I have the LE 2125 model. When i fastboot boot twrp.img it says okay and finished but sticks on the screen with the +1 fastboot mode. Guys i am about to take a hammer to it. Can anyone save my phone from the sledge hammer. I'm sure it is because i have updated the firmware. Any help would be greatly appreciated.
[OnePlus 9 Pro] sonic1675:
remove any lockscreen security you have

"fastboot boot" to TWRP *DONT "FLASH BOOT"* (TWRP should be made by Nebrassy i think found here https://androidfilehost.com/?fid=14943124697586353293)

flash magisk v.22 zip from TWRP instead of through fastboot, then restart, direct install through the app
[OnePlus 9 Pro] Samuel Holland:
Let it sit on that screen for a few minutes, it will eventually boot TWRP & should be okay. If not and nothing else,Maybe try going into recovery and wipe everything. That will usually get the device to boot if everything is okay. Just a guess, and I know a couple times have worked for me.
[OnePlus 9 Pro] IamTheBRAVE:
After flashing twrp or a rom, if it says okay but does not boot to it use this:

https://xdaforums.com/t/op9p-stuck-in-fastboot-mode-no-os-or-recovery-help.4319821/post-85488055

It's an A/B and fastboot does not always switch slot automatically.
[OnePlus 9 Pro] instagater:
Thank you for the fast replies. I have tried with pin and with no lock screen security. No dice. I left it on the fastboot screen for 2 hours. No dice. It will not install twrp or ramdisk. I have the data mount problem. To get the data to mount i have to switch to another ext and back to ext 4 plus resize. Then the data mounts but does not show anything in storage that i had transfered. ADB sideload doesn't work either. When i wipe data it will boot into system but without any changes. I have tried every recovery that i could find. I was hoping that this version would work. At least i have root. I am running magisk v. 23. When i install v.22 it will not work until i update to v.23. Most modules do seem to work. Anyway thanks again for the help. I will wait and see what the future holds for this device.
[OnePlus 9 Pro] IamTheBRAVE:
It could be a module you have installed. If i remember well, ExtSDenabler used to create a data mount problem...
[OnePlus 9 Pro] Redn2000:
Has anyone tested this with OxygenUpdater?
[OnePlus 9 Pro] Redn2000:
I apparently am somehow stuck in a TWRP variant of FastBoot mode after typing adb reboot fastboot. I can't interact with touch, the power button doesn't work, and oddly the only thing it allowed me to do was take screenshots with the power button and the Up or Down volume buttons or turn the screen on and off, but no forced reboot. Any advice?
[OnePlus 9 Pro] Samuel Holland:
Usually holding power and volume up will force it to reboot after a little while holding it down?
[OnePlus 9 Pro] Redn2000:
Believe me, I've been trying, though it couldn't hurt to keep holding it I guess. I'm either going to have to wait it out for the battery to deplete or find another solution. And unfortunately, no fastboot or adb device detection here. Though ironically there's a button to turn on adb.

I've never seen this before from TWRP, but I guess this is at least a warning to those that use the adb commands, don't do reboot fastboot from this current version.
[OnePlus 9 Pro] Samuel Holland:
Sorry to hear, well I know before for me computer didn't see device via adb but after adb sideload and backing out the computer then could see adb(my device) and maybe could issue adb reboot command.
[OnePlus 9 Pro] Samuel Holland:
fastboot reboot or fastboot reboot bootloader maybe?
[OnePlus 9 Pro] Redn2000:
In this situation, I sadly didn't even have that option. But I just solved it by holding both volume buttons and the power button to finally get out of the stuck screen. I doubt anyone else will run into this, but I'm glad I found a way out of it.
[OnePlus 9 Pro] Redn2000:
Apologies for adding so many messages to the thread, but I'm still a little confused on the full process. Is it doing this?:

fastboot boot twrp slot a

install

flash magisk

reboot to bootloader & set slot b active

fastboot boot twrp again into slot b

install

flash magisk again

boot to system?

When I tried booting to slot b first, I get errors that twrp can't mount system or system_root so the install fails. Not sure if I'm missing something here.
[OnePlus 9 Pro] Samuel Holland:
Installation:

1. fastboot boot twrp.img

2. go to Advanced > Flash Current TWRP

3. after that is done, if you were using a custom kernel, reflash it now

4. if you were using magisk, reflash it now

Updating to a newer build:

1. download new build to internal storage

2. go to Advanced > Install Recovery Ramdisk

4. select the new image

5. after that is done, if you were using a custom kernel, reflash it now

6. if you were using magisk, reflash it now
[OnePlus 9 Pro] Redn2000:
I saw the first page, but some talk in the thread of the other slot if using Magisk. So does this mean I'm avoiding slot b entirely?
[OnePlus 9 Pro] Samuel Holland:
The only time I usually flash the other slot is when I update the build(OTA) then in the magisk app before rebooting (flash other slot). I know there is a "copy partitions" zip that can copy "A" to "B" and can be found in the lineage instructions for our device. Other then that I'm not sure to be honest if something else has changed with the Android 12 and new magisk builds.
[OnePlus 9 Pro] Redn2000:
That might actually be it. And I tested with Oxygen Updater, which doesn't seem to do its job of retaining root or even working well with the A/B slots at the moment.
[OnePlus 9 Pro] Samuel Holland:
I usually use oxygen updater to download the update, and then do everything manually. I go in magisk and uncheck root access for oxygen updater, that way I can do everything manually. 👍
[OnePlus 9 Pro] Redn2000:
Great to know! For your process, I assume you boot to active slot twrp, install the update, install A/B retention, then lastly magisk?
[OnePlus 9 Pro] Samuel Holland:
I usually do it from system if possible. How I've been doing is go to magisk, select uninstall, then update and then go back to magisk and install to inactive slot. You retain TWRP and magisk. You just have to make sure to have the stock boot, so if using a custom kernel, then have a backup of boot.
[OnePlus 9 Pro] Redn2000:
Ah, that's an issue for me. I tried the uninstall method, but I didn't have a stock image backed up. I think because I installed magisk from twrp after getting twrp setup it didn't backup the image. I'll have to test in system with doing the oxygen updater download and hope that manual method works with this recovery.
[OnePlus 9 Pro] Geoz:
I was stuck there and figured out that it's driver issue. (Entered fastboot mode)

Search the forum for fasboot driver and on @snoop5 thread download v1.43. Extract and run as administrator, plugin device USB to computer anytime you want to enter fastboot mode from twrp/bootloader.
[OnePlus 9 Pro] CZ Eddie:
Think I flashed the wrong boot.img. So, I'm trying to get into bootloader to flash a different boot.img because I can't boot to the OS.

But, TWRP keeps coming up and the touchscreen is frozen. Nothing happens when I press any buttons on the screen. Even the unlock slider is non-responsive.

Not sure how to get into bootloader now. Any suggestions?

EDIT:

Turns out that I could access ADB while the phone was stuck in bootloop.

This showed up in Windows Device Manager while the T-Mobile pink boot animation was stuck.

I was then able to "adb reboot bootloader" it.

View attachment 5467851
[OnePlus 9 Pro] Samuel Holland:
You can hold volume up and power button for a minute or so until device reboots then try volume down or possibly volume up. The problem is that if device keeps going to recovery and not bootloader then you might need mdm tool. You can check if you have adb/fastboot Access in TWRP for adb reboot bootloader.
[OnePlus 9 Pro] CZ Eddie:
Thanks, those didn't work but I posted the fix above in my original post.
[OnePlus 9 Pro] tancam:
When you say flash magisk again is that from a zip in recovery or just open app and install again ? I never had a zip for magisk to flash
[OnePlus 9 Pro] Samuel Holland:
You can flash the apk since it is one of the exceptions that doubles as a apk and zip.
[OnePlus 9 Pro] tancam:
Thank you, been years since I've been in the scene here finally got my bootloader unlocked on a device
[OnePlus 9 Pro] Fishawy:
It's been years since I used TWRP. Does this flash it permanently and without losing any data?
[OnePlus 9 Pro] Redn2000:
I finally got the process down for setup and OTA. Really makes me miss non A/B setups.

If magisk doesn't create the backup when flashed from recovery, I've found the easiest method is leaving a vanilla boot.img in /sdcard/ that's been extracted from the full update files. Payload extractor was very helpful with this. And the retention script by osm0sis works great to keep twrp between updates.
[OnePlus 9 Pro] Nebrassy:
Official builds have started

OnePlus 9 Pro (lemonadep)

Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...

twrp.me
[OnePlus 9 Pro] filjusz:
Thank You for your amazing efforts! Wonderful job. Have a nice day
[OnePlus 9 Pro] toolhas4degrees:
@Nebrassy thanks for all the work you have done. But my question is how can this be considered official when more than half or twrp doesn't work?
[OnePlus 9 Pro] Nebrassy:
Define half
[OnePlus 9 Pro] toolhas4degrees:
Does everything function? No

Wasn't meant as an insult just wondering what qualifies official?
[OnePlus 9 Pro] acloh0411:
Is it work for OOS12 beta 2 or stable (coming)?
[OnePlus 9 Pro] Abhinav2005:
Indian version?
[OnePlus 9 Pro] isoladisegnata:
Work A12 beta?
[OnePlus 9 Pro] giuseppe18:
what advantage do I have in having the TWRP compared to the stock?
[OnePlus 9 Pro] Dashwood Foxe:
The ability to recover from a bad magisk module flash that results in bootloops. Using TWRP's file manager allows you to remove the offending module or a bad module config without having to run the nuke all module command line from adb at the bare minimum. Or restore boot images from a bad kernel flash.

Rooting has its flaws and can result in nasty and sometimes irrecoverable hiccups that you wish you had TWRP to correct instead of full out wipe with msmtool just because you added an extra zero or something in a magisk module's config. :D
[OnePlus 9 Pro] giuseppe18:
quale vantaggio ho ad avere la TWRP rispetto alla stock?

If I don't create modules or custom kernels, don't I need them?
[OnePlus 9 Pro] lendawg:
Can we flash the new twrp zip using the old twrp recovery?
[OnePlus 9 Pro] l_mike:
Worked for me.
[OnePlus 9 Pro] Trexont:
One of the best software solutions I use for backups. Before that, I had problems with my smartphone and SD card a couple of times. Then I used special software to recover the data. Now I prefer to play it safe.
[OnePlus 9 Pro] the bolt of thunder:
Is TWRP fully working?
[OnePlus 9 Pro] ffejy462:
If we're currently rooted, can we flash twrp installer in magisk?
[OnePlus 9 Pro] Icculus760:
I'm also wondering if TWRP 3.6.x now has working backups/restores for the 9 Pro.
[OnePlus 9 Pro] CZ Eddie:
Hmm, the install didn't work for me.

fastboot boot TWRP-3.5.1-lemonadep-Nebrassy-2.img

When I booted to the temporary img above and then did the "Advanced > Flash Current TWRP" it said "error opening file".

Then, I tried the "Advanced > Install Recovery Ramdisk" but it doesn't see any files.

Then, I noticed TWRP doesn't see any files anywhere in my filesystem, of any type.

What am I doing wrong?
[OnePlus 9 Pro] filjusz:
Yes
[OnePlus 9 Pro] giuseppe18:
how can i go back to stock recovery that i have to send the phone for assistance?
[OnePlus 9 Pro] Nebrassy:
Use the latest one
[OnePlus 9 Pro] Nebrassy:
Flash stock
[OnePlus 9 Pro] giuseppe18:
where do I find a stock recovery? In partition a? And how flash it?
[OnePlus 9 Pro] Moe2003:
You also support the 9 non pro right? I was wondering since there is no thread fo it in the 9 forums
[OnePlus 9 Pro] philidor:
Will flashing from magisk TWRP installer remove root?
[OnePlus 9 Pro] filjusz:
Not on current boot. Maybe after next. After flashing TWRP in magisk app simply reboot to recovery and reflash magisk. Just in case
[OnePlus 9 Pro] acloh0411:
do i need to root before i can flash this twrp?
[OnePlus 9 Pro] Redn2000:
No, but you will need to have your phone's bootloader oem unlocked. And if you want to keep twrp, you'll need magisk installed.
[OnePlus 9 Pro] acloh0411:
Is this TWRP working with OOS12 beta 2?
[OnePlus 9 Pro] more_than_hater:
i'd say you can try to boot, at least
[OnePlus 9 Pro] acloh0411:
for me, it can not boot, qualcomm dump crash error.
[OnePlus 9 Pro] Superguy:
Does fastboot get weird for anyone with TWRP installed? Instead of the normal fastboot, I get one that kinda looks like TWRP and then won't run any boot images pushed to it.
[OnePlus 9 Pro] more_than_hater:
then, it won't work even if you flash it

anotherwords, a12 isn't supported yet
[OnePlus 9 Pro] Redn2000:
I had a similar issue before, but with no touch. You can't enter any "fastboot boot" or "reboot fastboot" commands from twrp or it'll load that weird environment. You have to either enter the bootloader from power off with the hardware keys, or run "reboot bootloader" from system.
[OnePlus 9 Pro] Nebrassy:
What do you mean?

No, only flash twrp by fastboot booting twrp then advanced > Flash current twrp or install recovery ramdisk

Or same procedure if twrp is already flashed
[OnePlus 9 Pro] Nebrassy:
TWRP backups are unreliable currently, do not rely on them as your only backup
[OnePlus 9 Pro] neobuddy89:
See attached pic. On flashing this recovery I get white noise like this.

However, this noise was not present on test build earlier. Test build still doesn't give this kind of noise.
[OnePlus 9 Pro] Smedslund:
After seeing that screen, I will wait a few days before flashing and see if more have the same issue
[OnePlus 9 Pro] Nebrassy:
Hm, pm me on tg I'll send a test build later

This might be due to the kernel I'm using, has anyone tested this build on a custom rom and it worked?, please let me know if it worked for you
[OnePlus 9 Pro] djsubterrain:
Same as I'm getting.

Can you confirm more info :

Current rom :

Last flashed OOS version :

Current recovery :

Phone version with memory/storage :

Mine :

Current rom : crDroid 15th June Build

Last flashed OOS version : 11.2.6.6 (No 11.2.7.7 available for EU yet)

Current recovery : LOS 15th June Build

Phone version with memory/storage : LE2123 8/128GB
[OnePlus 9 Pro] djsubterrain:
I, also, was not getting that on the earlier test builds but couldn't apply TWRP from the "Flash current version" option which I think you suspected was due to crDroid.

Are you using blu_spark then? (Not sure I can use it with crDroid as the kernel is meant to be used with OOS)
[OnePlus 9 Pro] Nebrassy:
Yes I'm using blu_spark in hopes of eliminating the need for kernel module hacks, I'll send you a build in a bit
[OnePlus 9 Pro] Jhoopes517:
Also getting the white noise screen.

TMO OP9P, I have latest lineage installed with the 0608 recovery installed since 0615 recovery won't boot for me.

Firmware is only up to 11.2.6.6 due to EU not hitting .7.7 yet
[OnePlus 9 Pro] Shooter7889:
Yes I just tried booting twrp so I cld direct install from it... I am getting the same white noise screen.. On crdoid as well..
[OnePlus 9 Pro] Samuel Holland:
Absolutely incredible! Thank y'all so much!!
[OnePlus 9 Pro] Alton (Halo 2):
So if I flash a ROM and want to go back to OOS does the zip file you download through OTA updater work as a flash able zip to return to stock?
[OnePlus 9 Pro] djsubterrain:
Not unless it's the full zip. There's a pinned collection of full zips here anyway
[OnePlus 9 Pro] Alton (Halo 2):
Yessir I always download the full zip. 3.0+GB in size. Thank you
[OnePlus 9 Pro] djsubterrain:
Just tested on new version of crDroid released today, same multi-coloured snow shown on booting via fastboot.

Their update post stated the kernel is new and built on LOS so I'm guessing we'd see similar behaviour on LineageOS
[OnePlus 9 Pro] Nebrassy:
released new build which solves the display issue on custom roms
[OnePlus 9 Pro] djsubterrain:
Boots correctly now without the snow image but still unable to apply using advanced>Flash Current TWRP

Attached logs
[OnePlus 9 Pro] reffu:
Just installed on my OnePlus 9 (non-pro). Everything worked as it should and I was able to re-install the kernel and Magisk without issue. The only minor thing I noticed is that it sits on the TeamWin Recovery loading/splash screen for a long time (probably a similar amount of time to how long a normal boot takes).
[OnePlus 9 Pro] Alton (Halo 2):
I'm using the pro and it shows the teamwin screen for like 3 seconds then asks for a pass here
[OnePlus 9 Pro] Rootk1t:
Can you share information why TWRP backups are not reliable?
[OnePlus 9 Pro] giuseppe18:
qualcuno sa come tornare al recupero stock?
[OnePlus 9 Pro] giuseppe18:
how do i get back to stock recovery
[OnePlus 9 Pro] Nussi29:
For me to
[OnePlus 9 Pro] HessNL:
First time that i flashed with TWRP installer in magisk and everything seems to work everything is mounting i could fill in my pin code and that seemed to be working as well thanks for this 👍
[OnePlus 9 Pro] tazoman:
Does this work with OOS 12 (Android 12) ?
[OnePlus 9 Pro] filjusz:
Consider reading previous page
[OnePlus 9 Pro] tazoman:
did it work for you? gimme an update
[OnePlus 9 Pro] tazoman:
GG... guess gotta wait then.
[OnePlus 9 Pro] AboAnas25:
Please, Can anyone upload stock recovery for android 12 Oneplus 9?
[OnePlus 9 Pro] jimbo77:
Bro just flash stock boot image via fastboot, that should get rid of twrp
[OnePlus 9 Pro] tathagatab:
Twice. That takes care of both slots.
[OnePlus 9 Pro] Bright.Light:
Sorry if the question was already answered, tried the search but got on all sorts of threads nothing to do with twrp.

My OnePlus9Pro doesn't have SD but it does have a USB. So I tried to use USB storage for backup, but it's impossible in TWRP to mount USB. It's always 0Mb and cannot be used for anything.

Backup to internal storage looks like a bad move; how to restore any partitions when the file isn't on the internal storage anymore? (Yes, I know I can copy it to PC and later maybe copy back to internal) but it's also a problem that storage isn't backupped (maybe because storage is the destination?)

So the question: How can I mount USB OTG devices in TWRP when the normal mounting doesn't work?
[OnePlus 9 Pro] jimbo77:
As of today that's is not possible. Current GKI devices (like the OP9Pro) don't have working USB OTG in twrp. You won't be able to use OTG until the devs figure a way to make it usable
[OnePlus 9 Pro] Ethanadams642:
I am currently using root on my custom rom, should I install with the provided instructions (recommended way) or use the twrp app?

Edit: booted the img and permanently installed, them flashed magisk, works perfectly.
[OnePlus 9 Pro] Murd0c:
Just chiming in for anyone looking for info on A12 compatibility: It doesn't work, don't attempt to install it. This one will boot, however does not work when attempting to decrypt data and trying to "Install Current TWRP" causes the system to soft lock in EDL mode.. Fortunately I had the stock boot.img to restore to.
[OnePlus 9 Pro] suku01:
Can you share the stock boot.img if it's for OP9 please? My phone is on the latest A12 OTA, and I tried getting root access but now my boot always opens fastboot. I'm trying to return to stock boot, but OP has A11 manual download only.
[OnePlus 9 Pro] mattie_49:
boot.img

drive.google.com
[OnePlus 9 Pro] Flecto:
I had the same issue. I ended up downloading A11 and using this guide to manually flash all the partitions: https://www.droidwin.com/unbrick-oneplus-9-pro-fastboot-commands/ This unbricked my phone. And I'm now staying at A11 until TWRP supports A12.
[OnePlus 9 Pro] suku01:
Thanks, will give this a shot!
[OnePlus 9 Pro] NoSauce:
[EDIT] WRONG thread. Will post in proper forum
[OnePlus 9 Pro] suku01:
Hey, thanks for this. But for some reason, I'm getting an error when trying `fastboot reboot fastboot` -- `fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.` Not sure if this is an issue with my FastbootD. I tried the MSM recovery tool as well, but that get's stuck at waiting for device.