yashsingh1/xdaforums huggingface dataset:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ALYSKY:
So what to do to flash xXx magisk rom?

1.Install .img file

2.Install .zip file

3.Flash magisk

4.Flash smurf kernel

5.Flash xXX rom?

---------- Post added at 12:16 ---------- Previous post was at 12:16 ----------

So what to do to flash xXx magisk rom?

1.Install .img file

2.Install .zip file

3.Flash magisk

4.Flash smurf kernel

5.Flash xXX rom?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] gege0202:
hi,

when i do a backup, before it's mandatory to remove pin code, fingerprint and facial recognition? for the restoration to work?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] groovemetal81:
First off thank you for this guide, I'm new to the OP6t coming off a Nexus, it's quite different! I was wondering: I followed the first set of instructions using the flash recovery ramdisk method, this makes TWRP permanent correct? There's no need to flash the installer zip after every ROM correct? Thanks
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] groovemetal81:
Ok thank you, I started to read up on the A/B retention in GitHub , that's where I start to get lost with the whole dual partition I'm going to flash the latest official full zip, reflash Magisk, but because it's an official OOS it should put it on both partitions correct? (I'm flashing the official in TWRP not through the updater) I'm trying to get off this beta without data loss lol
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] groovemetal81:
Oh ok gotcha so each flash goes to the opposite slot, that makes sense.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Druvnn:
I have been following https://www.youtube.com/watch?v=b1jw0pz8fkc and when he goes to say to move the magisk and twrp-installer to the phone I did so by transfering the file to Internal Storage>Downloads. It regonizes the device as there where I use "./fastboot devices" but when I do "./fastboot boot twrp-fajita.img" it returns No such file or directory.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Tcjr1727:
twrp-fajita.img file should be on the computer your using to flash thru ADB.. and i believe it has to be in the same folder that your ADB file and fastboot program is in.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Druvnn:
I was able to get in, for some reason it was under "twrp-fajita.img.img" and it was causing me problems. However I have magisk and twrp installed now.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] rob_z11:
I tried to send command fastboot boot twrp.3.3.6- fajita, and it comes back with bad command. It says it sent, but remote is rejecting it. Secure boot is the mode in bootloader screen.

Any suggestion on how to get recovery installed.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] aer0zer0:
are you bootloader unlocked?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] wezmeister17:
Anyone able to help. I have latest official 3.3.1 and every time I use a custom rom I get password is wrong when it clearly isn't an my data ends up encrypted. This only happens when I use a custom rom, when I use oos decryption works fine.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jamescable:
[MENTION=4712355]mauronofrio[/MENTION]...any chance of making something like this?

https://xdaforums.com/oneplus-3/one...pment/recovery-shrp-recovery-project-t3954600
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] TENlll423:
Having an issue with encryption.. Never had any issues before..

It happens everytime I flash 9.0.15 stock boot img to set up for a new kernel flash..

Steps

flash boot IMG > flash recovery > then reboot.

recovery > it's encrypted..

I change kernels all the time and never had this happen.

I guess I'm kind of a flash Fein. Lol.

I also tried flashing Magisk 19.3 after flashing TWRP and then rebooting to recovery and it still encrypted...

The only way I can get TWRP to work properly is to fastboot boot TWRP img..

First time I've ever had an issue with this phone (6t) any advice would be appreciated.. thanks ahead of time

Also... I tried flashing Magisk from OTG too..

Didn't work..

I did read through the thread and I see a few different methods.. the method I use has consistently worked from day one. I always update OOS using TWRP method... Maybe something is corrupt. I'm stumped..
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
Flash stock boot img

Flash TWRP

Flash magisk

Flash " new" kernel

Reboot to OS
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] TENlll423:
So rebooting to recovery for it to stick is not needed anymore?

Thanks
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
You can avoid this step( rebooting to twrp) to stay away from encryption issues

TWRP will stick
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] TENlll423:
So glad to hear that..

Your always a huge help. Thanks
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] rob_z11:
Yes sir.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jamescable:
When it comes to kernels...you don't need to flash stock boot IMG to clean flash. Like going from blue kernel to smurf, just flash and go.....when you flash a kernel, it wipes and flashes. Their is no such thing as a dirty flash with kernels lol
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
This is from the OP of the blu spark kernel thread

*Warning : If you come from other kernel or have any issues, you should dirty flash your ROM before flashing blu_spark zip to avoid problems*

Cheers
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jamescable:
Yes...IF you have issues. Most users don't or won't have issues. I have been or ROM and kernel building teams for years. But, do what you like...just like dirty flashing ROMs....IF you have iisues, clean flash
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
Another users already port it...
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jamescable:
Did I miss the thread? I can't find it
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
There is not a thread, search a bit on the sourceforge.net for the shrp
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jamescable:
Found their filed but nothing for fahjta/op6t
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
Hi to all guys this is the twrp with android Q compatibility ( It can be used also on Android Pie).

TWRP 3.3.1-7 Fajita:

- Added Android Q support.

TWRP 3.3.1-7 Unofficial by mauronofrio

TWRP 3.3.1-7 Unofficial Installer by mauronofrio

Actually fastboot boot command is not working on android Q rom ( this is a problem with the bootloader), so you need to flash the installer using Magisk Manager.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
Hi to all guys, I'm working hard to give you the best TWRP as soon as possible and i think i'm doing this good.

Now I want to ask you to support me, you can do this in 2 methods:

You all already know the first one: Donations. Through Donations sometimes i can buy newer devices or a device i'm already supporting to support it better. ( Actually I'm building K20 Pro and Mi 9 TWRP without having them for example). In all cases I don't want you to donate to receive, in all cases I will continue to support this and other devices. In all cases I don't want you to donate to receive, in all cases I will continue to support this and other devices. Donate only if you appreciate my work and have the pleasure of doing it

Donation Link:

[IMG="Donate link"]https://s31.postimg.org/srcv48myj/paypal.png[/IMG]

The second method is starring my projects on github, this part is really important for me because more stars means more visibility and therefore more collaborations. Also in this case i don't want you star all my projects regardless, do it only if you appreciate my work and only for the device you have. Starring projects it's free and to do it you need only of a github account. If you want to star a project, just open it and click on Star at the top of the page.

I will leave you here only the project of this thread:

https://github.com/mauronofrio/android_device_oneplus_fajita_TWRP

https://github.com/mauronofrio/android_device_oneplus_enchilada
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] afr33sl4ve:
Forgive my ignorance, what's the difference between the normal TWRP and TWRP installer? My last phone was an LG G5, and I don't think there were 2 versions like this for it.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Dr. Mario:
Moto G5 used to have a separate Linux kernel partition specially programmed for the TWRP bootable image, which you can lazily flash onto the phone without much harms to it. Now, with dual boot setup on this phone (and older Android phones that uses the UEFI bootloader to load Android OS), you have to use installer to put the necessary software in the boot partition (yes, the same partition you were told to never install TWRP onto, rather for general Linux kernel installation - time have certainly changed), so TWRP is then installed and waiting for you to upgrade something or install the root software like Magisk.

Separate Fastboot TWRP image is basically a self-contained bootable Linux kernel that loads TWRP directly when you do "fastboot boot twrp.img" command to load it, which is a requirement for permanent installation of the TWRP onto the recovery boot slots on the phone.

Just be careful, though. UEFI bootloader on many Android phones since the Snapdragon 820 are quirky and have tendency to brick if you are not careful. Following the instructions to the letter will ensure you don't run into problems. I have wrecked my Google Pixel phone that way before, however I managed to fix one of the corrupt boot slot.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] afr33sl4ve:
Thank you for that breakdown. Next ignorant question... I'm to use the installer variant, yes? Second part to that question, I need to have Magisk handy?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Dr. Mario:
First, download both version of the TWRP, then first reboot your phone into Fastboot (the UEFI bootloader itself) after downloading the installer version onto the phone, then run the TWRP bootable image to install the TWRP installer.

Finally, you can install Magisk if you wish (install the custom recovery first so you don't lose the root, after it's installed, you can install whatever you want on the phone).
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Az719:
Need some help here,

I've installed TWRP and magisk before but then I lost the TWRP cz I installed an Ota update. The question is can I use the twrp installer (since I already have root) rather than using the fresh install method..?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Dr. Mario:
If you have Magisk, you can use Magisk manager to install TWRP then reboot back into TWRP and re-root it (installing the TWRP usually removes the root).
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] maxq1:
[MENTION=4712355]mauronofrio[/MENTION]

not much, bruh: 3F39550020457474F, but i hope this lets you know your work is very much appreciated! cheers! :good:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] david72262:
TWRP 3.3.1-7 made complete backup of all except system and vendor. Backed up system IMG and vendor IMG. Backup seemed to complete but restore failed. Anyone do a backup and restore with latest yet that worked? Just checking was probably a hiccup on my end. Haven't seen any successes or failures mentioned with the latest.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
Hi david, what's the error with the backup? Can you send also a log after your restore goes failed?

adb shell cat /tmp/recovery.log
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] david72262:
Will test again latter today or tomorrow and log it if it doesn't work. Will report back.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] boobteg2:
Can't you upload these files to like google drive or somewhere else where you can actually download them from? The mirrors on that site take hours when the files would only take seconds to download from Drive.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ffejy462:
Hours?! Took approximately 36 seconds...
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
I did a new feature to keep twrp and root after you update your rom (or you flash a boot.img), this new feature is called inject TWRP and you can enable (or disable) it after you selected a zip in the install option. Remember to disable it when you don't need of it or it will create some problems. I will reccomend to don't use it if you are flashing a new kernel or magisk.zip.

Image Explanation:

[IMG="InjectTWRP"]https://i.postimg.cc/D0j8gfmm/Screenshot-2019-09-03-09-22-36.png[/IMG]

TWRP 3.3.1-8 OnePlus 6T fajita:

- Added InjectTWRP function.

TWRP 3.3.1-8 Unofficial by mauronofrio

TWRP 3.3.1-8 Unofficial Installer by mauronofrio
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] oscarmaldonado:
Thanks for this update and everyone of them!!!!!!!
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jibgilmon:
[MENTION=4712355]mauronofrio[/MENTION] I don't see the recent changes on GitHub; is this feature something that could be shared with other groups? It would be phenomenal if custom ROMs with OTA could retain TWRP, for example.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
The InjectTWRP was included on the TWRP source and not in the specific device tree. If you want to use this new function you can find it here:

https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/34892/
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] sronweb:
Backup and restore with last version is working fine for me. Thanks for the good work.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] oscarmaldonado:
Hello everyone, I'm just sharing my last rom update with the new TWRP.

The first screen shoot was taken after the rom update with the new inject TWRP feature checked, the second screenshot was taken once I rebooted my phone to recovery after the rom update. It worked great. Thanks.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] hightension:
Did you backup system vendor, vendor image or did you select even system and vendor before restoring ?

and btw did you remove password before backup or after restoring...(locksettings.db)

i tried to restore once and no luck. maybe my fault, but just to know the right way ....

thanks ! :good:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] sronweb:
I never remove the password. I just deselect System and Vendor.

As is written on Tips on the OP: For the Backups use always "system_image" and "vendor_image" instead of "system" and "vendor".

I hope it helps.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
This is what I got when check my internal from my OP6T from T-Mobile converted not sure what to do?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
Let me ask boot.img and Kernel are not the same?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] TENlll423:
I'm no pro, but I believe the boot img. contains the kernel and other critical files..

A Google search would probably help you out more..
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Adil Aziz:
This means data is encrypted
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] rob_z11:
Did your recovery ask you for password when you went into recovery? Seems like either you are running Q or another version of ROM which was installed using other methods, and booting into recovery gave you encrypted partitions.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] the00guy:
Edit wrong thread my bad
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] schorsch.funke:
I would say you posted this in the wrong thread :confused:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
No ask but I think the same I read a little about partition a/b but seems something is wrong did you know a true method to wipe both partitions and install fresh OOS?

---------- Post added at 05:49 PM ---------- Previous post was at 05:47 PM ----------

All right but this phone is not as OP5T I mean wipe data and done flash no verity zip if want still decrypted

---------- Post added at 05:51 PM ---------- Previous post was at 05:49 PM ----------

Blu Kernel not touch the ROM ramdisk for example
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] the00guy:
My bad wrong thread
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Adil Aziz:
From the picture you posted, it seems you're using bluespark twrp recovery. I had the same thing with bluespark twrp, so I sideloaded this twrp and i was able to decrypt data
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
yes i read this well when i get home i will try all again from scrath before sold this phone :cool: i will try

the flash-all-partitions.bat zip the their TWRP from this guy [MENTION=4712355]mauronofrio[/MENTION] if all works he deserve a nice donation and my respect :good:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] rob_z11:
You could install on one partitions, and using twrp, you can switch to slot B or A, and install the ROM again.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mlock420:
No DM verity needed?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] sronweb:
Since I have used TWRP on OP6t I have never dealed with dm verity.

Perhaps because I use stock ROM but I have no experience with it.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
May I not have much knowledge about this partitions a/b change is like dual boot? Anyway thanks to you and read few things here now in on stock rooted and the correct twrp working with the time I will learn more about flash Custom Roms with this device seems more colplex

---------- Post added at 08:47 AM ---------- Previous post was at 08:45 AM ----------

did you use it?

---------- Post added at 09:14 AM ---------- Previous post was at 08:47 AM ----------

same apply to update OOS? i mean im on 9.0.11 but want update to 9.0.16? and how flash custom Kernel too?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Timmmmaaahh!:
That's the thing! It's like dual boot but it totally isn't like dual boot. It's more like mirrorboot. One partition is the system level backup of the other. They're each other's failsafe. Or something. Don't worry mate, I can't wrap my head around it either.. ?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
Is possible blown all partitions TOTALLY or merge into only one this is good idea for Samsung or LG that every OTA brick it but for OP or Pixels phones......:eek:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
Actually if you could find a way to possibly either split the data partition or create a separate block entirely to have two separate data partitions then we might be able to have a true dual boot device.

The problem is both slots share the same data partition
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
Damn Google is becoming like an iPhone....
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ipdev:
The A/B partition scheme is actually more complicated to explain, than how it actually works.

Switching between A and B partitions (slots) is mostly automatic.

When you install a rom/update, it will flash/install to the inactive (other) slot. On (re)boot it will boot into the new rom/update or (hopefully) fall back to the old if something when wrong.

What the A/B partition scheme was designed to do.

In your case, updating OxygenOS from 9.0.11 to 9.0.16:

Assuming you have download OnePlus6TOxygen_34_OTA_023_all and have TWRP currently installed. ;)

Reboot into recovery (TWRP).

Install OOS 9.0.16 Will automatically installs to the inactive (other) partition (slot).

Install TWRP-Installer Patches (injects) TWRP into both boot_a and boot_b images.

Reboot to recovery Will switch partitions if update install worked.

Install custom-kernel (Root or anything else.)

Reboot.

Here are two links that I hope will help explain.

source.android Bootloader-Partitions-flow - Link

source.android A/B updates-Overview-slots - Link

Cheers. :cowboy:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Shponglized:
Alright, i'm semi confused here and hoping someone here can help me.

I flashed the unofficial Lineage17 build and tried to use the inject twrp feature, it didn't work and now i'm stuck with lineage's recovery.

I read that the boot fastboot command isnt working and I need to use magisk to flash twrp.

the question is how do I install magisk, or twrp, from this position i'm in.

btw that lineage build is clean as heck so far, I don't have any gapps installed though :/ haha.

Edit: disregard all of this. got it going.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Timmmmaaahh!:
That's really useful [MENTION=7280276]ipdev[/MENTION], thanks. It may not be all that complicated until you start messing with it. I tried a clean flash of OOS the classic way (wipe everything, flash and reboot) and it only boots to recovery from that point on, leaving you with an entire mess to clean up. So neglecting the A/B system isn't even possible. This was massively confusing to me, coming from a OnePlus One. Things were so simple back then, *sigh*. I do believe the new TWRP injection feature (kudos, [MENTION=4712355]mauronofrio[/MENTION]!) will provide a great help in this process.

If it's technically possible (anything is with Android, innit?), TWRP could automate the process of handling both A/B 'slots' with just one wipe/flash action. I'm just putting that idea out there. No harm in thinking out loud once in a while ;)

If you're up for it, edit your post again and add the solution. It's always nice for people that encounter the same issue that are searching the thread.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
Thank You for your time to explain that
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DarkSJ1998:
The fact that clean flashed OOS boots into recovery is due to DM-Verity (this is what I could 'deduce' with my experience on my 3T as well as my 6T).

Flashing Magisk solves this issue & the device will boot up fine. ;)
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Mervingio:
So verity not work?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DarkSJ1998:
I myself don't know the exact reason, will have to read it in detail myself.

As far as I know, when the bootloader is unlocked & OOS tries to boot up, "DM-Verity" is triggered which prevents the OS to boot up. Flashing Magisk or Custom Kernels 'fakes' the bootloader status to OOS & allows it to boot up.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Dlind:
Any way to fix decryption not working with a lock screen on stock oos? Besides removing lock pin or pattern. Or disabling encryption?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] brajesh.sharma87:
I am on OOS open beta and want to try havoc OS and then return back to OOS if I dont like it.

So, I am taking a back up in twrp of

Boot

System Image

Vendor Image

Data

and then I will flash havoc in both slots or flashing in one slot is enough? If I want to revert, I will just restore the above back up and good to go?

Need an opinion before I proceed about the process. Been away from xda and these A/B partition seems really confusing for flashing custom roms.

Edit: So here I am, stuck at fastboot. wiped system, art-cache and data, flashed havoc, installed twrp ramdisk recovery, tried to reboot recovery and now it only goes to fastboot. Cant even boot twrp now. can someone tell me what I did wrong here?

Edit: everything resolved, had to use msm tool. Reried flashing Havoc and came to conclusion that nothing bears OOS hence back to it. Anyone runs into this issue, pls contact me for help.