yashsingh1/xdaforums huggingface dataset:
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] sameog:
Going over your post/link now and thank you! =)
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tyler19820201:
Yep. Will do.

UPDATE:

I have realized that adb shell dpm set-device-owner is causing the issue...

So nothing to do with twrp. :)
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Thanks. I know about the logical/dynamic partitions in /super. And I know that they get mapped to virtual block devices (dm-*) when the system/recovery/fastbootd boot. (See https://source.android.com/devices/tech/ota/dynamic_partitions/implement).

But we've been able to flash ROMs without unmapping them in the past, so I'm wondering why this option is now available.

I think you're correct about needing to reboot to get the updated logical partitions mapped after flashing an update. But the other reason for rebooting is that the physical partitions in an update are written to the inactive slot and a reboot is needed to change slots.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
Just to be clear, 8T is Virtual A/B, but that option is about logical/dynamic partitions (aka super partition), which preceded Virtual A/B.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] sameog:
Guys, Magisk Hide is still not hiding banking apps. Yes, I've enable hide detection and all that. Safety nest passed. What gives? <confused>
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
Totally off topic for this thread.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] stmims1124:
Definitely the wrong thread, off topic...but it's because of Google. It's happening for everyone. This*may* fix it:

Pass Safetynet on Rooted Device

DISCLAIMER ⚠️ We don't know if this method works or not on every device but you can try this method AT YOUR OWN RISK! You May need to Format Data or Clean Flash your ROM if this method didn't work for you! Make Sure to Take A Backup BEFORE FLASHING THIS, We are NOT Responsible for any Damages...

telegra.ph

It worked for my phone, but not tested for every phone and could go wrong. Big disclaimer, it could go wrong. You've been warned.

Back to talking about TWRP. Thanks @osm0sis for yet another bit of awesome work. Your list of work is quite... extensive!
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] sameog:
Thanks! I'll give a whirl. If nothing else, MSM. Again, thanks! =)
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] hightech316:
Coming from the op7t where their TWR is way buggy.

Seems the 8t is much much further !

Anything I should look out for ( besides what's posted in OP ) ?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
Even if you get a ton of red mount errors while flashing a rom you can safely ignore those, follow all the steps and the rom will boot just fine.

if you get a no os installed message while rebooting to system/twrp you can ignore that too.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] noddledizzy:
So this only backups up data? What If I brick my device from modifying system? Will I still be able to recover with this?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
See https://xdaforums.com/t/recovery-11...ect-8t-kebab-2021-09-04.4302449/post-85422489
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] noddledizzy:
Thank you. Can we please pin this in the first page too?

Then what happens if system is not booting at all? Per instructions, you need to do a factory reset and reboot to rebuild data. Then you can restore your full backup afterwards.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] noddledizzy:
How do I push apk's in /sytem_root/ in this? I've been trying to push AuroraServices.apk into /system_root/system/priv-app/ and it won't let me because error shows that it's 'Read-only file system.'

edit. did mount -o rw,remount /system_root to have write permissions but now it showing me, no space left wut
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
You'll have to use Magisk.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] noddledizzy:
Magisk flashes to /system/

but my priv-app is in /system_root/system/priv-app

In return, it breaks my system when I flash using magisk. Not sure why, hence I'm manually pushing aurorastore to /system_root/
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Sorry, I should have been clearer. When you use Magisk to do systemless installs, eg systemless hosts, it doesn't physically write to the system directories but uses overlays that make it seem that it's been written to system directories.

Typically you do this using a Magisk module.

How to do this is not something that belongs in the TWRP thread. If you don't know how to do what I'm suggesting then you need to read up on Magisk and its modules and look through the Magisk forum.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] denisovich:
Just a small note to say the latest recovery 20210904 is working nicely for me.

Nice to see honest, diligent development.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Fumetsu_Guritto:
Goal: Create a Nandroid backup and restore successfully onto a 2nd identical device.

My understanding of a Nandroid back up is that it creates a gold image of your entire setup. If I have two identical phones, I can create a Nandroid backup /gold image of Phone A, then take the Nandroid backup / gold image and use the restore option in TWRP on the Phone B, in this case both phones are OnePlus 8T.

In my testing, the backup/restore feature on just one phone, possibly failed. To test, I created a Nandroid backup, rebooted, uninstalled an app, rebooted into recovery, and used the restore feature - selecting the Nandroid backup I created. The phone rebooted on its own and began the process - 1 hour later (give or take) the phone was still on the display that reads, "Starting Android". I restarted the phone and attempted the process to restore again, this time giving the phone 2 hours - which I think is far too long, but whatever, either way the same message is displayed.

Installation instructions followed was from Case II: Devices with A/B partition scheme

Device: OnePlus 8T (KB2003)

Android Version: 11

OS: LineageOS for microG 18.1 (Kebab)

Magisk Version: f822ca5b (23001)

App: f822ca5b (23001) (21)

Package: com.topjohnwu.magisk

TWRP version: twrp-3.5.2_11-0-kebab-20210726-alpha

First issue to note:

The boot partitions - System and System Image do not exist in this version - or at least on my phone.

These are the the partitions listed in the Backup feature of my phone:

Data (excel. storage)

Boot

DTBO

EFS

Metadata

Modem

Persist

Recovery

VBMeta

Super (system, system_ext, vendor, product, odm)

The options I chose to back up and later restore were:

Data

Boot

EFS

Super

Under Options for Backup feature no boxes are checked

The list of items in Options:

Enable compression

Skip Digest generation during backup

Disable free space check before backup

So my question is:

What is the right Partitions to be selected and Options if applicable in order to create a Nandroid backup I can depend on and more importantly use the Nandroid back up from Phone A to restore / image Phone B?

Also - I assume I shouldn't be backing up EFS from Phone A and used on Phone B? I believe EFS is exclusive to the phone due to IMEI information amongst other unique information exclusive to each device?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
I have not tested this but what I understand from reading this thread you need to backup and restore

boot

super

DBTO

data

For a complete backup. You also must make sure that you restore to the same slot ( a or b) that you backup them up from, as some stuff in super is slot specific.

You probably also need to follow the extra steps for restoring data listed in the begining of this thread.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
If you had read just the previous page you would have had a partial answer to your question.

Forget about how things used to work. The new virtual A/B devices, like the 8T, make things a lot more complicated.

1. You are correct about efs. It's specific to a given phone and should absolutely NOT be restored on another device.

2. See https://xdaforums.com/t/recovery-11...ect-8t-kebab-2021-09-04.4302449/post-85422489 for what you need to backup/restore.

3. You can only (I'm guessing here as I've not tried this) restore a "full" backup (as defined in the previous point) to another device if it is running the same firmware in the slot that is being restored.

4. I recommend you use the latest TWRP version as this is still an alpha release.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mslezak:
I just installed the new version - I was using the one from July - that one I noticed:

Super / Boot / etc. all would backup and restore just fine. Data would not. I suggest backing them up SEPARATELY.

Seems even on the new one, Data has some issues backing up. Same with multiple partitions. I'd suggest if you're trying to make a backup, just backup Data and nothing with it. Now I have no idea if a restore will work - it did not work with OOS 11.0.10.10.KB05AA on the prior version of TWRP (would not boot). And when I tried the new version, it didn't seem to finish a full data backup before exiting TWRP (it just... quit). I realize this is alpha, just a heads up you may want to use other alternatives for the time being for your data partition. But super and boot and such are all working fine. That's just my experience with it; I know somewhere in the thread it said OOS backups don't work. But Super does. Boot does. Recovery does... Now on an SD card it's kind of iffy. Sometimes it fails, sometimes it doesn't. You probably want to backup to the device and copy it over to the SD card later.

Still thanks much to the dev! The "core" parts work as they should. Have saved my a$$ several times (especially with the Super backup)...
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
I've also had data backups that start but then TWRP exits so I've never managed to grab logs.

I tend to backup system partitions separate to the data partition simply because the systems partitions only change on a system update, whereas I backup the data partition on a weekly basis.

Backup and restore works fine for OOS (my daily driver) and I've also tested Los and Havoc successfully. This has been the case since the very first version of this TWRP.

What doesn't work is flashing OOS, as indicated in the OP.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ArletPDR:
Can i flash this using some recovery flashing app or something?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
You can flash the zip using the Magisk modules "Install from storage" option.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ArletPDR:
Does formating /data wipes internal storage? Meaning that i lose custom rom, magisk, and twrp installer i currently have stored in my internal storage?

I currently don't have pc near me so i cannot MTP zip files over to device
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tyler19820201:
Format data wipes internal storage. Factory reset does not.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ArletPDR:
I cannot have access to data partition on B slot.

I do factory reset on A partition and then switch to B and reboot to recovery, just like OP post tells

Format /data (I do factory reset, because otherwise I would lose all my rom flashing files and stuff)

Switch slot (from A to B)

Reboot to TWRP

Sideload/flash the ROM + installer. (This is where I cannot have access to my files anymore, they are not gone, but I cannot see them)

What I'm doing wrong?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Fumetsu_Guritto:
To confirm

Select Partitions to back up: Super, Boot and DTBO

Then go back and select the Data partition to back up

When restoring do Super, Boot and DTBO first then go back and restore Data - or does it matter which one is restored first (Data vs Super, Boot, and DTBO)?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Fumetsu_Guritto:
So I'm currently active on Slot B.

If I run a back up, it backs up Slot B. When I restore, so long as Slot B is still active, I can just restore without issue?

Or if I run the back up, will it be a back up of Slot A? So I'd have to switch to Slot A before beginning the restore process?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mslezak:
Depends on what you're doing - like if your system gets all messed up after an update you'd likely restore super first. Then boot and dtbo. Then data (only if needed; after a failed system update you probably don't need to - I didn't at least on the July version). If your data backup works. I haven't tested on the new version if restore of a data backup works on OOS 11.0.10.10.KB05AA - maybe if you post what you're running others can advise you better. I know the thread says "not for OOS installs." But backing up / restoring it's great on the core things.

Remember, I haven't tried to restore a data backup yet on my OOS version (maybe someone here has). I just suggest restoring separately to avoid issues, just reboot back to recovery between restores, I think in the Advanced Menu but can't recall off the top of my head.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Fumetsu_Guritto:
Thank you!!!

Followed your instructions and it restored perfectly. BTW I'm on Lineage 18.1 for microG.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mslezak:
Great! Glad it helped.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] liver20:
Latest build is possible flash oos?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Heldwin:
Thanks for this build.

My 8t like this :)
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Nope.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Svid:
Flashing magisk\ kernels on OOS works fine with this TWRP?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Yes
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] phabet:
any idea why my otg isnt recognised? tried formatting as exfat, fat32 and ntfs, nothing works. if booted its recognized, just not twrp
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
OTG is known broken I think, at least on a bunch of twrp-11 devices, not sure here
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
All I had to do was insert the USB drive, wait a few seconds for the phone to recognise it, and then Select storage>USB storage.

My USB drive was formatted as fat32.

I could browse the USB drive using File Manager from /usbstorage

OTG works fine for me.

I'm on TWRP 210904.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] knn130:
Hi there. quick disclaimer, im noob af.

Currently running havoc os, with havoc recovery. Can i have TWRP as my permanent recovery without losing or formatting any data, and if so, how do i do that?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tarekdev:
when flashing any rom i get this error at step 2/2

"failed to mount '/system_root' invalid argument

same with 'system/ext', '/vendor' , '/odm'

though rebooting to system works fine and the rom works ok i think
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
Hey I just wanted to ask, does incremental update work for OOS if you have twrp and magisk installed?

what I want to do is

1. update oos

2. install magisk to inactive slot (I'm on stable magisk 23.0)

3. reboot

4. flash twrp installer zip using magisk

Will this work?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
Yep you can do this without any data loss. Just boot into bootloader and run the command -fastboot flash recovery twrp.img

After this whenever you update your rom always flash twrp installer along with rom zip so it will overwrite havoc recovery and you'll keep twrp.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
Yes, those errors are normal, I get it too sometimes.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] knn130:
I usually update through OTA. Would i still need to do this after every update?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
If Havoc supports addon.d-v2 you can use my twrp_ab addon.d-v2 script to retain it. If not then you can use my Magisk TWRP A/B Retention module after the OTA but before rebooting, or flash the TWRP installer zip in Magisk or FKM after the OTA.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] knn130:
How do i check whether Havoc supports d-v2?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
Check if /system/addon.d exists.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tarekdev:
Thanks for your fast response,

Also moving files when booting twrp doesn't work even after this step:

"PS: After formatting /data, until the first time the device is booted to system, the files you send to phone via MTP (USB) will be at /data/media, not at /sdcard

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."

the only solution i found is to flash twrp not just boot it right ?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
I always flash twrp, never tried to format data/flash rom while booting twrp. Why do you boot twrp tho and not flash it?

And to avoid these copy troubles, I always format data after flashing rom+twrp installer. Try these following steps to flash rom next time.

1. Switch slot (only if flashing custom over oos otherwise skip this step)

2. Flash rom and twrp installer

3. Reboot to recovery (important step)

4. Format data

5. Reboot system
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
Hey @theincognito have the flashing instructions been changed for oos to custom?

iirc, there was no reboot to recovery after switching slots in previous instructions. Also I remember trying to reboot to recovery after switching slots while on oos and it booted into oos recovery. Had to use fastboot to switch slots to access twrp again.

I think the fastboot flash recovery twrp.img command only flashes twrp to one slot so rebooting to recovery after changing slots gets you to oos recovery.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
"reboot to recovery after switching slots while on oos and it booted into oos recovery"

fastboot flashing only flashes the recovery to active slot. You can avoid this by following:

Reboot to fastbootd (instead of bootloader) and flash using

fastboot flash --slot=all recovery <twrpimagename.img>

OR

After flashing the twrp image via bootloader/fastboot, reboot into TWRP, then flash the twrp-installer zip, before doing the whole format /data, switch slot and everything.

Any of the above methods should remove OOS recovery from both slots. I personally use method 1, but I have tested the second method too.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Don't do formatting /data with TWRP only in booted state. Well, you can, but it might not reboot to TWRP again, if you try to boot again. But booting TWRP is absolutely fine for flashing stuff.

If you don't want TWRP flashed, there is a simple way. Flash TWRP on both slots, do the format /data and stuff, reboot to TWRP, flash the ROM. But skip the twrp installer this time. So when you reboot into the new ROM, you won't have TWRP.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
Thanks, I wasn't aware about this method, but the reason I asked you was to know the reason for the change in instructions.

During all my previous flashing, I have clicked on the switch slot and then immediately (without rebooting to twrp) flashed the rom & twrp installer. Does the switch slot not have an effect this way?

The rom does boot when I do it this way, but now I am starting to think, the switch slot didn't have an effect and my custom roms were being flashed on an older version of OOS (since the other slot usually has an older oos installed).
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
With regard to your last point, the Los installation instructions included a section on pre-installation that syncs the slots to ensure the latest firmware is on both slots: https://wiki.lineageos.org/devices/kebab/install#pre-install-instructions
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Both should work. I follow: format data, switch slot, reboot to twrp, then sideload rom + installer (For OOS to Custom).
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
Hi all!

If someone is intressted I created a black Themed TWRP Version (Themed by @acuicultor and @Morphine1) for the Oneplus 8t.

This TWRP is the same one as the one here in the OP just with the black Theme applied to it.

I put the IMG file for that here which can just be booted with fastboot boot twrp_black-3.5.2_11-0-kebab.img

EDIT: I have uploaded the flashable .ZIP installer with black theme on the above link as well now.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Wow. The UI looks nice. Really nice. Could you make a TWRP theme instead of hardcoding into the TWRP? If that's possible, you can create a thread of TWRP black theme. Then, I can release the normal one as usual and users (including me, I love black theme lol) can come to your thread and get the theme zip. This will also make it build independent. Really love your work. @acuicultor @Morphine1 @Wishmasterflo
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] acuicultor:
Sure I'll do it, first I'll send you the zip for op8t testing if you're up cuz i only have regular op8 to test on
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
The black theme look really great. I would be happy to test it.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Obviously I am up for it. Please do PM me the file.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] TRexombo:
@theincognito. Thank you and everyone involved with official alpha twrp. Works great. I went from OOS to custom easily with twrp.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] K4KKBNO1:
can someone help me as to how can i root my OP9R using twrp. for some reason the fastboot method isǹt working
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
`fastboot boot twrp.img` then adb sideload Magisk.apk. Should work. magisk_patched.img should work too though.. 🤔
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] alp47470:
@theincognito @acuicultor @Wishmasterflo Thank you all for your contributions
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Wishmasterflo:
I am trying now to build OrangeFox recovery out of this for our Oneplus 8t. :cowboy:
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] azoller1:
Good luck. I had looked into that, but they didn't have proper Android 11 trees. I hope you can figure something out lol
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] alp47470:
Good luck.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] haitower:
Will the TWRP be gone after an OTA? Or do I have to consider any extra steps before/after installing an OTA?

I'm not using a custom rom.

Thanks!
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
Yes it will be overwritten with the stock recovery, so you would need to flash TWRP again.

If you are using magisk you can also use this https://xdaforums.com/t/tools-zips-...ices-platforms.2239421/page-102#post-77770683 module by @osm0sis
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] OTAx1:
fastboot flash recovery <filename> worked. pretty simple.

thanks
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] haitower:
Thank you!

Yes, I plan on installing Magisk. I know, this is not directly the topic of this thread but still related to my question:

Lets say I installed TWRP and Magisk and there is an OTA available and I want to stay rooted: Do I need to flash the original boot.img before flashing the OTA or not? (And after the OTA I would reinstall Magisk in the manager app)

Some guides do say to flash the original boot.img, some not. I don't understand in which cases this needs to be done?