yashsingh1/xdaforums huggingface dataset:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
So, actually the TWRP is unable to decrypt on Android 10. The main problem is that Android 10 bring a new Keymaster partition and the TWRP is unable to decrypt it, the solution is to make and Android 10 TWRP but actually is really impossible, because android 10 disabled also -eng builds and twrp uses only that one. After some tests I found a way around the problem, that is to use the old keymaster. The real problem is that flashing the old keymaster people should also format data and all times you make a Rom update you will need to flash keymaster in the inactive slot to keep the TWRP is able to decrypt data. For the Android 10 Rom flashing i already did a fix. Now i don't know if i should post a new TWRP with android Q kernel and explain how to flash the old keymaster or wait to find a better solution. I accept advice. I would like to remind you that we are still in a beta phase and that therefore the twrp would be necessary only for those users who want to use the beta
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Adil Aziz:
Well, in my own opinion, I think you should post the new one and give instructions. If you do that, someone might play with it and might find something new even if that would be by mistake. In that way, it might also help you. Cuz you know, users like to experiment allot. So who knows, maybe some experiment might work ?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
With old keymaster there aren't problems
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] kumar akarsh:
It's not like we have custom kernels for OOS 10 yet that we need to flash or anything. most of the mods are magisk and that is perfectly up and running. And as far as I know 10 custom roms work just fine with available twrp as well. So I don't see any reason to rush things up. It's not like we are missing out on anything(yet).

---------- Post added at 11:55 AM ---------- Previous post was at 11:53 AM ----------

yes I did. Booted back to bootloader when I tried booting into recovery
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Adil Aziz:
Well then I think you should post it. Allot of people do not have any problem in formatting data. So i think it's good.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jaythenut:
I'm thick what's the command for that ?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
Then try this one...( On stock OB 1)

https://androidfilehost.com/?fid=1899786940962615363

on fastboot run the batch file ..

Reboot to OS when is ready

You should have root & twrp
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] kumar akarsh:
nope. With magisk installed I can't even boot into stock recovery. So TWRP is just a distant dream. When I flash back the sotck unrooted boot img then I can boot into stock recovery but even from there I have failed at getting twrp to work.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
Working for me...

I've run the batch file

Rebooted.. install magisk manager.

Reboot to TWRP

Twrp decrypt , reboot multiple times to see if twrp sticks
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] alp47470:
I think you should post old keymaster with all instructions. We would like to definately try it.

(even i personally format my phone everytime i change my rom) so that's not the problem in my case.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Timmmmaaahh!:
fastboot flash boot_a magisk_patched.img

fastboot flash boot_b magisk_patched.img

fastboot reboot
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] jaythenut:
Thanks bud I'll try when I get home
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Timmmmaaahh!:
If you, our esteemed TWRP supporter, wait for a better solution, it'll only delay progress in finding one IMHO. Just clearly mention that data loss will incur (even though people should realise that data loss with flashing is always possible).
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] xstefen:
I would be interested in digging further into this. Google's slow choking off the head of the custom scene is annoying and sad but we will always prevail. I can contact you in TG, we have a pretty good 6t Dev group also investigating this. Thanks for your efforts
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] mauronofrio:
3.3.1-20 fajita TWRP:

Fixed the problem of Android 10 Stock Rom Flashing;

Made a new Q version, you can directly flash it in boot partition if you need of it;

Decryption still not work on Q.

TWRP 3.3.1-20 Pie Unofficial by mauronofrio

TWRP 3.3.1-20 Q Unofficial by mauronofrio

TWRP 3.3.1-20 Unofficial Installer by mauronofrio

Update:

If you want to be able to decrypt on Android Q too, you have to flash OldKeymasterFlasher.zip . I want to remember that this is not a safe solution, i'm looking for a better way.

If you are coming from android Pie you need to flash it after flashed the Android 10 update but before reboot the device (remember to flash installer and magisk also)

If you already have Android 10 Flashed you need to format data (If you don't format data the device will not start), flash the rom, flash OldKeymasterFlasher.zip ,twrp installer and magisk.

Remember if you want to be able to decrypt data in TWRP al time you flash a new update you have to flash OldKeymasterFlasher.zip before reboot

Important:

If you forget to flash OldKeymasterFlasher.zip it will not be a big problem, you will only be unable to decrypt in TWRP.

OldKeymasterFlasher.zip
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
Are you using the Keymaster work around, or are you saying you got both TWRP and Magisk to work on OOS 10 without the Keymaster?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
3.3.1- 8 twrp

Obviously old keymaster..

Without the work around
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DarkSJ1998:
I suppose you did a format data after flashing OOS 10, that's why you have working decryption on Q.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
Nope...

You have to format data if you install the 3.3.1- 20 twrp

I'm on 3.3.1-8
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DarkSJ1998:
So you mean to say that you just moved from Pie to Q & somehow managed to get TWRP v3.3.1-8 & Magisk installed, you didn't do Format Data once & decryption works for you in TWRP? :/

There are some people here who were saying they see garbled files in TWRP file explorer.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
Well it's not obvious because the old Keymaster IS the work around to get TWRP decrypting on And10. You're saying you've taken a different approach to get it working than Mauronofrio has, which would imply you're not using the Keymaster he has provided.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
Local upgraded from latest pie beta to OB1 android 10

Boot to rom & set up

Reboot to fastboot & I've run the batch file from this rar

on my pc

https://androidfilehost.com/?fid=1899786940962615363

Reboot to os and install magisk manager

reboot to twrp and flashed magisk 20.0 to be sure got rooted

Reboot to system & multiple times to twrp to make sure it sticks
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
So once again you're LITERALLY using NO Keymaster...

Ever... Anywhere

So you're using an entirely different method than the stated "only known way" to get TWRP decrypting on OOS 10 by the developer of TWRP himself.

Do you see what I'm getting at?

[MENTION=7100563]cultofluna[/MENTION] you're not even the person who came up with this method, I literally just went and commented on the original poster of this idea who did some "tinkering around" with boot images and Magisk until he found out what he did worked...

So what are you doing? Hoping to be mysterious and cryptic?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] anthony10126:
Is this possible?? Has anyone else tried this method?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] cultofluna:
This rar file ( with patched twrp & boot img )

Got it fro this thread

https://xdaforums.com/oneplus-6t/de...ted-boot-img-oneplus-6t-t3986585/post80621755
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] AntoRei:
Hi, now I'm stock on beta 1, only unocked bootloader. Get lost data if I flash you'r boot img?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] madsponge26:
Anyone confirm this method? Some screenshots?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Rickydwi:
Is the batch file from the rar files is the key method to get twrp working? No data loss ? Can someone try this please? I had important data i dont want to lose :(

Really excited if its true
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DarkSJ1998:
The actual thing is the boot.img that sits inside ths *.rar. the *.bat does nothing but just flashes the boot.img on both the partitions. And also, that *.bat file has an 'IF' whether you want to wipe data or not.

The modified boot.img contains TWRP v3.3.1-8 as well as Magisk v20 root in it.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Rickydwi:
Have u tried it sir ? So its possible to had working twrp and magisk in OOS OB10 ? No data loss as well if we choose not to wipe? If its true i will flash it right away myself
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DarkSJ1998:
I'm still on OOS Pie OB. I'd suggest not try it right now if you don't have backup of all your data.

Let someone else confirm it.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Timmmmaaahh!:
I passionately agree! Big G and manufacturers seem to loathe custom development but also seem to forget that Android and their devices would literally be nothing without their community. Google's most useful product would either have died a quick death or it would still be dangling behind iOS. XDA and communities alike are the perfect breeding ground for revolutionary ideas that shape the market. Come to think of it, we'd probably all be on Windows Mobile if Big G didn't play the 'open card' back in the days.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
EDIT4: Streamlining the instructions. I just started from scratch to double check for you guys -- everything is working as intended. Making multiple sets of instructions, depending on where you are in the process.

Uninstall all Magisk Modules

Install A10 Beta as local upgrade

Install Magisk using "Other Slot (After OTA)"

Reboot

Flash TWRP ZIP in Magisk Manager's Modules tab

Flash Magisk using Direct Install method

Reboot

Install A10 Beta

Pull boot.img from fastboot ROM or payload.bin

Install Magisk Manager

Patch boot.img with Magisk

Fastboot flash Magisk rooted boot.img

Reboot

Flash TWRP ZIP in Magisk Manager's Modules tab

Install Magisk with Direct Install method

Reboot

If the latest TWRP.img can be booted with fastboot, this is the easiest fix:

Download TWRP.img

Fastboot boot TWRP.img

Flash Magisk

Reboot

Flash TWRP ZIP in Magisk Manager's Modules tab

Install Magisk with Direct Install method

Reboot

Again, I don't know if these use the old Keymaster. But I do know that it works. You may also have luck flashing with EXKM or FrancoKM, but I haven't tested those. I'm not sure why these work but flashing the installer with TWRP itself doesn't, though. Maybe [MENTION=4712355]mauronofrio[/MENTION] can figure that part out. Personally, I'd rather try these methods before flashing the old Keymaster zip. If it fails, the Keymaster zip is always there.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] dyval:
The method below is if I'm coming from OB Pie right? Thanks bro

Uninstall all Magisk Modules

Install A10 Beta as local upgrade

Install Magisk using "Other Slot (After OTA)"

Reboot

Flash TWRP ZIP in Magisk Manager's Modules tab

Flash Magisk using Direct Install method

Reboot
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] AntoRei:
I'm on A10 Beta 1 without twrp but with Magisk 20.0 and Magisk Manager 7.3.5 installed with flash boot img patched.

So, now I have to flash twrp.zip in Magisk modules and after, without restart, reinstall Magisk with Direct Install method.

Is that correct?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
Yep, that should be the process for coming from Pie. It shouldn't matter if it's stable or OB, I wouldn't think. I came from Beta.

Yes. Make sure to install Magisk before the reboot or you'll lose root. Then you'd have to boot to TWRP and reflash Magisk, which is just a pain.

For both of you: I tested these methods myself, but, obviously, YMMV. Let me know if it works properly for you.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] OvrDriVE:
ok all i am the one who got twrp and magisk working.

i'll explain exactly how i did it and with which files

i am on a converted t-mobile 6t and yes i have magisk v20.0 installed and twrp 3.3.1-8 by mauronofrio installed and working just as it did on pie

now the files i used. as i have a converted t-mobile device and i cannot do a lopcal upgrade with ob1 i had to use the t-mobile oneclick file to flash the partitions minus thew critical partitions that soft brick the t-mobile device and yes i did wipe data when i did the ob1 oneclick file so i had a clean setup and i backup my phone so i lose nothing. that rar file already contains a magisk patched boot.img, that is the file i used. i was messing around and saw the oneplus 7pro port. figured why not try it since it has twrp and it's an android q beta but works on the 6t. so i flashed the boot.img and sure enuff it booted and i had magisk and twrp. however wifi wouldnt turn on. so i went back and flashed the original boot.img from the ob1 oneclick.rar problem solved but no twrp again. now i figured how did they get twrp on that other boot.img that worked and while i had the 7pro port boot.img installed i noticed it had magisk 19.5 installed and not v20.0, went looking for magisk 19.5 and found it. so back to ob1 oneclick's boot.img i literally flashed the 19.5 magisk zip i had and noticed it had uninstalled magisk all together. but since i was still in magisk manager and was booted with root already i could still access the modules page and install magisk again. but instead of magisk i installed the 3.3.1-8 twrp installer. then i rebooted to see if i had twrp and sure enuff i did. so i flashed the twrp installer again to make sure rebooted twrp and flashed magisk v20.0 and rebooted twrp again which was still there so i booted normal. and sure enuff i had magisk 20.0 installed as well. i setup my fingerprint and rebooted twrp just to see and sure enuff twrp loaded and wanted my password to decrypt my data. i entered my pin and it worked. i then rebooted to recovery multiple times to make sure it had stuck and also flashed multiple files to test it was functioning. once i was sure it worked fine i pulled the boot.img directly from my phone.

now the batch file i used was the exact batch file from the ob1 oneclick.rar. i just deleted everything but the boot.img fastboot lines and the wipe data lines.

and just to clarify i did not wipe data. i just select no when running the batch file.

and thats literally how i got it working.

now on a side note. i dont get why everyone thinks it's twrp that messes up the ob1 boot.img, for some reason i would think it had to do with magisk since when you patch the ob1 boot.img it is what literally removes recovery when it recompiles the boot.img. but thats just me. i could be wrong

either way thats how i got it working.

edit:

i just looked at the img files that are flashed with the ob1 oneclick files and it does flash a keymaster.img, not sure if it's a q keymaster or pie keymaster. assume its an older one as decryption works for me.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ryanfraser38:
I'm a bit confused... I'm on 3.3.1-8 on crdroid android 10, I haven't had any issues. If I update using the installer zip will it work okay or will it cause issues? If I have to wipe data I'll just not install it for now
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
No, the OldKeyMaster is only for OOS. The TWRP images and Installer shouldn't cause any issues. But, from what he said, there's not really any point to updating if you're not on OOS anyway.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ryanfraser38:
Okay, so should I still flash the android q one or the Pie one? Was the Q one specific to oos?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
That part I'm not sure. I'd think you'd flash the Pie one, since Q custom ROMs are still on Pie vendors
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
Well apparently 3.3.1-8 is still being used successfully with Android 10/OOS 10, while 3.3.1-20 seems to be built intentionally in conjunction with using the old Keymaster.zip on OOS 10. In my personal opinion if you're not running OOS (stock) 10 anyways then just stick to predecessor TWRP versions that you find to be working, they aren't hurting anything.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Rickydwi:
So sir just to be clear ur are now rooted with magisk 20.0 and using twrp 3.3.1.8 or which version that works on android 10 now? Thanks for sharing
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
They've said 3.3.1-8 several times, but I'll let them tell it.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
I was on 3.3.1-8, updated to 3.3.1-20 in testing the method. Both work fine on my device
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Rickydwi:
Well i tried this method. Flash twrp zip on magisk manager and before reboot install magisk with direct method

But after that i tried to go to recovery mode i just bump into fastboot mode :confused:

I install twrp 3.3.1-8
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
That's what normally happens with Magisk and 10, in my experience. I wonder why that worked for me, but not for you. Really all three methods are just ways to get from stock to Magisk to TWRP, there shouldn't be any reason why it would differ. Maybe -20 would work better, you could try to fastboot boot the TWRP Q image that OP posted, and flash the -20 installer with it. But then you'd need the old keys

EDIT: I just got a chance to finish reading Overdrive's (the guy who originally posted the fix) message. It does potentially flash the old KeyMaster. Why that would persist after I used a completely stock boot.img and flashed Magisk and TWRP to it, I have no idea. But all methods do seem to suggest the OldKeyMaster being the only true solution.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] clsA:
Same for me I'm never able to boot TWRP I always just end up in fastboot mode

I have tried every combination you posted and it just won't work on my phone ... thanks for all the info though

I have been trying all this with the 3.3.1-20 zip

Magisk 20.0 and the pre patched files from Overdrive
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Causical:
So are you saying the OldKeyMaster is located in the boot.img so Overdrive's method is doing the same exact thing Mauro has done just with a different set of steps?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
Yep, as far as I can tell. It's interesting that it stuck for my device after using a stock image, but it looks like the end result of both is TWRP + Magisk with OldKeyMaster. There are still a few unanswered questions I want to look into for curiosity's sake, but if you want TWRP, Mauro's method is best/easiest/most likely to succeed.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] OvrDriVE:
technically all you need or at least i think is the files i provided, flash it from fastboot. boot normally and install magisk manager. twrp should work fine. i did update twrp via the installer from twrp 3.3.1-8 to 3.3.1-20 and it does update and works fine so either twrp is ok. also if your data is encrypted flash the keymaster zip from magisk managers modules tab. it should work

and the actual process is use whatever poatched boot you want. flash an old version of magisk from magisk managers modules tab, this should downgrade magisk or remove it. dont exit magisk manager. flash twrp "3.3.1-8 or 3.3.1-20 whichever you prefer" you can also flash the keymaster zip to make sure your data isnt encrypted, now reboot to twrp and reflash whichever twrp you flashed before to make sure it sticks reboot twrp and flash magisk 20 zip and reboot normal. open magisk manager and see if it's installed. it should be. now just to make sure twrp is there reboot recovery. if you did it right you should have both. enjoy!

rememberr to remove any security you have set before hand or your data will be scrambled.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] crashnova:
For all the 6T users (especially the converted T-Mobile users) a new thread, better outlined steps and links would be awesome.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] techlogik:
The problem is after flashing TWRP through Magisk, then install Magisk directly, TWRP there is no decryption.

Anyway to get the signature file flashed through the OS and not have any issues?

And whatever you do, don't use ex kernel manager or anything to try and flash the signature file. Your phone won't boot...just had to MSM again back to square one...oh well.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] DREWHAMM974:
Quick question. If I was to come from Pie to Q and install TWRP V20 without the keymaster would I still have to format data? I know decryption would not function
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
Found this out the hard way, too. I was able to get around MSM... Somehow, but had a QUALCOMM init error. Eventually, after plugging it into my kids' mom's Macbook, it just booted to fastboot and I was able to get back in.

That's the last time I experiment blindly trying to figure something like this out without my PC on hand.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Zimty86:
how can i flash the current version in Android q? if I'm only about fastboot flashe Dan is twrp yes encrypted,

I have to flash the installer via Magisk and Dan the twrp img about fastboot?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] ecera:
thought I had it working, but magisk breaks the recovery. In order to flash the image I used the command "fastboot flash boot recoveryname.img" I was already on oos a10 ob1.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] BOSTICK93:
It works perfectly on OOS 10 Beta 1 :good:
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] isoladisegnata:
Anyone has tried this ?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] efex:
I might be wrong, but doesn't that have more to do with slot changes?

I booted twrp through fastboot, flashed beta, oldmasterkey, twrp and magisk. Changed to slot B and "rebooted to recovery", and ended up in bootloader. fastbooted into twrp, wipe data, and flashed rom, oldkey, twrp and magisk again.

Magisk did not appear after booting into the ROM, so I had to reboot to recovery and flash magisk again. TWRP still remains though, absolutely zero issues after this.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Rickydwi:
how flash the oldkeymaster.zip ? whats the command ? adb sideload ?
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] PokemonTotalWar:
Instructions are in the post. You have to format data, flash the OB1 zip, flash OldKeymaster, flash TWRP, then Magisk.
[OnePlus 6T  ROMs, Kernels, Recoveries, & Other Dev] Rickydwi:
im confused man , idont have twrp so cant flash from recovery. I just format my data and try to flash twrp but still failed unknown command. Now i cant even restore my backup from titanium backup cause it just stuck at 0% progress i think because android 10 r/w systems