yashsingh1/xdaforums huggingface dataset:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Vortell:
From my understanding... But others seem to work. I have been waiting on Android 9 for a couple things. Tether bypass that works and TWRP decryption. I actually really want one that will work on both 9 and 10...
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Lvsitano:
Used 3.4.0 to update my OP6T with latest 10.3.5, but by some reason it instructed to flash into partition B (active was A), and after flashing firmware, without rebooting I flashed the TWRP installer, and then rebooted directly to recovery, like I always did, but all I've got was OnePlus recovery. Had to install it in ramdisk and then I could install Magisk and kernel, and boot phone like usual. But it was very strange this partition change.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] AndyBury:
I had no problems updating like normal.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jochem86:
I also had no problems updating... 3.4 version was already installed though
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] OhioYJ:
I removed 3.4.0 from my LOS install guide because the installer doesnt work as expected. This very same thing happens. Run the the installer, reboot and you have LOS recovery. 3.3.1-32 works reliably still. Worse yet 3.4.0 results in a system that doesnt boot at all at sometimes and requires installing 3.3.1-32 to fix.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ky41083:
I've noticed some weird behavior installing different OOS full updates via TWRP. Some trigger a slot change, and some don't. Going by memory I'm pretty sure they all installed to the inactive slot, but I'm not positive. With one in particular (10.3.3 maybe?) it rebooted into the stock recovery even though the last step I did before rebooting was installing the recovery ramdisk. Fastbooting TWRP and doing another install ramdisk worked just fine. I did not run into this issue with 10.3.4.

I suspect these issues are related to the code in the update zips themselves, rather than issues with TWRP. I get consistent reproducible behavior when reflashing the same update zip.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
Installation of a new ROM should always trigger a slot change upon reboot. It's literally the purpose of the A/B configuration.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] flash713:
+1!
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ky41083:
I agree, it absolutely should, but it doesn't. Just happened to me again installing the 10.3.5 update.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] bigrat:
soooo....I think I've hosed my phone, but maybe someone here knows a way out.

I converted my 6t into the international version, and unlocked the bootloader. This went well, everything worked. Phone got downgraded to OOS 9.

From there, I tried to follow the instructions here to boot TWRP. I adb pushed the installer to the phone, then tried fastbooting the image:

fastboot flash recovery twrp-3.4.0-1-fajita.img

This didn't work, because it told me there was no slot named recovery_a. Since the instructions here said we're really just booting, not flashing, and I found other instructions that said "use boot_a", well...I did.

I am now only able to see the screen "The boot loader is unlocked...", or the qualcomm crashdump recovery screen. The phone will hang indefinitely at either. No devices show up in the windows device manager anymore, so I can't use MSM.

Holding both volume buttons and hitting power will either put me at the boot loader screen, or crashdump. no recovery.

On a scale of 1 to 10, how screwed am I here?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PDS1921:
I posted in the general section but couldn't get a answer and to be honest haven't got time to keep waiting. If I wanna go back to stock can I use twrp to flash the latest OOS stock rom to both slots then can I reboot to bootloader and type in command fastboot OEM lock and be good to go?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] OhioYJ:
Sounds like you weren't using 6T instructions. Just for clarification, nothing will be on the screen while using the MSM tool, you aren't in fastboot or anything. If it doesn't show up in the MSM Tool, you are likely don't have the right drivers (try different drivers, or install drivers). The phone doesn't even have to turn on, and it should respond in that tool.

Key combinations:

Volume Up + Power while turning on will boot to fastboot.

Volume Down + Power while turn on will boot to recovery.

Holding Volume Up + Power should force the phone to turn off.

Volume Up + Volume Down should put your phone in Download mode for the MSM Tool.

I always run the MSM Tool as admin. I had to use a few times this weekend as I couldn't get the 10.3.5 fastboot ROM to work and I was doing some testing on things.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] bigrat:
Dude, you saved my phone, thank you! It's up and running OOS again.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] fayded:
I keep getting error "OOPS! no mirrors found" when trying to download India fake partition deleter zip, am I missing something or can someone please point me to a working download?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] flash713:
I flashed OOS 10.3.5 last night. Just: boot TWRP, flash OOS 10.3.5, flash TWRP installer zip, flash finalize, format data, reboot system and you're on stock with TWRP recovery. If you don't want TWRP just don't install it but that's how I move to Oxygen from a custom AOSP rom. If you ever boot back to TWRP instead of in to the rom you are installing just format your data again on that slot then reboot system and it'll boot.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PDS1921:
Ok thanks. I ended up flashing stock OOS. First I formated then flashed OOS with twrp I came one ace rebooting recovery lol but I caught myself after I flashed OOS. I am so used to have only one slot for twrp on my older devices. Any way after flashing OOS I rebooted to bootloader and typed fastboot lock OEM and done. My wife was having all kinds of issues every rom she ran didn't work out. I done the correct steps before flashing like formating flashing clean ECT. Before going back to stock and relocking BL her device would reboot itself also she could receive mobile data but calls n texts where fine. She would have to take out her sim card at least twice a day and put it back in then it would be good for a few days. It was just to aggravating for her and I don't blame her for wanting to go back to stock. I'm not blaming any of the ROMs I was on and Im not blaming TWRP. There could be somthing wrong with her 6t I don't know. Anyways that's man for the reply I appreciate you.

Have a good week!!
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] OhioYJ:
Glad you got it running. Thanks for the gift, and most importantly supporting XDA.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] scorpio76r:
I'm glad that XDA exists. This post is an example.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] feklee:
Error 255 when trying to restore Data

My phone is a OnePlus 6T. My phone was rooted. I don’t use multiple user / work profiles. The version of TWRP that I’m using is 3.4.0-0-fajita, the same that I used to create the backup. I didn’t install TWRP. I got my phone repaired, but it’s possible that they simply replaced it. It looks brand new. IMEI numbers are the same, but I presume it’s pretty simple to copy these.

When trying to restore the Data partition, I get error 255. How I proceeded:

Booted TWRP via: fastboot boot twrp-3.4.0-0-fajita.img

Successfully restored Boot, System Image, and Vendor Image.

Successfully reformatted Data.

Rebooted into Android, with the intention of initializing the Data partition. The start screen looked funny. Apparently the UI font was missing, but I didn't care.

Booted back into TWRP (as above).

Tried to restore Data (excl. storage). This failed with error 255.

Afterwards, I retrieved /tmp/recovery.log (see attachment). Compared to my earlier tests where I tried to restore right after formatting Data, this time at least some files were extracted. Here is where it stopped now:

==> extracting: //data/user/10/ (mode 40771, directory)
Cannot find key for 10
error looking up proper e4crypt policy for '//data/user/10/' - 1CE10
tar_extract_file(): failed to extract //data/user/10/ !!!

It looks like this has something to do with encryption. After the failed extract, //data/user only contains one empty directory, 10:

OnePlus6T://data/user # ls -lR
.:
total 4
drwxrwx--x 2 root root 4096 2020-08-12 04:06 10

./10:
total 0
OnePlus6T://data/user #

What else I tried, rebooting TWRP countless times:

Immediately before starting the restore of Data, I had Data wiped.

Immediately before starting the restore of Data, I had Data “formatted” using rm -rf (see Settings).

Changed the boot slot to A and also to B.

What I didn’t try was to restore any of the partitions EFS, Modem, System, or Vendor. The first two I didn't try to restore because I read that this is dangerous as it can brick the phone. The other two I didn’t restore because I already restored System Image and Vendor Image.

Any idea what could be the issue?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] darfri:
Just reinstall your rom instead of recovering partitions (except Data partition). Actually start reinstallong oxygenos to do the usual tasks to install custom rom. And then restore just data partition
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] bigrat:
So, I successfully re-installed OOS 9, re-unlocked, and got twrp-3.3.1-32-fajita-Pie-mauronofrio.img booted, installed twrp-3.3.1-32-fajita-Pie-mauronofrio.img (twice) in the advanced menu, and I'm currently back up and running with OOS 9, with TWRP recovery.

I'd like to move to LegionOS 17.1. Do I need to move to TWRP 3.4.0? Or will 3.3.1-32 work for me here? I'm a little unclear. I did not install the TWRP .zip file either, just used the .img for both booting, and installation in the TWRP advanced menu. Do I need the TWRP .zip file?

I assume that because my bootloader is unlocked, that I will need to install Magisk if I want to use my banking app. Later, I'm going to follow the instructions to do a signed build of LOS so I can re-lock the bootloader. Does this seem correct?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] feklee:
I tried that, same problem.

The question is also: What is causing the problem? How do I find out more?

I still wonder what this error message is referring to: error looking up proper e4crypt policy for '//data/user/10/' - 1CE10. Although e4crypt is a standard Linux tool, when I do a web search for this error message, it seems TWRP specific. Apparently TWRP doesn't find this policy, but it's not clear to me where it is looking for it.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] bigrat:
Just an update: Using mauronofrio's all-in-one update tool, I flashed the 3.3.1-32 recovery, and then updated to OOS 10. From there, I re-installed TWRP 3.3.1-32, then followed the instructions here: https://xdaforums.com/oneplus-6t/how-to/guide-installing-lineage-t4075955

I am now running LOS 17.1. Thanks for all the good content here.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ucancallmeFisseDK:
TWRP backup: tick Boot, System Image, Vendor Image and Data only.

The error message 255, I suspect is due to you did a backup without turning off any screen locks (= Settings> Screen lock - None ), and eventually some Magisk modules (e.g. Swift Installer).

Until next time you run TWRP backup, remember to turn those off before.

And backup the /sdcard/download to your PC or USB-stick + update the Google security copy before TWRP backup since it don't saves photos, music or similiar personal stuff.

This is your only alternative for now.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] feklee:
I have all that backed up, and more. The internal storage I backed up using tar, piped to my PC via adb. I didn't have any Magisk modules installed. That's all not an issue here.

Reading the log, the problem apparently is a missing security policy for e4crypt file system encryption. This policy is an encryption key identifier consisting of 16 hexadecimal characters. The quesion remains:

Where does TWRP expect that key to be? And how to restore or create it? Maybe there's a way to see which commands TWRP is calling during restore?

As I mentioned before, after installing the matching OxygenOS using images found on the OnePlus web site, I still cannot restore Data. The security policy is simply missing. Perhaps OnePlus gave me a new phone instead of repairig it. They copied the IMEI numbers, but forgot something else. What I could try - but I know it's dangerous - is to restore EFS.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] me1ky:
HELP: OP 6T only boots into bootloader

Hello Guys,

please help me, my TWRP was encrypted and someone told me to format data via twrp to decrypt the storage.

I did this with this tutorial:

<a href="https://andi34.github.io/faq/faq_twrp.html">https://andi34.github.io/faq/faq_twrp.html</a>

Now my Phone only boots to fastboot and i cant do something like: fastboot book twrp.img because i get this error: ad/authenticate boot image: Load Error')

What can i do ? I have 80% Battery Live and i turned the phone off now. Pleaasee help :((

Edit: Okay very strange. I executed following command: fastboot flash boot twrp.img

and then my phone booted in my old OxygenOS ..

But how i am able now to flash LineageOS ? And did the Data formatting work? Im confused now ..
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Koushik87:
Thats because your phone booted to your other partition a/b where your old os was there. Boot into the other slot to see if your installation is success. For formatting..check if you can install some apps from play store or copy something from internel storage to pc and vice versa.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ppajdek:
Well got the same issue, made full backup, then tried to restore it but got the same error while restoring data.

I did many things to be able to restore it, spend like 3 hours. The last things i did was (dont know if all the steps are required or exactly these steps solve the problem):

flash latest oos, flash twrp-3.4.0-0-fajita-installer-mauronofrio.zip, reboot recovery, flash latest oos, flash twrp-3.4.0-0-fajita-installer-mauronofrio.zip, reboot recovery, format data, restore my backup but without data (boot, system image, vendor image, modem, efs), change data partition to f2fs, change data partition to ext4, reboot system, setup oos offline, copied my backup to internal storage, reboot recovery, restore full backup (at this step got no error while restoring data), reboot, profit.

Hope you will get it solved.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] feklee:
Thanks a lot, I'll look into this! Only at the moment, I really need my phone, so could be a while.

Are you referring to error 255? Or do you mean more specifically the problem with user 10?

==> extracting: //data/user/10/ (mode 40771, directory)
Cannot find key for 10
error looking up proper e4crypt policy for '//data/user/10/' - 1CE10
tar_extract_file(): failed to extract //data/user/10/ !!!

I'm asking because error 255 apparently quite generally refers to a problem with restoring Data. There are varying causes however.

Interesting. I may try that. Otherwise, I have tried pretty much the same process as you, unsuccessfully. I did not install TWRP, though, and I don't want to install it.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ppajdek:
I got both errors in the log.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] feklee:
Good! That gives me hope that your solution will work for me.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PDS1921:
I flashed bliss rom fajita and the OP says that TWRP is already included in the rom so I didn't flash TWRP thinking I didn't need to. Now I have an out dated version of TWRP in my 6t and I can't copy anything to my downloads.. I rebooted to bootloader and fastboot booted TWRP 3.4.0 but I still can't copy anything and the things I had downloaded on device shows a bunch of letters and numbers. I posted in the bliss telegram group and on XDA bliss thread but no answers..

EDIT,

I fixed the problem.

The beast of the East
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] nikosrs4:
Hey there.. how did you fix it? I'm thinking of flashing bliss and I haven't flashed a rom for a while.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] david72262:
Haven't seen either one of these last two updates mentioned here on XDA anybody try them out.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Aceolus:
Is there any difference between the official and unofficial TWRP? if so, what are they?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] naseefnachi:
Unofficial doesn't have twrp app. Already answered many times, just search before asking
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] henningsieh:
But - please correct me, if I'm wrong - david72262's question is still unanswered, right? ?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] lilbrat:
Well, with all due respect have you seen a reply...I guess if someone was really interested in the update as it appears to be an official one, they would have downloaded and tried it out .. but it appears nobody is really interested... including the person that posted the question... Now I have downloaded the installer but I am a believer if something works don't mess with it.. so I for one haven't installed it... But feel free to give it a run and let us know...
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
The latest Official is more updated of the latest unofficial, i think i will start to use the official builds for the device older than 2 years
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] parmenides-47:
Hey! As unbelievable as it sounds, I only just did this! I just couldn't turn my phone off for apparently 2 months but I got by and decided to finally do this tonight. It's 2:30am here and I have to admit it took me longer than I'd like to admit but I finally got it working and your advice helped SO MUCH! Thank you so much, man!! I really could not have done it without your advice, I would have been so lost. Take care, hope you and your family are doing well these days!
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DannyDoom:
So is installing ah rom the same on official twrp
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
Official TWRP 3.4.0-2 for OnePlus 6T (fajita):

Fixed problems during some kernels/rom flash.

TWRP 3.4.0-2 Q Unofficial by mauronofrio

TWRP 3.4.0-2 Unofficial Installer by mauronofrio

P.s. this is an old update i forgot to share, no android 11 support for now
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] lilbrat:
Folks just a heads up make sure you have the magisk installer on your device before flashing as you will loose root when changing... And you will boot loop without it...
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DissCent:
I am still on the latest Android 9 build and I would love to upgrade to 10 - but without losing root of course.

So I've got a couple of questions:

- Can I use the official TWRP to flash and root Android 10 on the OP 6T or will I need the unofficial one from this thread? What are the benefits?

- Will updating just work like on the versions before, so upgrading Android to 10, then flashing TWRP and after that installing Magisk?

- Is the system stable with this setup?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Koushik87:
There is no major difference. As mauronfrio already said that the official version is now latest than unofficial.

Android 10 is major version upgrade not like other incremental. So its better you do a clean install, I mean complete wipe internal storage, so that pie settings, files doesn't interfere with Q. Make proper backup before you proceed. Next steps are simple. Flash OOS/Custom Rom, flash TWRP for android Q(unofficial or official as u like). Reboot to recovery then flash magisk. Restore your back ups(Titanium Backup or Oneplus switch if on OOS)
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] kevk60:
Thank you mauronofrio for the update.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] plepew:
Gents,

Ok, so after reading a few more threads, I realized that I could change the slot within TWRP...boom, back and running. Not sure if this was the right thing to do after what I did below. If someone can clarify & confirm, that would be great.

Also, upon reboot into recovery 3.4.0-2, it asked when selecting to reboot to system, to Install the TWRP app & install as System App, is this necessary & really beneficial?

Upson checking Magisk now, I see that I am unable to get success in SafetyNet Check...is this related to me messing up in the first place, or something else altogether... it was successful overtime before this...

Is this due to the new version of TWRP 3.4.0-2, I was running 3.3.1-32 before.

Thank for your help in advance! ?

......

Running 6T 10.3.5. Saw the TWRP update and went ahead and updated 3.4.0-2 through Magisk as I would normally (Magisk 20.4/Magisk App 8.0.2).

Without really thinking, I went ahead and installed Magisk on Inactive Slot...Duh! I know, I messed up...f***! lol

So of course now I can reboot the phone back...it simply boots...few seconds go...and reboots back right into newly installed TWRP 3.4.0-2.

Can someone explain to me step by step to revert back to the proper slot? ?

I just don't remember how & if we can do this...

Thanking you all in advance!!
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Wishmasterflo:
[MENTION=4712355]mauronofrio[/MENTION] was it intended that the TWRP app is added back with the latest release 3.4.0-2 ?

Thanks!
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] naseefnachi:
Official one will have twrp app. Unofficial doesn't
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
Yes official TWRP always have TWRP app
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Wishmasterflo:
Hi!

Can't you just boot to TWRP and switch the Slot to the correct one/active one and boot back to your System?

Then install Magisk on that slot.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] plepew:
in trying to resolve it, it seems that slot A has not OS on it and I can booth at all on it.

I manage to Fastboot and install the IMG of TWRP on B, but not able to reboot in the OS and the Internal Storage now is giberish...So

Not I am a bit a a loss of what happen. I am hoping to at least restore the Internal Storage to get some critical files and sonme really important stuff that I had not backup in a few months.... any help to remedy I would grateful!

so pissed at myself not copying over my last Nandroid! S**T! :rolleyes::crying:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Wishmasterflo:
Ohh ok. So with "giberish" you mean the data is encrypted now or?

Had you set a PIN/password on the OS you had installed? Is TWRP asking for a PIN/password when you boot into TWRP?

As far as I know when it is encrypted now and you can not see it decrypted in TWRP now the only way to decrypt the Data is from the OS which did it.

So from OxygenOS but since you can not boot into the OS I dont think there is any way to get access to your data or get it decrypted.

Seems that you need to do a FORMAT DATA and re-install your OS. :(
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] the00guy:
Can't you use fastboot to boot into TWRP and flash magisk to both slots from there? TWRP should still be able to decrypt the os on the slot that it's installed on...btw this is one reason it's always a good idea to begin an OS install by installing to both slots for OTAs to build upon.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] muschiu35bv:
Hello Guys! Today latest update has been release. Do i need to install oldkeymaster after flashing the full zip in twrp or only full zip and then reinstall twrp zip. Thank you!