yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jemeljsh:
Well, I want to understand what exactly caused it.

I actually did the same nandroid backup (supersu rooted Oxygen OS 3.5.3., including recovery twrp 3.0.3-0) restore before the one I described in previous post, but then during restore of nandroid backup (supersu rooted Oxygen OS 3.5.3., including recovery twrp 3.0.3-0) I unchecked (Boot recovery), so in that scenariou twrp version 3.0.3-beta1 was left untouched. In that scenario system boot also required password with message "“To start Android, enter your password”,

but in that case I was able to boot recovery (twrp 3.0.3-beta1) with no password

and wipe all data, except storage, and restore my Oxygen 4.0 backup.

Basically re-write of twrp (twrp 3.0.3-beta1) from a nandroid backup which included twrp 3.0.3-0) made twrp to require a password. Now I wonder whether re-flash of current twrp (3.0.3-0) to twrp 3.0.3-beta1) will allow me to mount back storage (decrypt).
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] buatlo:
I used twrp beta 1/ 3.0.3.1 with N. 4.0.1 and got message 'unable to mount storage'

does anyone fixing that?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Istvan_86:
Hello,

I have the same issue, after reboot into TWRP and enter my password, I see what you can see in the screenshot that I provided. What can I do?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] the_rooter:
I'm not complaining and I don't mean to make it come off that way. I'm just noticing other day the same thing. Sorry, enjoy the work you do. Just trying to help someone out to downgrade. I hope you didn't take offense on it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] buatlo:
yup same with me...

if I put wrong password twrp is gone back to default opo then I must re-flash

event previous version the problem same... Hopefully next can be fixed
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mumapizza:
Maybe this will solve issues from [MENTION=4898097]arter97[/MENTION] http://www.arter97.com/browse/op3/AOSPA/
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] buatlo:
may I know what the issue?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] FishyFing:
What's this dm-verity error everyone keeps going on about? I clean flashed OOS4 along with dm-verity, and the only "error" I get is a screen on boot saying dm isn't in permissive mode. I can still make modifications to the sys partition, so I just ignore it. It's nothing to be worried about.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] myfreexp:
I'm on OOS 4.0.1 Nougat unfortunately and urgently need to revert to OOS 3.5.4 MM. Phone is encrypted (but password currently not set) and not rooted, bootloader unlocked, stock recovery, tried to flash OnePlus3TOxygen_28_OTA_029_all_1612131737_17e7161d2b234949.zip according to => this instruction from OnePlus, but to no avail (sideload always stuck at these "famous" 47%).

So therefore TWRP seems to be the last resort, but the more I'm reading in this thread, the more I'm uncertain and confused. Sorry for some noobish questions:

Will a downgrade from 4.0.1 Nougat to 3.5.4 MM work flawlessly if I follow the steps in post #1 of this thread, even if the phone is still encrypted and not rooted? For now, I'd like to leave it this way.

I've read a lot about encryption/decryption (also in the OnePlus forum), with/without password etc., but I still don't get it. Why should I want to have an unencrypted phone, what exactly is the advantage?

If the phone is encrypted, is it a good idea to not set any password during the downgrade process, or doesn't that matter at all? I'm asking because I've seen posts that TWRP may ask for a password even if no password is currently being set, or it doesn't accept the password if being set, this all confuses me.

If I do not set a password during the downgrade process, will it hurt if I set one after a successful downgrade? Will TWRP be able to handle this?

Has anybody here done this downgrade successfully already?

Last but not least:

How do I switch to ext4 and in which step of the procedure in post #1?

TIA, any help appreciated.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jemeljsh:
SOLVED.

Reflashed TWRP from 3.0.3.-0 to 3.0.3-beta1 and I am able to access storage through TWRP ;) No longer does it (twrp) require password. Wiped all data, except storage and restored Oxygen OS 4.0 backup I had made before., but beware of my particular case as I have described all of the steps how I get there (with encrypted data) in the first place. This might help probably only in alike scenario.

Thanks, jemeljsh. Very helpful :D
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Uumas:
Can I take screenshots in TWRP
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jemeljsh:
Yes you can. Vol. Down + power button
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] myfreexp:
As there was no response yet, I took the risk and went on w/o any assistance. Now I can answer my question above already with "No." :(

Reason: I can't even get TWRP (3.0.3-1-beta1) to work. When I do this...

...I don't reach anything. The flash seems to work well, but after "fastboot boot twrp.img", I'm just seeing a sort of TWRP intro screen forever. At the same time, a window in Win10 pops up saying a device is being installed (see attached). Also this window would be staying forever, unless I cancel it.

After cancelling it and pressing the power button for a few secs, the phone boots normally. Again booting from there into recovery brings me to the stock recovery. :confused:

What is also confusing me is that in => this instruction the second command after "fastboot flash recovery twrp.img" is not "fastboot boot twrp.img", but:

Which is a contradiction to the command "fastboot boot twrp.img" above. So what's the right one...? (BTW: Using "fastboot reboot" brings me back to stock recovery instantly, I don't even see a TWRP intro screen.)

What am I doing wrong...?

Ah - what I also don't understand on http://teamw.in/devices/oneplus3t.html, is this:

So not all 3T devices are using the same key combo to enter recovery...?! Google didn't give me any information if my 3T may require a special/different key combo.

But even if it's the usual one (Power + Volume down), how can I do a "fastboot reboot" and the key combo at the same time? And why typing the command "fastboot reboot", if I'm using the key combo anyway? :confused:

Plus that this is not mentioned in post #1 of this thread at all.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] B3501:
To flash back to 3.5.4 you had to adb sideload through TWRP. Try flashing stock recovery and then using the up and down keys in the bootloader to reboot into recovery. Then flash TWRP again in the bootloader and use the up and down keys to go back into TWRP and adb sideload 3.5.4.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mcdachpappe:
[MENTION=5365221]myfreexp[/MENTION]

if you want to downgrade to 3.5.4 or whstever build why dont you try the unbrick fix from harris? it worked for me well in the past.

after the successfull flash you end up on 3.5.3 and can choose to what version you want to upgrade. in my opinion its more simple than the things you tried so far
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] myfreexp:
I'm not aware of it, have you got a link?

Nonetheless I'd like to know how to install TWRP correctly.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
DELETED

Found the answer aha
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mcdachpappe:
sure ill do the search for you cuz i got so much freetime

https://xdaforums.com/oneplus-3t/how-to/unbrick-unbrick-tutorial-oneplus-3t-t3515306

why dont you mail me your phone and ill flash everything for you as well?

dont know what you want to hear, the first post of this thread describes the flash steps quite simple
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
[MENTION=5365221]myfreexp[/MENTION]....After you fastboot install the twrp...You type fastboot boot twrp...Then probably you get the twrp screen and you gonna stuck there....Hold the power button until the screen turns out and then immediately press volume down ....Twrp splash screen will reappear but if you going to wait a little bit it will boot....
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 954wrecker:
[MENTION=5672995]jcadduono[/MENTION]

https://github.com/TeamWin/Team-Win-Recovery-Project/issues/749

Can this permission issue be fixed? It has erased my backup USB otg storage a few times. If I fix boot.emmc.win permissions in twrp it copies fine, but if I forget it causes big problems later on.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] myfreexp:
Thanks. I see the subtle irony, but indeed I would consider to come down to Frankfurt if nothing else will help (and pay you a fair amount, of course).

BTW: Of course I did a Google search for "unbrick fix Harris" (as I didn't know that you're talking about an xda thread), but didn't get any matching result - at least not on the first 2 pages.

I've read the whole thread, and many folks seem to have problems with this solution as well (mainly driver issues). Given the luck I have, I'm pretty sure that I will run into similar problems. I've also seen many questions from users that have not been answered. For instance step 4. (pressing Vol up "while connecting the device with the computer") is not clear to me. Pressing Vol up when the phone is switched off should simply do nothing, right...? But this is not the only thing that is unclear to me.

Anyway, we'll see as soon as I'll try it this way...

Yeah, but as I explained in detail, it doesn't work for me this way. Especially I'm still confused about the contradiction between post #1 of this thread and => this procedure of the same author (the second command is different).

I still hope that somebody will respond in detail to the questions I raised in my post. In the meantime, I'll try the several hints that have been posted here. But if one of these hints should really work, then they should make it to post #1.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] B3501:
I do feel with this phone it's very much trial and error, it's certainly no Nexus in terms of ease of flashing Roms etc.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] 954wrecker:
But this ain't no turd of a snapdragon like the other nexus have to deal with
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Hi there.

First of all, there is no error in the instructions. Just different ways to achieve the same. The one instruction brings you back to your system, the other brings you into the recovery.

Secondly you would do yourself and any forum community a big favor if you would spend more time into detailing the error. In this case specially the output of the commands.

Since I can only guess, and here it's easy, it can only be three things.

- your unlock didn't work. Did you wipe your data in the process and get an unlock warning every time you power your device up?

- flashing a recovery also does a basic sanity check on the file. Did you make sure the file is correct by check md5, downloading it again or trying to flash another version of recovery? See how helpful more information about the error would be here?

- windows. Windows is a permanent source for troubles. I never use it for flashing or modifying phones. Errors can happen in so many areas, it's incredible. Double check your drivers and install instructions.

If you have any chance to boot a Linux system, you don't even need drivers there.

I am living in Detmold, Germany, btw. Maybe that's around your corner.

---------- Post added at 05:25 PM ---------- Previous post was at 05:19 PM ----------

Honestly? It's the best you can get and very similar to nexus. Unlockable from the start without any vendor codes or hacks. And also you don't void warranty when unlocking as with all other non Google devices.

The fact that the phone is less popular than a nexus and therefore has less developers and helping users cannot be credited to the phone.

Apart from that, it's pretty much standard Qualcomm handling. Nothing new really except dm verity.

the most open non Google device I know about

---------- Post added at 05:30 PM ---------- Previous post was at 05:25 PM ----------

A last thing and the reason I came here:

I got my recovery somewhere from the comments here shortly after 4.0 release. Is there any (semi) official TWRP build yet, that supports the new encryption scheme? My TWRP works brilliant with my device, still I don't know anything about it's source.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] B3501:
I've got it working fine for me, it took me one evening reading through posts and flashing /DM verity errors to fix everything. The Nexus was literally flash and that's it though. This phone is fine as long as you have some knowledge of what's going on and read up on the situation in terms of current flashing.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
[MENTION=5672995]jcadduono[/MENTION]:

Perhaps you may consider to put something like this to OP:

When making a backup - especially if you want to switch oos versions - set passphrase (pattern, pin, password) for encrypted /data to NULL.

Restore a rom - espacially if you switch oos versions - always with the same twrp-version you generated the backup with. Before every restore reset your fs-encryption-password to NULL.

If you have a mismatch between twrp-version and/or passphrase you will not be able to use the restored rom.

If you restore oos3 coming from oos4 with twrp-3.0.3.0 you need to reflash the bootloader - or simply dirty flash rom without reboot over your restored oos4.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kcajith:
I have been reading all along and unable to find an answer.. googled and still it's not clear..... I bought oneplus 3T a week ago and updated to nougat the same day.. Now i want to flash TWRP and then root.. How do i do that without facing any encryption issues or TWRP password issues?.. Next question should I go ahead with the procedure is page - 1 with TWRP 3.03 or should I wait for next TWRP version to be on safe side?..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Only some unofficial beta TWRP versions work with 4.0 encryption so far.

Official TWRP only works without encryption or with encryption of old oos 3.x

Don't ask me where I got my TWRP which runs flawless. It was one comment in this thread, linked from Reddit.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] igotdez:
Search for post 550 on here and there should be a link to download the twrp 3.0.3.1 beta 1
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kcajith:
Thank you so much.. its much clear now and I will wait till I get official TWRP that works on encryption with OS 4.0

---------- Post added 12-01-2017 at 12:06 AM ---------- Previous post was 11-01-2017 at 11:55 PM ----------

Thanks for the pointer. Let me take a look
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
You can consider the beta official, I maintain them both and it's built from official sources, I just haven't made a release on twrp.me yet because I'm trying to think of a better way to approach this.

I am considering adding a startup script to TWRP to pull the encryption libraries from Android system to support both OOS3 and OOS4 rather than just OOS4, but I might just release 3.0.3-1 and tell everyone on 3.0.3-0 to stick with what they got. ;)

You can check your log for the build host, or even cat /proc/version. jc@westerley (killjoys, build.nethunter.com) is me, as is jc@gallifrey. (doctor who, my personal pc), oh and so is jc@sateda (stargate, my...spare dedicated server?)

If it says jenkins it was probably built on TWRP jenkins (any build that shows up on twrp.me)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] derdjango:
Thank you for your efforts, much appreciated!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Sorry, I didn't realize it's from you. Got to that recovery originally from a Reddit post, must have missed it.

Way way better, I always thought I use a recovery of unknown origin.

Cheers mate, thanks for this
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mani3c:
I keep getting stuck on the TWRP screen trying to decrypt my storage.

I updated to 4.0 unlocked my bootloader

I run these commands

It asks me for my password and once I put it in it gets stuck

I already changed my start up password, ive removed it all together. I updated my drivers and I keep getting stuck. I'm trying to install 3.0.3-1-beta1

after trying for several days and many hours. I'm finally seeking help
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
are you sure you are on the 4.0 release and not a 4.0 beta leak thing? i don't know why else qseecomd would get stuck
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mani3c:
yea, I did the official update when it released. I can't figure it out
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kcajith:
Ok i have downloaded the TWRP 3.0.3 beta-1 and before flashing should I setup encryption password in lockscreen settings or should it be set to none?.. I am on OS 4.0 and on stock recovery currently.. did not flash any older TWRP versions since I bought this oneplus 3T a week back.. My goal is to flash TWRP and root device
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Try to install 3.0.3.0 first...And then 3.0.3.1 beta....
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
Kernel sources will only be released once the OTA roll out is 100%

Right now the rollout has not officially started in India which holds over 30% stake in the global rollout. Thus it will take time
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Whatever you like the most. The only difference between beta and non beta is, if you are encrypted, decrypting data partition works. So if you like encryption, go for it. If you don't, leave it away.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kcajith:
Ok. Then I will follow the below steps and i am on OS 4.0, Stock recovery. Request you to kindly confirm and correct me if i am wrong somewhere.

1. Copy SuperSU 2.79 flashable zip to internal storage.

2.Encryption password has been set in Lockscreen-> Password. This password is alphanumeric

3. Enable OEM unlock in developer options

4. Unlock the bootloader using fast boot method.

5. Restart the device and verify to make sure enable OEM unlock is still ON

6. Get into fastboot and flash TWRP 3.0.3 Beta-1 recovery using fastboot method

7. Swipe right for the message " allow system modifications" which will trigger dm-verity

8. Enter the encryption boot password to successfully enter TWRP

9. Through Install option lookup for SuperSU 2.79 zip file in your internal storage and install to root.

10. reboot the system and enter encryption password to successfully reboot

11. Check if properly rooted via root checker.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Sounds right overall. I only use a long numerical passphrase, but alpha numerical should be the same. Do remember though that copying su on the device first won't work, since unlocking will always fully wipe your data partition, including all data in your emulated sdcard, all installed apps, all settings. But you can upload su to your phone while in recovery or use the adb sideload way. Both achieving the same.

Where did you read btw, that TWRP installs dm-verity? I always wondered why I didn't have to install it and all went fine. This might explain it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kcajith:
Thanks for a quick response. I understand unlocking will wipe the data and i have to copy the SuperSU zip while in the process. I am think i will copy SuperSU after unlocking the bootloader while i am inside the OS 4.0.

Regarding TWRP installs dm-verity, i am referring to page-1 of instructions in this thread and its mentioned this way in point -8.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
You don't need encryption password to enter twrp..( 8 )...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
[MENTION=5672995]jcadduono[/MENTION], are you aware of an weird issue I just stumbled over again at Reddit?

If you have TWRP and root installed and still try using OTA - for example from 4.0.0 to 4.0.1 - not only will the OTA fail (obviously), but also you are stuck in recovery. No matter what you do, your phone boots to recovery.

Only solution is flashing stock recovery, booting to it once, let it fail the update which is triggered automatically and later flash TWRP again.

In other words, OTA sets a flag that let's the system boot into recovery, but this flag is not cleared with TWRP. I had the issue myself and since then helped some users with same problem. Wiping cache doesn't help, as nothing you can do in TWRP helps. (Except probably the right terminal command)

Seems like something worth looking into imho.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] kcajith:
[MENTION=388220]Murdock[/MENTION] Will the above same steps outlined work on OS 4.0.1?..Since I am doing it first time I thought I be on latest OS update
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Sure they will. Always remember, you cannot do anything really wrong. There is always a unbrick tool for the worst case. (Which is very unlikely to happen with what you will do). So even if you make an error or something goes wrong, you don't damage your phone. It's just software.

Hope this encourages you a bit to go ahead and just try.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Same here - thought it was caused by me

Is there any solution to update to OOS 4.0.1

Btw:

I tried to flash update via stock recovery, flash TWRP and root afterwards but update with stock recovery will also cause an error
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] HeXDeMoN:
Flash the full ROM, you'll find the link in another thread. you'll have to look for it , I'm on mobile or else I would search and link for you.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jim_bocho:
Hey, I think I messed up and haven't had the dm-verity file ready - so I bricked my device. As I'm on a Mac, I also seem to have trouble unbricking the thing - any help please? ;)

Thanks!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
I've downloaded the full ROM via OTA (1434MB)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
I think you can still flash it - but I'm not sure

What do you mean with bricked? - bootloop?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] HeXDeMoN:
OTA won't work if you have TWRP installed,you need to download the full ROM as a zip then install it in TWRP. there's another thread on XDA with the links to the ROM as a zip.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
If downloaded a 1434 MB zip file - I think that's the full ROM - isn't it?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] sator02:
You can install it (full rom) through local upgrade (move the full rom to root folder)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jim_bocho:
What do you mean by flashing? The full ROM again?

I get a dm-verity error and get thrown back into TWRP with no possibility to decrypt storage.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
OS? TWRP-Version?

---------- Post added at 03:02 PM ---------- Previous post was at 03:00 PM ----------

This doesn't work - see:

http://xdaforums.com/oneplus-3t/development/recovery-twrp-oneplus-3t-t3507308/post70518014

Last 2 posts on site 77
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
I have misc partition disabled in TWRP due to unexpected factory resets people probably don't want to experience.

To clear bootloader boot target flags:

dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc

I can add a shell script to /sbin to do this so all you have to do is enter terminal and type wipe_misc in the next beta
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jim_bocho:
TWRP 3.0.3 and OOS 4.0.1 - freshly received OP3T.