yashsingh1/xdaforums huggingface dataset:
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
An OOS OTA incremental update checks for the presence of stock versions of both boot and recovery before it runs.

This means that if you're using Magisk you have to restore the stock boot image before starting the update. And if you're using TWRP you have to restore the stock recovery image before starting the update.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
I think this is only true if you run the global version (and possible the T-Mobile version) where they only provide incremental zips over OTA. It has been a while since I used the stock system update (mostly use oxygen updater to download my OTA). At least for my phone running EU rom the system update will show a prompt like "root detected download full OTA zip" and then it will update normally.

After install before reboot , I just flash the TWRP retention module in magisk manager and then onstall magisk to inactive slot from magisk manager. No need go restore any stock boot or recovery.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] haitower:
Thanks @BillGoss and @Qnorsten

I have the EU version. So if the updater offers the full OTA, I will just do what Qnorsten said and not flash the original boot/recovery beforehand.

However, just to be sure I would like to backup my original boot and recovery. How do I do that?

Edit: I think I found how to backup boot.img:

fastboot getvar all

fastboot boot recovery.img
adb shell
dd if=/dev/block/by-name/boot_a of=/sdcard/boot_a.img
exit
adb pull /sdcard/boot_a.img boot_a.img
adb reboot

The first command is to identify the active slot (either a or b). The code above is for slot a. If it is b, adapt the commands from a to b.

Anyone knows how to backup the OOS recovery?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Replace "boot" with "recovery".

And this is now well off-topic for TWRP so, if you need more help, ask in the Q&A forum.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] haitower:
Thanks, and yes, probably. But I think it maybe would be a good idea to include that in the OP. So that people have a backup of their original recovery before modifying it.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] haitower:
Is this TWRP alpha version already able to backup & restore other partitions (system/boot/recovery) or only the data partition?

I just wonder because in the OP's third post it says:

Background: I want to try out LineageOS and I want to backup my OOS system before.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Fif_:
You can go back to OOS with fastboot and a copy of the OOS zip file:

https://xdaforums.com/t/oneplus-8t-rom-ota-oxygen-os-repo-of-oxygen-os-builds.4193183/post-85466569

https://xdaforums.com/t/oneplus-8t-rom-ota-oxygen-os-repo-of-oxygen-os-builds.4193183/post-85543497
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] haitower:
Thanks a lot! That is a nice to have option. However, if possible, I'd prefer TWRP backup since it also restores my settings and apps ;)
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
There are posts earlier in the thread describing how to backup and restore other partitions.

If I recall correctly.

To restore not only data you need to backup and restore

Super

Boot

DBTO

And you need to make sure you restore it to the same slot (a or b) that it was backuped from, as some super part of the super partition is slot specific.

That will restore most but not all of your settings.

Read further back in the thread and someone have detailed everything.

I have yet to try a restore myself.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] haitower:
Uhh, that sounds nasty.. Things were so much easier with the Nexus 5 and the OP5T..

For a novice it is such a big effort nowadays to backup and try out new ROMs.

I think I'll just stay with OOS then. However: thanks for your explanation!
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Blame Google for their virtual A/B partition system :D
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tom65824:
short question...

when i install a new version of lineage via updater it overwrites the TWRP and reinstalls the ONEPLUS recovery.

can i prevent this ?

thanks
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Fif_:
Settings > System > Advanced > Updater > Preferences > Update recovery.

Make sure that's unchecked.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tom65824:
hi FiF_ Thanks... i´ve found it !!

...BUT... if i want to disable the switch for "update recovery: ---> It pops up: "It is not possible to disable the updates from Lineage -Recovery on this device !"
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
I think Lineage disabled changing that toggle on all A/B devices, but really they should have only done it on boot-as-recovery devices, since recovery is in the boot image so can't be excluded there... But definitely should be able to change it on recovery_a/_b like we have; go mention it to your Lineage maintainer. (y)
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] azoller1:
I am assuming this is done somewhere in the device tree? How would one go about this? Sorry, this may be a little off-topic.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
I think it's better if you move this discussion to the lineage ROM thread as it has nothing to do with twrp
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] gossf:
Question about restoring TWRP backups: Given that you have to remove your lock code before restoring, what are your options if you're stuck in a bootloop (and hence unable to get into the OS to remove your lock) and trying to restore a backup to fix it? Do you just have to MSM or fastboot a bootable OS back on before restoring?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ha1vorsen:
-snip-

Replied to wrong post
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
You can format the data partition, which will remove encryption, then reboot the phone, which will recreate the data partition properly, then restore your backup.

I'm assuming you have your backups backed up to your PC because the format will wipe all data from the phone.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] gossf:
Thank you! Very useful information as rolling back my system after some sort of botched mod resulting in an unbootable system is my primary application for nandroids.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Heldwin:
How I can update with last official firmware with recovery?

I have error for wrong partition to update
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Fif_:
Can't use recovery for that, but it's doable through fastboot.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Heldwin:
Ah okay thanks I try it
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] eddro22:
Has anyone tried to make orangefox recovery for the OnePlus 8t.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
I am on it and trying to build it for the Oneplus 8t.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] eddro22:
Nice I'm new to this device I moved from Redmi note 9 pro to the 8t and really like the device but flashing anything is a pain on it lol from what I see it's like my essential phone (r.i.p) so i have not unlocked my bootloader yet the thing is the info for this device is all over the place one saying it's a/b partition and others saying it's dynamic partition and then saying it has its own recovery partition but always have to flash twrp installer zip which doesn't make sense if it has its own recovery partition but either way orangefox will make it easier for sure wish the best for this.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Yes the Oneplus 8t has dynamic partitions and is using virtual a/b partition as far as I understood that and it has an own recovery partition so TWRP/recovery will have to be flashed to the recovery partition.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] eddro22:
Ok so it's the same as the Redmi note 9 pro thanks for the info on that.and you probably already know but telegram has orangefox building group that can help with building.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] alp47470:
Sir, got any TG group ? Willing to help and support in testing n stuff. Already using your twrp for 6T.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
If you're going to start building and testing Orange Fox then I strongly recommend you start a new thread. This thread is specifically for TWRP.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Frustrated_AF:
I have this ominous feeling I shouldn't even ask this very noob question here but I don't believe i can compile this.

From: https://xdaforums.com/t/dev-how-to-compile-twrp-touch-recovery.1943625/

Dees_Troy says very clearly that this is beyond me.

I am using havoc os I seriously prefer TWRP which I have been using for a few years now. I have the Oneplus 8t kb2003, it used to be the tmo version but I changed it through some stuff I found here at XDA.

Can I ask please is there anyone with kb2003 that would care to share theie compiled twrp with me or maybe compile it for me? I will buy you a beer if so, even a 6 pack.

Thank you.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
Just use the img file from the start of this thread.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] greeneyez15o:
Awesome it worked on latest update 👍👍👍

Woooot woooot
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] sembraottobre:
it's goof to flash bliss rom?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Is Bliss ROM still existing for the 8t? I thought I saw some old thread for it where it was removed/discontinued but if you have and want to try it you can just give it a try and flash it in TWRP to see if it works.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] sembraottobre:
Yes it still exists, there is the site dedicated to the bliss rom
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] KUPOinyourWINDOW:
Thanks for your work!

I got this running, flashed to both recovery slots and working rom flashed. I did format Data through twrp but no matter what I seem to do (even with no lockscreen) twrp won't read data, so I can't flash any files from within it without sideloading them. What am I missing?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Do you get any error Message in TWRP or is it just not showing any files? Even after booting to a ROM and reboot to TWRP from there?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] KUPOinyourWINDOW:
The latter, not showing any files and when I click change storage (can't remember what the exact wording is) it lists them all as 0kb. Within the rom I can access my files as normal, and I can copy them to and from a computer as well, it's just within TWRP
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Hmm ok. Strange. I have no issue with the files in TWRP.

Not sure if this info from the OP will help you perhaps?

PS2: If, for some reason, you cannot send files to phone after formatting /data and rebooting to TWRP, press vol +, vol - and power button simultaneously.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] KUPOinyourWINDOW:
that makes my screen flash white and then it's the same :( thanks for the help btw, I can live without for now because I'm familiar with sideloading but it's a bit annoying
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
I've found that after a data format the data partition isn't set up correctly and you have to reboot to system to get it properly set up.

That's why the restore process in the OP (post #3) says to do this.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] KUPOinyourWINDOW:
I've booted system, got into the rom, gone back into TWRP and it still won't read any files
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Which ROM are you using?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] KUPOinyourWINDOW:
pixel extended android 12
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
OK. I have not test Pixel Extended A12 yet. Not sure if that is perhaps causing the issue that something reg. data is handled in another with when using Android 12.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
I have a vague recollection that the A12 encryption is different. That might explain the problem.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] KUPOinyourWINDOW:
Yeah it's a safe guess, I feel dumb for not even considering it ahaha,

can confirm at least sideloading works with A12!
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Mr0nLine:
After installing TWRP on stock OS (11.0.11.11.KB05AA), tried flashing Magisk zip. Everything is okay on TWRP, but the app was not installed on the system. Any ideas why that is?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
I am running Stock OOS 11.0.11.11 on KB05BA and have no issues with TWRP and Magisk.

I just flashed Magisk 23.0 from TWRP and have the app installed.

But I guess you can just try to install the Magisk-v23.0.apk and that will install the app for you.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Mr0nLine:
I've tried that too but when I hit install I only get the patching image option
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
If you try to install the APK from within the ROM and then install the Magisk.zip from TWRP, will that work?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Mr0nLine:
Tried just now still the same. It's like TWRP is flashing nothing. Tried flashing the TWRP app from recovery, also didn't show up
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Strange. What if you reflash TWRP once again and then try again to flash Magisk?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
The app stub may not always install, or may not show up for a reboot or so. It's a Magisk problem, not a twrp problem. You are rooted after flashing the apk (which is a flashable zip), and that's the main thing.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Vitopp:
Hi there !

Is there any easy way to restore the stock recovery? Im afraid to brick the phone.

Thanks for your help
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
A12 decryption may yet come: https://gerrit.twrp.me/c/android_bootable_recovery/+/4621
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Frustrated_AF:
Oh, it's that simple? Thank you very much.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
If you have a copy of the stock recovery image you can:

- install it using TWRP

- fastboot flash it

- restore it using dd if you're rooted
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] enragedpaza:
i am having so many different issues with flashing twrp then roms. After reading, i understand that "Failed to mount " errors are normal but after finishing the flashing process I am stuck on boot. One time it got past it and was able to boot, but then gapps would not flash nor magisk and it still said unable to mount storage.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Vitopp:
Doh, unfortunately I dont. Where can I get it?

Thanks for your quick reply
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
- Payload dumper of the latest update.

- use dd to take a copy if you're rooted.

- fastboot boot TWRP and backup recovery.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Vitopp:
Will try that mate! Thanks a bunch
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Note that I updated my post with a 3rd option
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Vitopp:
Everything like expected !! you saved me ! Thanks so much
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Have a look at the rather lengthy conversation I had with @iooxda starting https://xdaforums.com/t/recovery-11...ect-8t-kebab-2021-09-04.4302449/post-85376567

It may help you understand what's going on.

I've found that I could successfully flash Los with Gapps pico (so you don't run into "insufficient space" problems) and Magisk.

If you're starting from a working OOS install, then I strongly suggest you flash the copy-partition.zip mentioned in the conversation as this avoids issues when switching slots.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Hello!

I am just trying to undersand at which step of the flashing instructions the "copy-partitions.zip" should be flashed.

Is it the first step you do to flash the copy-partitions before switching slot and reboot to TWRP (so I guess those steps can be skipped when havening flashed the copy-partitons or?)

Also regarding the "format data" it seems there are different informations on when that should be done.

In the OP it is the first step when coming from OOS to custom ROM but in the post you posted here it is mentioned like "do the format after flashing and rebooting to TWRP" .

So I wonder which step is the correct one to do the format data and flash the copy-partitons from flashing from OOS to custom ROM.

I thought like this perhaps?

But I guess the format data should be after point 6. or, and is it so that 3. and 4. can be skipped when flashing the copy-partitons ?

1. Format data

2. Flash copy_partitions.zip

3. switch slot

4. reboot to TWRP

5. sideload/flash ROM and TWRP Installer zip

6. reboot to TWRP

7. Flash Magisk

8. Flash Gapps

9. Reboot to System

Thanks a lot.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] enragedpaza:
thank you for sharing this. I got it to work but this is by far the oddest experience i have had rooting/flashing a phone. I want to install nethunter now but I am worried how that will go lol.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Mr0nLine:
Just tried that. Flashed TWRP again from my MacBook this time. Still same result and nothing is happening.

I even tried removing my screen lock but that didn't make a difference

I've attached screen shots from TWRP during the installation. No errors
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Things to know about A/B devices:

1. The slots have different versions of firmware/software because an update only updates one of the slots. This means that it's very likely that your system won't boot if you just change slots.

2. When you install an update or a new rom, the changes are always made to the inactive slot.

So, if you're currently on OOS and install a custom rom, then it gets installed to the inactive slot which has firmware/software belonging to the previous version of OOS, which is not what you want.

There are two ways to avoid this problem of installing the new rom on outdated firmware/software:

1. Sync the inactive slot to be identical to the current working slot before starting the installation. Copy-partitions.zip does this.

2. Boot to the inactive slot and then install new new rom. This way the rom gets installed on the slot that has the latest version of the firmware/software.

The OP uses the 2nd method, but I prefer the first. In fact, I sync my active slot to the inactive one after every OOS update once I know all is good and I'm not going to revert to the previous version.

Side note: if you've synced the slots then your system will successfully boot on either slot!

As to the order of "format then flash" or "flash then format", both achieve the same result. But I prefer to do everything on my phone without using a PC (where possible) or OTG. Since all the installation files on the phone will be gone after a format, I prefer to do the installs first and then do the format.

The fact that currently (version 210904 of TWRP) the data partition isn't set up properly after a format until after the system is rebooted, also means you can't push files to the phone before the system reboot and must use sideloading if installing stuff. Hence my strong preference for "flash then format" at this point.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Great. That explained everything I wanted to know about this to me now. Thanks a lot. :cowboy:
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] milan*SK:
Hi, just to clarify. I'm on stock OOS with Magisk (stock recovery) and just got the notification about the new update. Does this mean, that if I flash this recovery I still would not be able to update the system with OxygenUpdater?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
You can't flash OOS in TWRP.

If you're update is a full rom (~2+ GB) then you can install it through system update even if you're rooted and/or have TWRP installed.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] eddro22:
So is twrp going to get a update.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] eddro22:
Have say with progress of a12 roms we need a update to twrp or a recovery that can handle the new encryption anybody know of any.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Hello. I guess that is already being worked for TWRP but I dont think it is ready yet so as far as I know there is no recovery yet which can decrypt Data on Android 12 but that will surly come in the not so far away future. Lets see.

Also I read that when you want to flash a Android 12 ROM in TWRP there is an adjust in the metadata of the file needed to have the phone name like Oneplus8t instead of Kebab in the name in order for TWRP to flash it.

And the process of entering recovery is different when on Android 12.

Android 12 enter recovery mode

- When the phone is running, during a normal reboot just hold the VOL+ button

- When the phone is turned off, hold VOL+ and POWER, when the Oneplus logo appears, release the POWER button
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
@BillGoss - The MVP of this thread. :D
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] enkidu70:
I am new to 8T...

May you please tell me where to get copy_partitions.zip and how to flash it, having the device still on latest stock rom?

Edit: I found one at https://androidfilehost.com/?fid=4349826312261712574 but I am not sure if it is the right one.

Tnx in advance.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Hi!

I took this one, but I guess the one you posted might be the same.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] smegbat:
Hi,

I am on stock OOS (11.0.11.11) and have been reading through the posts and have a question. I had a Oneplus 7 Pro before the 8T and have a question re unlocking bootloader, flashing TWRP via Fastboot and using Magisk to root the phone. Question,

1 Following unlocking the bootloader can I just flash TWRP temporarily via fastboot then reboot recovery sideload TWRP installer and flash that in TWRP. This would give me TWRP on both A & B Slots is this correct? If I then download or Sideload Magisk and flash that via TWRP will that not root my phone albeit in OOS 11?

I've read a lot on this thread and it seems to be over complicating the process, unless there is something I am missing that is peculiar to the 8T,

I would be grateful if someone could let me know. TIA
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Have a look at https://xdaforums.com/t/guide-rooting-oos-with-twrp.4327417/
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] smegbat:
Hi Bill Goss thanks for your reply, it's basically saying what I said In My post apart from one bit that I dont quite believe it say to flash TWRP installer after flashing Magisk. If you do that you unroot your phone 😂😂
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
That's not true. Flashing the TWRP installer simply flashes TWRP to both slots. Having TWRP installed has no impact at all on root.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
* on this device. :p