yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Lets not complicate this and go off topic... keep encryption/decryption aside.

If all you want is to run the system with a custom kernel, all you need is a working TWRP

Just flash twrp and flash the kernel via twrp. Stock recovery does not support flashing kernels/supersu/mods as its only made up update the device with OTA's so we can just flash OTA or Full Zip with OOS 2.0 recovery.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] vastac13:
That clears things up! Thanks!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Hi [MENTION=6143932]Funk Wizard[/MENTION] ..thanks for your efforts..and for helping us to clear things out...

One more question..

What is the advantage to push decryption vs just using SuperSU and stay encrypted?...

Thanks again
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Let me first start by quoting that OP3 & 3T are encrypted out of the box (as are pretty much all new phones with Marshmallow) Let me also clear that It's not something that OP does deliberately, but encrypted by default due to the new Google standards.

Honestly, you'd be talking about a 3-5% improvement (if that) in read/write speeds on the latest generation SOC/storage... which I doubt you'd actually notice. So basically it all depends on your personal preference. I haven't noticed any performance drops, and these newer devices won't show any considerable speed improvements either.

Its just more secure with encryption, let me elaborate on that. There is a passphrase that is used to unlock the device when encryption is turned on - that is how dm-crypt works as it is symmetric. The reason why you don't see a prompt for it on boot is because this passphrase is 'default' one that both Android and TWRP know about and unlock automatically if it is set and not changed.

To enable the unlock screen on boot, you must set a new PIN/password/pattern in Security & Fingerprint. When you do this, a screen pops up telling you whether you want this PIN to be required to start the device. In this case, the encryption key is changed using a key derivation function using your lock screen passphrase.

When you do this, TWRP also asks you for this passphrase. And obviously, when you do this people can't grab your phone and delete the lock screen key via recovery anymore so its considered more secure.

Lately TWRP has this issue with decryption where it is unable to decrypt and does not accept pin. This TWRP bug was first encountered on Nexus 5X/6P devices and there on more. OP3 was also effected and as there was no official Team Win maintainer no one really cared and users had to suffer. There were some valiant efforts made by [MENTION=3873953]eng.stk[/MENTION] who contributed a lot for OP devices starting with the X > OP3 > & now 3T and till date users have to use his modified TWRP to flash all the beta builds as its the only TWRP which is compatible with beta firmware whereas the official one gives a black screen.

Now with the release of 3T all thanks to [MENTION=5672995]jcadduono[/MENTION] and Team Win who came out with the recovery so early and were able to build a compatible TWRP and i hope [MENTION=5672995]jcadduono[/MENTION] continues to support 3T with further updates making it compatible with future OP releases as the things are soon going to change again with the next release which is based on Nougat and under testing as we speak.

Apologies to everyone if made it too lengthy and off topic :angel:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Thanks...very comprehensive explained..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 954wrecker:
Are you f2fs or ext4?

I'm ext4 now but when I was f2fs it took much longer.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] skeeter123:
f2fs for now....it really doesn't bother me....but, I'm very curious as to why the TWRP load time did not decrease at all after a large amount of files were deleted. When I first rooted it, TWRP load time was about a minute....then, as more files were added, it increased as expected. But, deleting the files didn't bring the load time back down...(this is all on the same device, btw....not sure if this was clear earlier)

I can understand that the load time will increase as files are added, I just don't have a good explanation as to why it doesn't return to original load time when the storage space is back to where it originally was...I'm beginning to think that deleting files really doesn't delete them, just marks them as over-writable to the system...but they really are still there....thus, being scanned every time TWRP loads....

I'm going to update TWRP soon (and keep encryption and file format the same) just to see....then, when I land on a suitable ROM, wipe, change to ext4 and no encryption....because if what I think is happening, as used storage space approaches 128GB, TWRP will take a L O N G time to load! ...and never go back down as files are deleted....:(

Cheers...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] chancex:
I'm follow the step, everything is find, after process, have a problem is i can't use the hardware key (Vol- & Power) into the TWRP, every need command line "fastboot boot twrp.img", this way into the TWRP, that is right? or what step i'm missing? Please help!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] xanthrax:
Switch off the phone then press power, immediately after vibration press only vol up and you'll see the boot menu

Sent from my Darkside of Oneplus 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] chancex:
Thanks a lot, the "unlock and untrust.." warning let me confused, any way can pass that?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] xanthrax:
Nope, there's absolutely no way to bypass that warning

Sent from my Darkside of Oneplus 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mysterio619:
All ones who have Decrypted .....be careful before flash anything stock ......today accidently flashed stock boot.img on decrypted phone with multirom and rebooted ...boom!! got a message saying encrytion was unsuccessful and reset phone button.......luckily i was able to boot to TWRP and weirdly TWRP started asking for password.....I entered default_password and it let me in....now there comes the disaster...All the data was wiped including the entire internal storage :( ..........Luckily managed to get few photos backed up in cloud.........Finally had to sideload Stock rom and reflash everything
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
If we are decrypted we can flash stock boot image??:eek:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 954wrecker:
He just forgot to read step 10 from the first post
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mysterio619:
I was trying to switch kernels ...... Mishap happened in a confusion ?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
I had a close call too recently. Flashed stock boot.img and rebooted while decrypted, but then I realized what I had done and turned off the phone immediately before the boot animation started and flashed a custom kernel. Luckily it worked, I think the encryption process hadn't begun. :angel:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
So if we flash stock boot image and we try to boot we gonna lose data? why?...

Thought that after removing encryption permanent and format data we are free to boot on stock boot image without problem...otherwise why should we force decryption?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Officechris:
The stock boot image will reinforce encryption on boot. If you flash the SuperSU or the no-dm-verity zip it will prevent that.

I'm running non rooted unencrypted Oxygen as internal for multi Rom and all my other rooted roms as secondary. I just made sure I flashed that zip to disable dmverity before rebooting stock OS.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
I thought that flashing no DM verity zip and afterwards formatting data it removes permanent the encryption
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] satanas17:
Hi all,

Am i alone facing issues for downloading latest version from official?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] GiSS88:
Two quick questions so I don't mess up step 8/9 when I get my phone:

If I am installing SuperSU, we swipe right during step 8 and then it will allow us to add the apk/etc to install?

Also, does SuperSU install systemless or regular? Stupid to ask, but I'm interested in playing PokemonGO again, and not sure what I can and cannot do at this point--though I will easily sacrifice playing the game entirely for root, not even a contest here.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
root and twrp are two different thing, you can have twrp w/o root. But if you already have root but can't get back into twrp, then yes flash twrp and get back into twrp for mods if you need other mods. That aside, if you have not update to the latest stock rom to 3.5.3 and still on 3.5.1, you need to update it. I was told by the dev that 3.5.1 have a bug related to bootloader would cause a problem getting into twrp.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
well I ask because it says that if you swipe for mods and do not do the next step you will not be able to boot. Well I am already rooted so SU is already installed. f it I will reinstall SU
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
If you read the TWRP screen, you have three choices, two buttons and a swipe. Obviously changing the language is not going to help you here, and could make things much worse. "Keep Read Only" means you won't be able to write to the system partition. Meaning making adjustment to the system including SuperSU installation won't work.

And no, if you install most app via TWRP, it will normally be regular app, unless it is a custom ROM which the dev intend it to be part of the system settings, or the SuperSU zip has to design specifically to do that. And if you want, you can, just go download the latest systemless SuperSU, but you have to flash dm-verify zip seperately.

---------- Post added at 11:35 AM ---------- Previous post was at 11:32 AM ----------

There is no harm in reinstalling SuperSU if you are not sure.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
So I have run into a problem. I flashed Twrp and now in recovery it asks for a password for mounting. Well I enter my phone password(needed for reboot unlock along with fingerprint) and it tells me wrong password. Also can not find SU in recovery for flash.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hawki:
Sorry if I was misunderstood - actually got TWRP installed, the phones does a quick reboot into TWRP while plug into my PC, I then transferred superSU to the 3T, used TWRP to install it, then reboot the phone.

Phone boots up normally. But when I tried to boot into recovery/TWRP to install Xposed zip, it just goes to a black screen.

Hold the power down, phone turns off, push power button, phone boots up normally.

Make sense?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
I haven't try encrypting the phone yet, but from what it seem, there maybe an issue from deencrypting F2FS, if you look at previous posts you will see other with the same problem as well. This is why I plan to get my phone up and running first, then do a full backup, and then encrypt the phone. I'm in a similar boat as well, since USB-OTG isn't working yet. So be patient, don't expect everything to work on day one.

---------- Post added at 12:57 PM ---------- Previous post was at 12:51 PM ----------

Most likely you are using OxygenOS 3.5.1 w/ bootloader issue. Get into fastboot mode and do step 7 again. Make sure you see it came back and say it flashed 'OKAY'. After that it will get into TWRP (still going to see the warning screen w/ 5sec delay though) and flash the OTA update to fix this problem. You will have to reflash SuperSU again though, but I don't remember if you may need to re-flash twrp again.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
It seems to be an issue with using password different than default, not sure if it might need some hackery in cryptfs drivers rather than device tree or not.

Maybe OS using weird password formats.

I have seen default_password get decrypted with f2fs just fine in testing.

Try this, maybe OTG works here? https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.2-1-beta2-oneplus3t.img

also that build ^ has new f2fs drivers from f2fs-stable, wasn't sure if that could possibly make any difference.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
OK, just got to try toggle OTG storage off and on again, and this is what I see in dmesg|tail.

Not sure if this help.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
try toggling the switch with just the OTG cable in, with both OTG and device in, and with none in...see if different results...

this is strange, the OP3 only had to set boot default of switch to 1 to fix this, and that is what I did in -1-beta2. :(

also check /dev/block to see if its getting added just under something other than sdg1
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] eng.stk:
Don't use upstream updates from f2fs-stable , introduced all kind of issues on OP3 and for sure it will do the same on OP3T.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
So would flashing factory image return all of my bois to stock allowing me to retry and hopefully not encountering this?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
yes, USB OTG works now on twrp-3.0.2-1-beta2. I'm backing up data to the USB first, then gonna try encrypting and see what it look like. Any advise what to look for pre/post encryption, so I can tell you.

---------- Post added at 02:21 PM ---------- Previous post was at 02:06 PM ----------

Yes.

OK, android is an Operating System, like Windows/MacOS. The different here is that in case of Windows, the OS mainly reside in one one big partition. It may have other hidden recovery partition, but it does not need them to function. In android, you have many partition, that store different thing like bootloader, system, modem, data, etc. The true is I don't even know the full detail of how these works, I'm not android dev, I just have relatively better understanding of how things works than normal people. But it look like once you power on an android device, it start with the bootloader, and it will direct you what to go next, eg: system or recovery. Well, if the bootloader is not function properly, then it cannot load the next item in this case the recovery. When you flash the factory image, it depend on what the factory image have. Normally it would definitely rewrite the system partition to fix majority of the android issue and update feature, but if there is a problem w/ other things like bootloader and modem, then the device manufacturer would include a fix in other area such as modem(if there is connectivity issue) or in this case the bootloader. Say if the patch does include a new recovery, then you would need to reflash twrp to get twrp back.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hawki:
On 3.5.1 - you, I will follow your steps today sometime and let you know. As for the OTA update, just download to PC and transfer like I did with SU? The install with TWRP?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] masa86:
I just formated all partitions to ext4. Flashed ota.zip in post #2, booted and twrp decryption works using ext4.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
It succeeded because you didn't have a password set, it also works with f2fs when there is no password.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] masa86:
I had rm -rf instead of formatting checked in twrp settings so flashing ota.zip didn't revert to f2fs. Twrp asked my password it's in log.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
I did not think OTA.zip would touch data partition?

That is very strange... It said:

Password did not match but decrypted drive mounted - continue

Anyways, give https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.2-1-beta3-oneplus3t.img a go.

I updated qseecomd and crypto libs to 3.5.3 OTA versions (yeah, they were slightly different)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tmulhearn:
Can some one clarify point 9, is installing the dm-verity and forced encryption disabler zip mandatory ? I'm confused as point 8 says point 9 is mandatory, but point 9 says if suggesting its not mandatory.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ram4ufriends:
You have to flash either superuser or Disabler zip to avoid bootloop
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] amzad90:
I followed the guide with no problem but after I install SuperSu via TWRP, I installed Root Checker and it says 'Root access is not properly installed on this device.' Does anyone know how to fix this?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Flash the Supersu again and I recommend use the latest 2.79

Sent from Funk Tuned 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] amzad90:
I've got 2.79 and I've flashed Supersu many times but still no luck. Is there any other way to get root?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Try 2.78 SR5 which worked for me when I rooted or u can also try phh supersu

Sent from Funk Tuned 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] amzad90:
Omg you are the best person. My phone is finally rooted because of this!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] satand:
i have updated twrp from 3.0.2-0 to 3.0.3-0 via flashify. now twrp needs a very long time to boot and there is no password needed?!? device is still encrypted. is it working correctly?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Officechris:
Yes, this is normal if your phone is still encrypted.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] reef2009:
Is there a changelog for TWRP v3.0.3?

Verstuurd vanaf mijn ONEPLUS A3003 met Tapatalk
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] paras19b:
Is after rooting my phone i still gets official ota updates
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Probably the integration with TWRP app in the playstore, nothing incremental.

Yes you would however you would have to flash the full zip instead of the incremental. I have instructions on How to in the general section.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] paras19b:
Is after flashing full zip i lost my all data
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
No you would not as it would just be a dirty flash.

I request you to keep this thread TWRP related only and for these update related doubts please follow this thread. Thanks !!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] luusid:
Hi,

My OP3t is about to arrive and I have read that it is best to update to oxygenos 3.5.3 before following the process for rooting. Now that 3.5.4 is out does this method work fine with it?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
Yes, there should be no changes in the rooting method.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Kallu609:
I'm using OxygenOS 3.5.4, TWRP 3.0.3.0 and SR1-SuperSU-v2.79-SR1-20161221223537.zip.

When I try to install supersu .zip file I'm getting error when patching sepolicy

Here's the logs: http://pastebin.com/xxYsPn6h

Any ideas?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] liver20:
Where can download 3.0.3.0? I have 3.0.2-0 build december from twrp.me

Enviado desde mi OnePlus3T mediante Tapatalk
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Kallu609:
https://dl.twrp.me/oneplus3t/
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Use the 2.78 SR5 instead, works on all OOS Versions

From the official TWRP website

https://dl.twrp.me/oneplus3t/twrp-3.0.3-0-oneplus3t.img.html

Sent from Funk Tuned 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] PhantomX:
Whats the changelog for TWRP 3.0.3-0 ?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Kallu609:
That did the trick :) Thanks for the help!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 0007h:
Recovery stuck at decrypting screen

H2OS 7.0 beta1

twrp-3.0.3

Edit: Problem solved, never mind.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
What did you expect? I'm assuming that is new (or perhaps even leaked) firmware and TWRP has not been updated to work with it.

Or just wait for a while, TWRP takes some time to boot up on this device.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 0007h:
Yes you are right. I flashed twrp about 5 times, It finnally worked.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] luusid:
I read on a site that after flashing TWRP the phone can't be bricked and won't get a boot loop that isn't easily fixable. Is this true?

Thanks.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Its actually very difficult to brick oneplus devices, Even in case of no fastboot no recovery just a black screen the recovery tool does the trick.

Go ahead and get your TWRP it actually gives you more functionality than stock recovery and you have a better chance to recover in case of boot loop or a black screen.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] reef2009:
I got the same problem when trying to root.

I flashed http://download.chainfire.eu/supersu-stable and it's fixed.

Send by OnePlus 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ImSerghio:
Hi, i've a problem.

I followed step by step all the differents phases.

I rooted my phone but when i turn on my mobile it remains on the 1+ Logo. Now i'm download again the OxygenOs trying to flash it through TWRP recovery hoping i'll resolve the problem. Any advices? After all can i lock again the oem?

UPDATE: i solved . I 've installed again the oxygenos. Now can i lock again the oem? If i do it, will i loose my datas?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] DrDeeXS:
Hey guys. Been using the leaked One Plus 3T 7.0 ROM for a few days. Today, I unlocked the bootloader , flashed latest TWRP and wanted to try out some custom ROMs but TWRP will not decrypt the Internal storage whatever I do. Tried the "fastboot format userdata" and factory reset command multiple times. Tried setting a pin/password and even tried the pattern lock and set it to ask on boot but it just keeps telling me that password failed. I am at my wits end. Can anybody help me out?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 23Six:
Perhaps flash stock recovery.img and boot.img in fast boot. Then lock and unlock bootloader which will wipe data. Then reflash twrp.img, then your ROM. Wipe data+cache afterwards.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] stokedcrf:
So glad to have TWRP working!

That said, I tried re-locking the bootloader after rooting and installing twrp, and then my phone would no longer go into recovery. Just a black screen with white LED.

I had to use fastboot to manually unlock the bootloader again, and now the phone boots.

Anyone know if we can re-lock the bootloader after installing twrp? Sorry if this is a dumb question!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ImSerghio:
I got the same problem..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mazubo:
NOTE*** I'm on 7.0 beta OOS***

Hi all, I have just unlocked the BL, installed twrp, and have been trying to flash SuperSU and no dm verity zips.

All I see is twrp asking for my password? I enter in the pw I have and everything's it says wrong pw..

I've wiped user data however this wipes the zip files from the phone which brings me back to square 1..

I've read numerous topics however none of them have a definitive answer as to what my next step should be..

I am fully booted into android now and looking for help to decrypt data in twrp so I can root..

Thanks everyone for any help in advance!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] TheSaboteurr:
same here