yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Look just 2 posts above yours. Or a few posts above that. Reading helps.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] zige:
I would be happy to give you logs if you could tell me how to do it without booting twrp.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] EuEra:
What's the best way to install the newest version of twrp when i already have twrp installed?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] the_rooter:
Log or it didnt happen
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] c_86:
logs attached

this was for version 3.0.3.0 backport f2fs
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] c_86:
logs for version 3.0.3.1 attached
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Fastboot as explained in op. Optionally, if rooted, you can use the TWRP app to flash from inside the running system. You don't need a PC in that case.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
Go to TWRP, click on install > install image , and flash new TWRP image to the recovery partition. That's easier than the other methods if you already have TWRP installed.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] the_rooter:
Easier doesn't always mean better
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
What's wrong with flashing the image from TWRP itself?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] the_rooter:
OK let's say u do that. I can Guarantee there is quite a few on here that don't know how to do adb/fastboot. They want the easier way and what happens if the easier way and be used but only adb/fastboot.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] B3501:
People shouldn't be on here if they don't know how to use fastboot, although I think you're right .
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] the_rooter:
I'm not really saying there isn't anything wrong with using twrp, but I seen many times that users don't know adb/fastboot is something goes wrong using the twrp method. For me I use adb fastboot for flashing TWRP. No reason to rush flashing something. Wait to get home and flash then if something goes wrong u can be there to fix it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
no i want logs from https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.3-1-unified-test7-oneplus3.img
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] c_86:
just to follow up on our IRC conversation. I am h4X6 and i got you the logs etc on there early.

Thanks for all your help on the channel!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
I uploaded 3.0.2-1 (non-beta) to fix OTG and encryption. If there are issues I also added logcat and kernel logger to it to help diagnose them.

I would also like to know if ADB/MTP are working on 3.0.2-1 since no one was willing to give me feedback on that earlier.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] azulay4u:
Thank you, works great :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] CB620:
Everything works now
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cousinit99:
Ok, there's something strange in the neighborhood. 3.0.2.0 (non-beta) decrypts just fine, but 3.0.2.1 (betas 1, 2, 3, and non-beta) does not. [MENTION=5672995]jcadduono[/MENTION] , recovery.log and dmesg.log are attached.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cousinit99:
MTP protocol appears to work okay, but since I can't decrypt with 3.0.2.1, the internal storage "drive" doesn't show up when MTP is connected..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Yotachambers:
I wiped internal storage (not format data) and it wiped all my backups I've made. Now it's refusing to boot at all. I was having an issue with Bluetooth and decided to reset everything so I restored my unmodified backup, wiped data, caches, and internal storage (but not system) and I've been stuck on the Oneplus boot screen for 20 minutes.

Is there a factory image available somewhere??
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
If you are able to enter Fastboot there is factory recovery a page or 2 back and the full 3.5.3 zip on page 1
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ariyax:
thank you!!!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Black_halo:
Has anyone bothered to try to flash a oneplus 3 rom on the 3t?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Yotachambers:
Thanks, I didn't catch that previously.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jemeljsh:
I am little confused in respect of this filesystem issue (F2FS and EXT4) that you raised early in this, considering that 3T has its OxygenOS running in F2FS.

Considering that I really like the overall performance of OxygenOS 3.5.1., especially the battery life, I wanted to install TWRP and do a full back-up before I install newer OxygenOS (3.5.3. or whatever comes next) or custom ROM whenever such is available.

Let’s say I do a Full Wipe of Data before I install new custom rom -> Does the file system change to EXT4 or it depends how the particular ROM is made (its filesystem)?

What happens if I do a Full Wipe of Data and then restore the backup I made of my stock OxygenOS 3.5.1. running in F2FS -> Will it automatically revert the filesystem back to F2FS in case for some reason system’s file system has changed to EXT4 or do I have to do a full format (which would change the filesystem to its default (F2FS) before doing restore of this backup?

A lot of questions, but I am confused and basically not sure whether I will or will not mess up the filesystem by doing regular stuff like installing new roms, wiping data and restoring older backups..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tdamocles:
jcadduono,

There was reports of the efs backup not being correct in the op3 twrp at one point. Is the 3t twrp backing up the efs correctly and will it restore it correctly if needed?

---------- Post added at 05:37 AM ---------- Previous post was at 05:33 AM ----------

I don't think a straight flash will do it. The file system seems to be a little different. I can't seem to extract the modemst1, modemst2 from the same area.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
1. jcadduono has already fix the default data wipe in the latest TWRP to F2FS, so this shouldn't be an issue.

2. as far as I understand, the TWRP backup is not a file based backup, it backup the whole partition and that include the filesystem also. Meaning, even if OP3T default is F2FS, but if you accidently wipe the data as EXT4 and then backup the data, then the TWRP will backup the data in EXT4 form. TWRP will backup your data as is including the file format.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
fs backups are just tars, except image backups which are raw

if data partition, it just does an rm -rf and extracts tar without touching filesystem (no format)

any partition it will format depending on the name of the backup before restoring

so if backup file name is system.ext4.win, it will wipe system to ext4 before restoring

if you rename it to system.f2fs.win, it will wipe system to f2fs before restoring

the name the backup gets is what the filesystem is during the backup

PS anyone who can decrypt on 3.0.2-0 but can't on 3.0.2-1, you are probably still on 3.5.1 OTA with a weird custom encryption key format

i advise upgrading to 3.5.3 OTA asap

if still can't decrypt after that, i suggest using 3.0.2-0 to make a backup of data (TO EXTERNAL STORAGE, OR COPY TWRP FOLDER TO PC AFTER BACKUP COMPLETE!), then install 3.0.2-1 and format data, (copy twrp folder back to internal storage if you didn't use external storage) then restore backup.

this will re-initialize crypto process and it should work for you from then on
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hachamacha:
Hello,

I had some wild epic bunch of stuff here (I just deleted it) that just was mainly about my trying to type a password in when I was asked for it in TWRP first time around. I didn't realize it was about decryption until it said it was decrypting despite the wrong password. OK, enough of that, it soft-bricked me for a bit, but I'm recovered and now would like to know the proper way around that question. I've got TWRP, a new 3.5.3 system installed & fingerprints working, and am rooted, etc. It's all fine and I am about to totally screw it up again ;;)

I guess that's my main question is how to get past the password prompt without anything trying to decrypt my entire storage?

And another 5 minutes later:: I've got supersu working. The only thing that worries me is when I enable fingerprints, and I am asked for a password in TWRP again. So, that is really my main question at this point since it all works, aside from my somehow .. ( ;;) not knowing my own password for encryption. Is there some default password if I don't know it? Or is there someplace I can find it before I try TWRP again?

Many thanks. -- Hash
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ummmmmmm:
edit: nvm fixed it!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] c_86:
Can this be flashed with flashify?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
Everyone definitely should have USB-OTG. Seriously, if you don't have a backup offline, you don't exactly have a backup.

BTW, I got a question for you. Since we are getting Nougat next month and with it FBE. As of right now TWRP have some support for DATA encryption. But I feel like it's a hit and miss. How is thing going to be w/ FBE and TWRP? At the moment, I decide not encrypt my phone, and I was thinking, if TWRP will backup things as is, this would be better than the way it's now. Am I wrong?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
TWRP has FBE mostly supported in Dees_Troy's development branch, although it has only been tested with newer Nexus/Pixel.

It has some weird quirks to it that he's trying to work around, but I would certainly consider FDE more reliable.

The data encryption issues you're seeing right now are due to OnePlus messing with the crypto implementation on OS side. Hopefully when everyone's off 3.5.1 it shouldn't be an issue anymore. A fresh format on 3.5.3 should fix any issues with crypto, so just make a backup onto external media, format, and restore.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ariyax:
If you want to be rooted with SuperSU:

Download the latest SuperSU by Chainfire.

Without exiting TWRP, transfer the SuperSU zip to your device over MTP* and flash it using [Install] in TWRP.

If you want to be rooted with something else or just want a bootable system

:

Download the latest dm-verity and forced encryption disabler zip.

Without exiting TWRP, transfer the no-verity-opt-encrypt zip to your device over MTP* and flash it using [Install] in TWRP.

This will also allow you to use [Format Data] to completely disable your encryption if desired.

Can someone be so king to clarify that for me, suppose to flash twrp, then right after Supersu, do i also need to flash the

no-verity-opt-encrypt zip

?

Thanks
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
I have combined the OnePlus 3 and OnePlus 3T TWRP threads into a single thread for the unified build.

Please visit:

https://xdaforums.com/oneplus-3/development/recovery-official-twrp-oneplus-3-3t-t3543391

I apologize for the inconvenience.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Sorry guys just new on op3t.. coming from lg..

To make it clear best option is.. first install 3.5.3 and then proceed to install twrp and root?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] apascual89:
Yes, that's it. Flash super su before booting up system.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jemeljsh:
No, you don't.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jemeljsh:
Just got OTA update to 3.5.3. My OP3T is ready to for TWRP, root and xposed :good:

jcadduono, please accept a small donation on by behalf ;).
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hachamacha:
I've now installed TWRP (of this flavor : twrp-3.0.2-1-oneplus3t.img ), and supersu after updating firmware to 3.5.3 on the 3t I received yesterday. It installs without problem. I've not touched encryption and I'm very wary of using TWRP at the moment, because it always asks me for the encryption password. When I initialized the phone after this setup, the only password/entry entities I entered were a) a 4-digit pin, and b) 3 fingerprints. They work fine.

When I try to boot to TWRP, I always am prompted for a password immediately. I have no idea what the password is, and have tried my known-to-be-correct PIN , no luck. I have tried hitting cancel, and then only if I agree to mount /system as RO can I enter TWRP without it trying and failing to decrypt everything which corrupts storage.

I've read the entire thread a couple of times, but maybe it was too late at night. I'm wondering if anyone can tell me what step I'm missing, or if I'm trying to do something that can't be done because of what was just said above (encryption isn't fully supported by TWRP yet?) , or if I just should know the password and let TWRP decrypt it. Finally, is there a way to just decrypt the phone while booted and is that even called for?

I'd like to use TWRP which seems fine in every other respect (well, I don't yet know if I can make a backup & restore, so that isn't fine), but am held up by the password entry at the start of each session. Many thanks for getting it this far and thanks for any help you might give.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
try setting a non-pin password on boot in your OS, like, an actual password, this should convince 3.5.3 to rewrite your crypto key in working format

then see if that new password works on twrp

if it does, you can probably set it back to pin and the pin might start working in twrp

if it doesn't, let me know

[MENTION=4750949]jemeljsh[/MENTION] thanks, got it! :) small step closer to my axon 7
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kenzolo:
to sum up I think the correct steps to obtain recovery ,root and decrypted phone are:

-boot the phone the first time without set any password,pin or fingerprint

-update to 3.5.3

-boot into fastboot and run the following command "fastboot format userdata" need to decrypt the phone

-fastboot flash recovery twrp.img

-fastboot boot twrp.img

-flash supersu

-reboot system

My only dubt is...using format userdata command, the file system will remain in f2fs ?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
probably not, dont know where u got those steps from, just follow the thread instructions

format data button on wipe page of twrp will make a blank slate of f2fs for you

also you probably don't need to format it, just boot into 3.5.3 and set a boot password or change your password (an actual password not a pin, etc)

this will rewrite crypto footer with same 3.5.3 qseecomd used in twrp
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kenzolo:
ok thanks
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] benmeroff:
I went ahead and updated to the 3.5.3 OTA before even unlocking my bootloader, and then proceeded to obtain root and successfully install Xposed 87; however while trying to get Viper4Android to work, one of the ZIPs I tried installing resulted in a bootloop, so I went ahead and downloaded the OTA ZIP and installed that with the same SuperSU ZIP I'd originally used (the one in the OP). Now it refuses to boot and just bootloops indefinitely (I waited for a good 30 minutes to make sure) unless I install only the OTA ZIP with nothing else... not sure what I've done but I'd truly prefer not to have to wipe my data if possible (copying my Titanium Backup files took forever), any ideas?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tangsta35:
OK so i finally got everything up and running, here is my install order to get root, xposed, and snapchat working:

1)I downloaded the O+3T all in one kit which made things a lot easier, since you only have to replace a few files

http://xdaforums.com/oneplus-3t/development/toolkit-oneplus-3t-toolkit-unlock-t3507729

2)install O+3T drivers and adb fastboot (look in the toolkit folder)

3)enable developer options, usb debugging, and oem unlock

4)download latest twrp: v3.0.2-1

4a)rename v3.0.2-1-oneplus3t.img to TWRP_recovery.img and replace the one in the toolkit folder

5)download latest OTA: Oxygen OS 3.5.3, xposed v87 sdk23 arm 64, xposed apk v3.1.1, and copy and paste all these to /sdcard

6)using the toolkit select unlock bootloader, [will wipe device]

7)flash twrp and boot into twrp through the toolkit menu

8)once in twrp, slide to make mods, immediately make a backup!

8a)install OTA 3.5.3, reboot and repeat step 2

8b)install snapchat now and login if you plan to install xposed later

9)reboot into twrp and install SuperSU and/or debloater script

10)reboot phone and make sure snapchat still works, then install xposed install app v3.1.1

11)reboot into twrp and install xposed sdk23 v87 arm 64

12)reboot and make sure you have root, xposed, and snapchat!

13)reboot into twrp and make another backup, you may delete the prior backup if you wish (i use this as my default backup since it has working root and xposed)

end results:

Oxygen OS: v3.5.3

SuperSU: v2.78-SR4

TWRP: 3.0.2-1 oneplus3t.img

xposed app: v3.1.1

xposed zip: sdk23 v87 arm64

I hope that helps, if I forgot anything please let me know
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hachamacha:
[MENTION=5672995]jcadduono[/MENTION] :: Thanks for your help. I'll definitely try that next chance and let your know how it goes. --

---------- Post added at 12:58 PM ---------- Previous post was at 12:47 PM ----------

Thanks so much for the help. I don't know why I never noticed the "password" choice in settings, but that did the trick. I'm encrypted and when I enter the password in TWRP, it works fine.

That was greatly appreciated.

Bueno!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jemeljsh:
Just installed TWRP and rooted my OP3T (oxygenOS 3.5.3) following this guide with no issues whatsoever. Thanks jcadduono

Xposed also works (at least rootcloak and flat style bar indicators work, which are actually the only modules I need).
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
did you use the SuperSU from this thread or somewhere else?

You could just use twrp to backup your data, preferably to USB via OTG just to see where the trouble is.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] c_86:
Can twrp be flash via flashify? I know it can on other device but just making sure he can be on this one
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hachamacha:
So finally, the last part of your reply about after getting this password to work and verifying: I just went back and switched back to my original PIN and it all works fine now with TWRP, encrypted, backups, restores, so again, thank you- (in case I wasn't clear, I am using the PIN in TWRP now, not the first password I created that got things moving in the right direction).
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] justibasa:
Should be able to. You can always be the guinea pig and tell us. :good::silly:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] SourPower:
do i need to install drivers for my pc? its giving me "waiting for any device" lol

whats aging mode?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cameljockey1:
Yes you need to install adb and fastboot. But you can go to and get the tool kits that were recently released and do it that way.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] SourPower:
yeah im trying to run the fastboot oem unlock command in the minimal ADB and Fastboot

will check out the toolkit though
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] someone0:
IDK, should be. But it required you to have root already. While most of us get TWRP for flashing ROM, backup and root. So, it won't work coming from pure stock. That app seem to have limited use, but not particularly much useful for most of us at the moment.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] c_86:
I'm already rooted with twrp but I'm on one of the very first version. So just want to flash the latest to prevent any issues since most of the kinks have been worked out
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] SourPower:
thank you everything has worked as according

i forgot to install drivers on pc i think was the cause of delay lol

cant wait for some roms...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] a0b1c2:
Hi,

I've managed to, I believe, soft-brick my OP3T. I should have read all the instructions before starting. :\

After going through the instructions, I ended up in TWRP and could not decrypt. I installed SuperSU, rebooted the phone and I ended up with "Encryption unsuccessful"

I read more and saw I should have installed 3.3.2 (I believe this is it "OnePlus3TOxygen_28_OTA_027_all_1611222319_884473ff95304c30.zip"). I flashed it and still, I got "Encryption unsuccessful" Grr.

I was also getting a pesky warning message saying I should lock my bootloader. So, I locked it.

Now, I am getting "Encryption unsuccessful" and I can no longer get into the fastboot screen. If I press power off the device, and press the lower volume + power on, I get a brief OnePlus logo and the LED displays white. The screen is black. Nothing happens. Feh.

My only recourse seems to be to hold the power off button down for 10 seconds. The LED light turns off. At which point, I can press the power button on and the device starts to boot up ... .to then get jammed at "Encryption unsuccessful."

All pointers welcomed! :)

I'm on Linux. I know Linux/UNIX relatively. Not that it seems to matter much ...

Thank you for reading!

-pablo
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
Wow.. all I can say is.. unlock your bootloader, do a full wipe, and start over. I don't believe you need to decrypt to format everything and start over.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Notor1ouS-:
just for better understanding... :

after flashing recovery, its always recommended to directly root, right? otherwise you get a bootloop.

what if i decrypt the phone, before i flash recovery? (decrypt via toolkit)

it would reset my installed rom and i dont have to worry about bootloops?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ram4ufriends:
I decrypted using fastboot format command...and then flashed the ROM again...and SuperSU...No bootloops
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kenzolo:
dm-verity and forced encryption disabler are already included in supersu.zip, so to decrypt you can flash supersu and then format data ;)

this is why in the op is specified to choose only one of the two zip

anway if you format data you will lose root so you need to reflash supersu
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] a0b1c2:
Thank you for responding.

Unfortunately part of my dilemma is I can no longer get to the bootloader. I've even tried "adb reboot-bootloader" but while I can see the device on my computer, "adb" says "error: no devices/emulators found"

In my original post, I mentioned if I hold the 'lower-volume + power on' button, I get a brief flash of the OnePlus logo, then the screen goes black. The LED shows white. :(

I'm scouring the web to find a way to get into the bootloader. Feh.

Thx!

-pablo
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
You said you can still get into TWRP. Does formatting data in TWRP without unlocking the bootloader work? I think it should.