yashsingh1/xdaforums huggingface dataset:
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] jitnyc:
Just something worth mentioning...

If you get the error, "NO OS INSTALLED" after flashing an OS or doing any work in TWRP... just ignore it completely and reboot as normal. Assuming you did things right, it will boot as normal.

just something I learned the hard way... derp!
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] fates13:
Once again reporting that flashing a rom or update without mounting all the partitions first in TWRP will cause mount errors during the flash. Once you try to swap to the other slot, you'll have a bunch of mount errors and partitions will no longer be mountable on that slot. If you go back to the slot you originally flashed the rom/update on the partitions will mount but you won't be able to flash the rom on the other slot.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Which ROM were you on?

Which ROM did you try to flash?

TWRP build date?

Recovery logs?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] fates13:
not sure if I have logs but it's happened when updating Lineage to the next weekly update and also when trying to update EvoX. Latest TWRP builds and the builds before that. Same thing happened on aphophis' build but I haven't tried his since switching to this one when the thread was first created
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] apophis9283:
I ended up reverting a few of your commits and I no longer have mounting issues. Just fyi. Using mine Ive flashed around 13 updates so far, no issues. Your 2 unification commits and the checkpoint commit.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] YumeMichi:
Unable to flash rom zip on 9R.

Recovery log: https://pastebin.com/dVdGwrKu
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
I am considering buying kebab now that preliminary TWRP support is available. In other TWRP development threads I have seen a list of features working and not working. How "alpha" is this TWRP implementation, meaning which features work and which do not work?

- Does USB OTG work?

- Can I open the TWRP Terminal and execute shell scripts and commands?

- Can I mount the /data partition and decrypt the files?

I am interested in going directly to Lineage from stock, is it possible to root this phone by flashing the Magisk.zip in TWRP?

Also I see a lot of users mention "fkm" I have searched but can't find the meaning of this acronym. What does it mean?

Finally, what was the difficulty in getting TWRP to work on 8T as opposed to other devices, is OnePlus using a non-standard encryption or partition scheme for kebab? Are there any major technical show stoppers that would prevent an official TWRP release sometime in the future?

Thank you to the developers for this work.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
Maybe

Yes

Yes

Franco Kernel Manager 🤘
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Yes

Yes

Yes
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
Appreciate the replies.

What about this one:

I am interested in going directly to Lineage from stock, is it possible to root this phone by flashing the Magisk.zip in TWRP?

If this isn't possible, what is the currently recommended way to root this device with Magisk? I have seen a few different discussions and methods. Flashing the Magisk zip from TWRP would be ideal if it is possible.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
The answer is yes, but see the instructions in post #2.

And see also my comments here: https://xdaforums.com/t/recovery-11-alpha-teamwin-recovery-project-8t-9r.4302449/post-85323105
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] kjslabber:
Fkm is Franko kernel manager.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
Thank you. Could you validate my understanding of the information?

In this case I will be migrating from stock to Lineage as soon as I get kebab. So I will be following the "Ideal way to flash" in post 2:

Preliminary:

Unlock Bootloader

1. Install TWRP

2. In TWPR, format /data

3. Switch slot, <this step is unclear, is this an operation inside TWRP? Is there more info on how to do this?>

4. Flash ROM, <can I flash the Lineage.zip from USB OTG in this step?>

4. + installer <Does this mean the TWRP installer here: https://www.androidfilehost.com/?fid=14943124697586362328? So I would flash the zip, from inside TWRP?>

5. Reboot again to TWRP

6. Flash Magisk.zip

From your comment:

Does this mean, I should only format /data after flashing the ROM?

So the final order, applying your comment would be:

1. Install TWRP

2. Switch slot

3. Flash ROM + installer

4. Reboot again to TWRP

5. In TWPR, format /data

6. Flash Magisk.zip

Final question, if I install Lineage from TWRP using this method, do I still need to run the copy-partitions-20210323_1922.zip package as detailed here: https://wiki.lineageos.org/devices/kebab/install.

Should this be taken care of via adb sideload in the preliminary steps or can I integrate this step into the TWRP procedure. I.e. can I flash this zip from TWRP as well. Is it related to step #2 "switch slot?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
The 8T is a brave new world as it has A/B partitions as well as virtual A/B (VAB) partitions which makes life a fair bit more complex.

And there's lots of ways you can accomplish the same outcome.

For example, if you use the copy partition zip to synchronise the A/B partitions (not the VAB) then you don't need to change slots. And if you're using a USB drive then you can format at the start as you will still have access to all your zips.

The reason for flashing the TWRP installer after flashing the rom is to keep TWRP (the rom had its own recovery).

So, is you have your files on USB then you could:

- flash copy partitions

- format

- flash Los

- flash TWRP

- reboot TWRP

- flash Magisk and Gapps

- reboot system

The one thing you don't want to do is format after flashing Los and before rebooting TWRP
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Qnorsten:
fkm = franco kernel manager (https://play.google.com/store/apps/details?id=com.franco.kernel&hl=en&gl=US)

Edit: woops I see that people have already answered that. Sorry.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
Thank you for the detailed answer. Your explanation on why the above steps are necessary provides a much clearer picture of post #2 and the overall process.

I would actually consider not having to use a USB to flash an advantage. So in this case, I would have the zips I want to flash on some path in /data/*.zip which will remain accessible until I format /data near the end?

Then if I follow your modified steps I would flash the ROM, then flash the TWRP installer again which will overwrite the ROM recovery and restore TWRP then reboot into TWRP and format /data. Is this correct?

So regarding the AB and VAB issue. Aside from flashing the copy-partitions.zip how else can can I "switch slots" as theincognito originally mentioned in post #2? Is this an operation inside TWRP or the VAB operation done elsewhere?

So assuming the user is not using USB, would this be the ideal order:

- Unlock Bootloader

- Install TWRP to recovery partition

- Switch slot

- Flash ROM + TWPR installer

- From TWRP, reboot again into TWRP

- In TWPR, format /data

- Flash Magisk.zip
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Changing slots: the Restart menu has this (see attached screenshot).

"Ideal order": it depends on user install preferences (do you sideload, use USB, or on-device) and process preference ("just follow these steps" or "this is how it works").

I'm an on-device, "how does this work" sort of person. And I'm not at all fond of "just do this".

And, yes, your order will work, though not quite as you've written it (because I'm picky with details) - but you'll find out when you go through it. No, it's nothing serious, but you'll learn something about details as you go through the steps. And I don't want to prevent you having the learning experience 😊.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
Thanks for the info. Again the screenshot is very helpful. I would definitely prefer to have a comprehensive overview of the tech rather than list following. Until I get the device, hashing out the order of operations does helps to expose any gaps in understanding from from working with past devices.

So in this context "switch slot" means if Slot A is the current slot the first time I boot into TWRP, I "switch slots" by selecting the other slot in the reboot menu. Two questions:

Since this slot operation is in the reboot menu, do I then need to proceed to reboot immediately to make the switch active or is simple pressing the button from the reboot menu sufficient to switch?

You mentioned earlier 8T has Virtual A/B. Is switching slots in this way working on the VAB or the regular AB partition.

Here is the original instruction:

Modified with your recommended to move formatting after ROM, switching slots is now the first operation after booting into TWRP:

I'm curious about the detail you mentioned. Re-reading your modification:

Re-reading my list I just realized that if I am flashing zips from /data I need to ensure I have flashed everything before formatting. So maybe switch the last two operations?

- Unlock Bootloader

- Install TWRP to recovery partition

- Switch slot

- Flash ROM + TWPR installer

- From TWRP, reboot again into TWRP

- Flash Magisk.zip

- In TWPR, format /data

- Reboot into System

But Magisk writes to /data/adb/*. So this probably won't work either. Perhaps rebooting into the system will recreate /data then root afterwards?

- Unlock Bootloader

- Install TWRP to recovery partition

- Switch slot

- Flash ROM + TWPR installer

- From TWRP, reboot again into TWRP

- In TWPR, format /data

- Reboot into System to re-create /data partition

- Flash Magisk.zip
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
👍

Some reading if you're interested:

A/B (seamless) system updates | Android Open Source Project

source.android.com

Virtual A/B overview | Android Open Source Project

source.android.com

OTA updates | Android Open Source Project

source.android.com
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
Thank you. I will read all of them.

Under known bugs, theincognito says:

and later you say:

So are these two instructions directly conflicting? theincognito doesn't say why a user should not format /data after flashing a ROM or why this is a known bug.

I understand why following your method will prevent the issue that vnayrp experienced.

Do you know what the rational is for this original advice and what risk there is if I follow the original method or your modification?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
Ah, the difficulties with trying to write unambiguous directions!

You must not format between flashing the rom and then rebooting TWRP. Once you've rebooted TWRP after flashing, then you can format.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] jitnyc:
I installed TWRP a month or so ago when it was avail via the first thread with no comments allowed. From someone who was waiting for it a while, it was like old times. Install was a breeze and everything works just as it always did.

- OTG def works

- Yes, you can install Magisk via zip

- Yes, you can run scripts

- and yes you can mount the data partition but im not sure about decrypting the files... would this be like having access to the data folder via on your pc? I was unable to do that but I also didnt think that was possible. Would be great if it is.

Otherwise TWRP works great... the only blip i came across is that sometimes after installing a rom, it would say there is NO OS installed but I think that might be a known issue and it was said just to ignore and continue as normal. For me, all backup and restore functions work very well. Hope that helps
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] jitnyc:
Can anyone explain a bit further on decrypting the files? Im not a noob by any means but does this mean you can mount the system on ur pc and get access to system files?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
From my part, when I said "Can I mount the /data partition and decrypt the files?" I was referring to TWRP's ability to ask for a password and then use that password decrypt /data/data/*, /data/media/* etc. I would assume from the answers that this is possible.

I asked it because I thought I had read in another thread somewhere that Oneplus used a non-standard encryption scheme for 8T and there were other users speculating that because of this, there would never be a TWRP for this device. I think theincognito or the other devs and senior members would have to comment further. Regarding mounting Android system partitions, I think you can access these files in adb shell with su, I'm not sure if MTP exposes anything outside of Internal Storage although I doubt it.

You mentioned that "it would say there is NO OS installed". Do you see this message just when using TWRP or when the phone is booting?

Also, does this phone display a orange warning message when booting about how the device can't be checked for corruption due to the unlocked bootloader?

Thank you for taking the time to share your experience, this is welcome news. Having a full featured recovery option like TWRP really is a hig asset for a device.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] iooxda:
Okay very good. So actually the key here is to reboot back into TWRP after flashing a ROM before formatting. I reread the whole thread and saw you did mention that earlier as well.

I am curious to know what the reason for this is? I understand that if I am on stock then flash a ROM, the data partition will no longer be valid and needs to be formatted. I am assuming that after I flash a ROM like Lineage and format the old /data partition, the new data partition is recreated during the first boot into the system during the booting process. Is this correct? Or perhaps when I use TWRP to format /data, does this TWRP operation actually delete the old data partition and then recreate a new empty one in it's place, then the first system boot populates it with data?

Either way, why is it critical to reboot back into TWRP between installing a new ROM and formatting the /data partion?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tyler19820201:
Because of the nature of Android's dynamic partition system introduced for new devices.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
I can't answer in detail, but when a rom is flashed some data is written (I don't know exactly what is written or where) in /data that needs to be processed when the phone boots (in this case booting back to TWRP) after flashing. If /data is formatted before the reboot the data is lost and the rom isn't installed fully, resulting in an unbootable system.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tyler19820201:
Any link for new, updated kebab twrp?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mad4some:
I'm currently running crDroid custom rom. Has anyone updated a custom rom using the instructions in the OP: "For updating a custom ROM - Flash ROM + installer, reboot to TWRP, flash Magisk/Gapps. Reboot to system"? Results successful? Thanks :)
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] tyler19820201:
I intend to do that with the latest twrp kebab build...Have not tried yet.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
I did it with Havoc, but I am the dev, so :P Just follow tyler's advice, since I don't use crdroid.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
New build released - 20210726 (Kebab only)

Changelog:

Removed 9R support

Fixed the TWRP screen overlapping with the notch

Various mount errors while flashing ROMs should be gone now (atleast my testers think so)

Latest upstream changes

Removed AOSPA kernel, and updated to latest LOS kernel

Download links:

IMG: twrp-3.5.2_11-0-kebab-20210726-alpha

Installer: twrp-installer-3.5.2_11-0-kebab-20210726-alpha

As always, links are updated in the OP too.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] lpdavidgc:
Thanks you so much!
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
Has anyone tried to flash magisk on stock rom using this twrp?

It is mentioned that OOS flashing is broken so I was a bit confused whether it can flash zips over the already installed oos.

I am currently on latest OOS and locked bootloader so what I'm planning to do is -

1. Unlock Bootloader

2. Flash Recovery

3. Flash Magisk

4. Reboot System

Will this work?

Edit - This worked, I think this is by far the easiest way to root. There's no need to patch boot partition and use fastboot anymore.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ruszok:
Hi,

I try to flash magisk on stock OOS and... It work's fine. So will work.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] theincognito:
Yes.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ruszok:
@theincognito - what do you mean here:

It's better to flash ROM + TWRP installer, if you want to keep your TWRP after flashing a ROM

I have stock OOS. So if I have update of OOS (full package), install it at OOS installer (not in TWRP). Then I should not click "Reboot" in the updater just flash TWRP installer zip in magisk manager. And then? Install magisk in inactive slot or reboot to TWRP and install magisk?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
I don't think it is possible to update OOS in any way if you have twrp installed. Only way to update would be to get the stock recovery somehow and then use the ota update from settings.

Please correct me if I am wrong, I am writing this after reading the entire thread and I saw someone mention this before.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ruszok:
As I think you can update OOS in recovery (for now is impossible) or you can update in OOS (not in recovery - should be possible?). But maybe I'm wrong?

I have in mind full package of OOS (not incremental OTA package).
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
You can flash the zip in FKM or Magisk app after the full OTA has completed
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
How does one install full OTA if twrp doesn't support flashing OOS?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] osm0sis:
OOS supports flashing OOS..
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] pratyush28:
So local upgrade would work when stock recovery is absent? Sorry for asking noob questions. Since I am coming from an OP3T, I am really not sure about what's normal on newer devices and A/B partitions.

From what little knowledge I have about A/B partitions, and from what you are saying that OOS is capable of flashing upgrades,

1. There's no need of a stock recovery anymore and OOS will flash the update on the other slot?

2. Will I lose root and my modules in the process?

3. Also will twrp be overwritten?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ruszok:
It's also little bit confusing for me.

If I will try to flash stock OOS FULL PACKAGE I can do it by OOS local update installer, yes?

So:

1. Flash full OOS package by OOS system updater (without reboot).

2. Flash TWRP installer zip in magisk (or FKM).

3. Reboot to recovery (TWRP).

4. Flash magisk.

5. Reboot to system.

It is correct way?

Or:

3. Click "install" in magisk and then "install in inactive slot (after OTA)".

4. Reboot system.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mslezak:
I have the incremental update for OOS, wasn't able to payload extract it (I'm rooted) but it's global latest if anyone wants to try a TWRP flash. 11.0.9.9.KB05AA incremental update I downloaded it and extracted from the phone with adb shell: https://mega.nz/file/C8AhTYYL#O8WxNjyz8I0FEXPRkgBxzktYmJw9fCw79tfIUuYNcuM
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
As stated by the OP, you can't flash OOS, either full or incremental, with TWRP at the moment.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mslezak:
Then what's this??? This guy said he was stock and flashed TWRP via Franco Kernel Manager. I take it "stock" means OOS... Now that's how I interpreted it anyhow.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mslezak:
See above... Guess we can see what ecompton59 meant by "stock" then go from there.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] Ryano89:
I read this to mean that he was on OOS, successfully flashed TWRP through FKM, and then flashed a kernel through TWRP. It's not completely clear, but I'm not sure that he was saying he actually flashed OOS through TWRP. Maybe 8m reading it wrong though
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] mslezak:
Hell I just booted it, encryption works, data backup works, I'm on OOS... The real test is to attempt to restore it... Actually I just flashed it to recovery from fastboot, it works! Although attempting to flash the incremental update fails; it doesn't appear to have the proper partition layout as it can't find system_root on slot B (I'm on slot A, TWRP attempts to flash to the inactive slot B, just where the update is supposed to go anyway)... But I found a Payload dumper https://github.com/vm03/payload_dumper that supports incremental updates so more to come there...
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] jitnyc:
Ok so first off, I prob should have known what you meant regarding decryption... but its been a while since using TWRP I guess. All good on that so to answer your follow up questions:

- regarding the "NO OS INSTALLED", this was specific to TWRP and from what I read it was a known bug. However, this is no longer an issue with me, I think it was only in the very first release of TWRP and not the current one. But since I didn't know who has what, just trying to prevent anyone from resintalling 10x cause thats what i did before I just hit reboot and saw that it worked.

- The orange warning sign is due to your bootloader being unlocked and yes it does say it on all oneplus devices... its actually cut off by the camera lens - so it really looks corrupted lol
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] ruszok:
I flash OOS in OOS stock updater. With magisk and TWRP installer.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] hagar006:
Any reason this recovery shouldn't work on op 8? I'm a flashaholic so I'm going to try of course.. just thought I'd ask the question first!

Excellent work guys!
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] XDAMaxe:
So to sum it up:

With the current TWRP for 8T model

1. DATA partition is - as stated - backupable, incl. fingerprint backup and restore.

2. A full nandroid (DATA and SUPER partitions like usually) is - as far as I experienced - possible. But restoring failed.

My device has latest OOS with working magisk (patched boot.img via fastboot) and installed twrp.

Elemental-X kernel works perfect (flashed within EXKM).

Has anyone a detailed instruction for successfully restoring everything (nandroid) coming from a factory resetted device ?

Have I overlooked/done wrong something ?

Everytime I want to restore DATA and SUPER partitions the phone gets stuck after boot animation.

Only solution was EDL tool (hardbrick tool) to get into life - which means the whole installing, BL-unlock and rooting process :-(

Maybe I mixed up something with Slot A/B ? Never had a phone with A/B so I would be thankful for any hint.
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] murti52:
So support for 9R has been dropped..? Any specific reason for it..?
[OnePlus 8T ROMs, Kernels, Recoveries, & Other Deve] BillGoss:
A "full" backup requires data, boot, dtbo, and super.

And the process for restoring is documented in the OP's posts (there's more than one) at the start of the thread.

Note: you must restore to the same slot you backed up (edit: unless you've synced the slots, in which case of doesn't matter).