yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] h4rl4n:
I dont think i will need to roll back since i Just purchased the phone. Im guessing it comes out of the box with 3.5.4 pre installed. Right?

My question is: is it encrypted when out of the box? In other words do i have to flash dm-verity zip then format data and then flash super su in order to make it work?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
It will most likely have 3.5.3 preinstalled. Yes it is encrypted by default. No, first format data, then flash SuperSU or magisk or dmverity/noforceencrypt zip, depending on what you want. All of them patch DM verity and forced encryption.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Stephen:
Moderator Information,

Thread has been cleaned. Please keep posts on topic regarding TWRP.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] h4rl4n:
So if I install only SuperSU there is no need to flash dm-verity? Will i be able to flash OS4 and preserve TWRP then?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] drunkdino:
Rather than cleaning the thread, put a disclaimer on the front page that the current version of twrp is unsupported on Nougat. People are asking questions because they are trying to flash unsupported recovery on Nougat.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
I've already flashed :crying: (where can I find the stock Recovery)

Is a Nougat Version planed? Or is there an other Version for Nougat?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] drunkdino:
Twrp doesn't work only on Nougat ONLY. No issues on 3.5.4/3 if you are running twrp recovery. You can update to nougat if you get an OTA just remember to flash supersu after the rom is installed
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] WeirdSoup:
All right, it works!! Thank you very muck!! This is the only solution for those who already installed the OOS 4.0 without keeping/preinstalling the TWRP.(Yeah, we can also downgrade to 3.5.4, but for that we should use the unbrick tool.) The problem was "fastboot boot twrp.img".

And for all of the irritating behaviors - such as the password, dm-verity warning, etc: Just decrypt the internal storage. Yes this will erase all of the data, so make the backup first.

What I actually did:

First, decrypt the device ("fastboot format userdata" or you can use the toolkit if you want.)

Second, flash the twrp and boot into recovery right after using the volume rocker + power button.

And it worked perfectly. Then I flashed the dm-verity disabler, booted into system and everything seems fine.

If you fail to boot into recovery after doing that, then flash the stock recovery(use the toolkit), reboot to system -> reboot to bootloader and flash the twrp again. I experienced it once, but after reflashing the twrp, it doesn't occur anymore.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Is this a Nougat bug in general or only for our device.

I'm on Nougat, I've flashed SuperSu, I have my device encrypted and of couse I have TWRP

What would you do?

---------- Post added at 10:45 AM ---------- Previous post was at 10:40 AM ----------

I can confirm: this does work

But is there a way with encrypted phone?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
Hmm, I got a new OP3T so I don't care for my /data. But what you say is that all we have to do is "fastboot format userdata" before we flash TWRP? Then we can access TWRP without password, and then push files to flash or sideload them zip's?

I've never used encryptions before, but thought I should do it on this new file. I would also like to use phh's root with Magisk. Is it still that I should use the dm-verity disabler first when I access TWRP after I accepted changes to /system?

/Söder
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
I also did it with a new device:

- Update to Nougat via OTA

- unlock bootloader

- boot to TWRP (not System!!!)

- Install SuperSu

It works perfekt

_____

What I did:

- encrypt the Phone

TWRP doesn't work any more

But I like to have an encrypted rooted phone with Nougat :cool: - there must be a solution
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
What do you mean with "- boot to TWRP (not System!!!)" ? That after unlocked the bootloader, I should never boot the system? Too late for me now? Or shall I lock it again, and then unlock it?

/Söder
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Is your phone encrypted?

If not flash TWRP!

If you boot to system the welcome guid will enable encryption by default
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] xanthrax:
As the moderator clearly stated, please don't clutter the thread with questions and "answers", use this thread instead https://xdaforums.com/showthread.php?t=3509641 or open a dedicated one in the specific section, this is a development thread, thanks

Sent from my Darkside of Oneplus 3
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] h4rl4n:
It's always encrypted when out of the box
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
I have a few questions:

1) If I'll be flashing Resurrection Remix on first boot of TWRP, do I need to flash that dm-verity zip?

2) It sounds better to make the device unencrypted, so how would I go about doing this?

3) What's the point of formatting data?

4) If I flash the dm-verity zip, won't it reset when I clean flash a rom?

Thanks everyone!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] drunkdino:
Wanted to know if the devs are aware about the issues being faced by 3T nougat users and if a newer variant is being workerd on. Thanks!!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] pitrus-:
All I did after upgrading to 4.0 was to fastboot oem unlock, then flashed TWRP, booted info TWRP ignoring the password notification and entered wipe and swiped right. After that I flashed the no verity dm zip to disable forced encryption, after this TWRP doesn't ask for password anymore since the data/media volume is now not encrypted.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] WeirdSoup:
TWRP supports the MTP, so just connect with PC and copy/paste the files.

And as you can see in the OP, just install one of them.

---------- Post added at 12:39 PM ---------- Previous post was at 12:35 PM ----------

I can't understand. Did you decrypt the internal storage? (fastboot format userdata or using the toolkit)

Please check the Settings-Security and check whether the device has encrypted or not.

---------- Post added at 12:42 PM ---------- Previous post was at 12:39 PM ----------

I see, but I think this topic is about the TWRP's incompatibility issue.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] xanthrax:
This is twrp DEVELOPMENT not question and answers development, all issues can be reported as mentioned and linked on the first post and Q&A as per my post you quoted and not properly read it

Sent from my Darkside of Oneplus 3
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] drunkdino:
How were you able to flash no verity zip when you dont have access to internal storage coz of password notification which lock s you out of internal storage.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
What do you need to do to get the password notification? Have a password lockscreen?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Is encryption support planned or is it impossible?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] drunkdino:
We need an updated twrp. Thats it. Hope the developers are working on it.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
So should I stay away from unlocking + installing TWRP for now? Or is there a certain way I can do it to avoid this? I don't mind having an unencrypted device as long as I have a lockscreen
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] beardymarrow:
Installing twrp under 3.5.4 and then upgrading to 4.0 and flashing supersu 2.79 using twrp before booting seems to work. It certainly does for me.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
Ah I'm already on 4.0
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] pitrus-:
To get this question in TWRP, your either need an encrypted internal storage creating using the old encryption key/certificate of oxygenos 3.5.1 or older (TWRP can't decrypt this). Or alternatively if the data partition was encrypted using 3.5.3 or 4.0 and you've set a password/lock of your own other than the default that is used to encrypt if you don't set a password (TWRP knows the default and won't ask for password as long as it's used).

Enforced encryption is generally a good thing, however it does create its problems like these.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
Well I would prefer unencrypted if it means no problems like these. What would I have to do to do decrypt? Also, when I clean flash something, will everything reset and go back to encrypted?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] pitrus-:
Just follow all the steps in the first post. After factory reset and flashing the no verity dm zip your data partition will stay unencrypted unless you choose to encrypt it. However due to the lacking encryption security google pay will most probably not play ?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
Yeah well I never use android pay haha

What's all this about formatting data?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Is any developer working on the encryption bug?

Should I provide logs?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
Are you sure? I'm decrypted and I'm passing safetynet. I'm using OOS nougat + magisk. Heck I'm even using multirom.

Can add cards to android pay. Haven't tried using it a a merchant location yet though.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
I am right now, since the phone has been booted and all that. I can flash TWRP, but got the same problem as everyone else with the password.

I did a factory reset in TWRP now, and got access to /data now, and also /sdcard. I can now push files to /sdcard.

Shall I then go on with the guide, with the dm verity .zip? Can I flash phh's superuser and Magisk instead of the SuperSU?

And, how do I get the phone to be encrypted later?

/SÃ¶der
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] weakenfalls01:
For those who's currently running OS 4.0 and having issues rooting and install TWRP....Has anyone successfully downgrade from 4.0 to 3.5.4?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
Sorry for yet another post that has nothing to do with the development of TWRP, but the problem with TWRP and the password problem.

This is what I did.

I had:

A new OP3P updated to OOS 4.0, but also booted to system and login to Google..

A unlocked bootloader with the fastboot command

TWRP flashed with fastboot

What I did:

Booted to recovery from the bootloader menu was in (since I just used fastboot)

Pressed Cancel on the password question

Went in to wipe and wiped the phone (data, cache and dalvik). Then got access to /data

Justed adb command to push no-verity-opt-encrypt-5.0.zip and Magisk-v10.2.zip (not SuperSU)

After that I booted to system, logged in, didn't do anything with passwords or PIN. Installed phh's root manager from here and Titanium Backup from Playstore. I get root to TB now.

Question 1: Is my system untouched now, or will I have problem on the next OTA or something like that?

Question 2: Can I turn on PIN and get the phone encrypted now, or what?

Thanks for all the help.

/SÃ¶der
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Ed St John:
Is it ok to set up the device after unlocking + flashing TWRP in order to download files or should I load the files via adb?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Funk Wizard:
You have to be on ext4 to do so

Format data partition back to ext4

Flash stock recovery

sideload full rom via stock recovery

Boot into OS without flashing supersu

Oxygen OS would force Encrypt if you are on ext4 on data

Sent from Funk Tuned 3T

---------- Post added at 05:40 AM ---------- Previous post was at 05:23 AM ----------

You have to flash the full zip when ota is out so just download the full zip and flash it to update followed by Magisk and super su installation

Yes that's ok to download them on your phone but remember if you are going to do a format userdata then the downloads would be wiped so you can either mtp them or push the files via adb or simply use a usb otg with the desired downloads

Sent from Funk Tuned 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] enzopazzoct:
Hi guys, i've installed twrp, installed no verity, formatted data, installed supersu but after that my op stuck in bootanimation. What's wrong? I'm on oxygen 4.0.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Solnir:
Hello, I just installed nougat by using a vpn and getting the update. Is it safe to unlock the bootloader, install twrp and root?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Clark K:
If your bootloader was already unlocked and you already had TWRP installed (prior to 4.0) then it is safe to flash SuperSU.

Otherwise based on experiences done by others (in this thread) I would definitely recommend to keep it as is until a new version of TWRP is out.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] h4rl4n:
You either have to install no-verity OR superSU. Not both
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
So...what's the problem with OOS 4 and TWRP since no one bothered to mention anything to me?

When you're maintaining hundreds of threads it's not easy to keep up, so using the @<username> feature to "mention" people is a good idea.

Update: Changed SuperSU link to supersu-stable (2.79 ATM, not SR1/SR2 which apparently don't boot on most devices lol)

Did OnePlus change the crypto key format again? Is encryption broken on OOS4?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] h4rl4n:
It is. Just unlock boot loader. flash TWRP and then the stable version of superSU 2.79. And you'll be good to go

---------- Post added at 10:05 AM ---------- Previous post was at 10:01 AM ----------

Apparently yes, but that's no big deal cos the phone's still working
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
[MENTION=5672995]jcadduono[/MENTION] yes encryption is broken - do you need logs?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Some observations with nandroids: if you restore a nandroid (including firmware) with twrp (3.0.3-0), the bootloader is NOT touched. If you want to change versions in twrp (i.e. going from 4 to 3.5.4 or vice versa), you need to dirty flash the rom after restoring the nandroid, to get it bootable again. While writing I wonder if it would be sufficient to flash the appropiate bootloader...

[MENTION=5672995]jcadduono[/MENTION]:

Would it be much work to include the aboot and abootbak partition as seperate option for backup/restore?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
[MENTION=5672995]jcadduono[/MENTION] here are some logs:

If you need more let me know
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
yeah...I will make a "Bootloader" backup option which includes (dsp, aboot, aboot, cmnlib, cmnlib64, devcfg, hyp, keymaster, pmic, rpm, tz, and xbl) I guess since they seem to be different between 3.5.4 and 4.0.0 too.

I'm not 100% sure if I want to do the bak partitions for safety.

Update: This is completely untested and probably doesn't boot, but here: https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.3-1-beta1-oneplus3t.img

I need logs from it if possible, should it not boot you should be able to do this while booted into your ROM (and rooted) after a failed boot: adb exec-out su 0 tar czf - /sys/fs/pstore > pstore.tar.gz

Then upload pstore.tar.gz here, google drive, or my email (jc@add_ono.com, fill in the blank)

If by some odd chance it does boot, I need (adb pull /tmp/recovery.log; adb exec-out dmesg > dmesg.log)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Stephen:
Edit no longer needed. Looks as if beta is working. from post below.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Short: Great man! Booted beta1 with fastboot boot. It´s decrypting date fine, and the first backup is running at this very moment.

Long story, setup and logs follow.

Your response time is really impressive! Thank you!!

---------- Post added at 14:20 ---------- Previous post was at 14:03 ----------

Two different issues: if changing versions, you need the complete set of bootloader files (have to check, have to go back to 3.5.4 to make a backup with beta1); at the moment you need aboot (emmc_appsboot.mbn) from 3.5.4 anyway to have twrp to decrypt data.

So your link is still of interest - at least for me... ;)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
https://github.com/jcadduono/androi...mmit/2aa43b4151567ccb9045c9d4dc6e5a4576adb2f4

You can see here where I added the partitions for backup/restore (new "Modem" and "Bootloader" options)

"Modem" will backup/restore your Bluetooth and generic Firmware (modem) as well as dsp (Hexagon/Voice firmware?)

"Bootloader" will backup/restore every other usual partition I found changed by OnePlus full OTA zips except static_nvdata (if that's what it's called, I am not sure that is necessary to change between, so let me know...)

I also added System Image.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
What's system image? Also I understand you have to flash the appropriate bootloader depending on the backup. What is the utility of the "modem" backup option? Is it also OOS version specific?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Not a tar backup like in the win files, but a complete fs image (usable with dd, or mountable via loop in linux).

Modem are hardware near proprietary files, needed for communication between kernel driver and actual mobile hardware.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Thanks Dev...That was fast....Flash it and boot the new beta ....

Data is decrypted fine....
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Vipeout:
Sorry I don't quite understand, does the new Beta only add additional functionality for bootloader backup or has it also fixed the issue with OSS4.0 where TWRP cannot access the internal storage due to encryption?

Thanks
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Just flash it on 4.0...boots ok.......Have access on my data no password screen any more
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Long story:

Model: A3003

v3: oxygenos-3.5.4, rooted with [MENTION=631273]Chainfire[/MENTION]'s SuperSU (2.78-SR5 - 2.79 is the better choice!), enceyption enabled and secured with pin (not pattern, nor password)

v4: oxygenos-4.0, rooted with [MENTION=631273]Chainfire[/MENTION]'s SuperSU (2.78-SR5 - 2.79 is the better choice!), enceyption enabled and secured with (the same!!!) pin (not pattern, nor password), aboot and abootbak flashed with emmc_appsboot from v3)

Recovery: twrp-3.0.3-beta1

nand-v3: complete twrp-3.0.3-beta1 generated nand of v3 with all checkboxes active.

nand-v4: complete twrp-3.0.3-beta1 generated nand of v4 with all checkboxes active.

Running v3 I booted recovery, and restored nand-v4 with all checkboxes but system active (meaning: I restored /system from System Image - not from system win file backup). Rebooted, v4 up and running.

Have not tested the other way around, and I have not tested using win files to restore system.

EDIT2: Just tested going from v4 to nand-v3 with win files rather then System Image. Works too. I consider the two missing cases asmworking as well.

Just an idea for the people having temporary (because I'm ****ing sure [MENTION=5672995]jcadduono[/MENTION] will sole this) issues with booting to twrp: have you tried flashing emmc_appsboot.mbn from 3.5.4 via fastboot flash to aboot?

EDIT: forget about the last paragraph - seems to be fixed.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] paratox:
thanks, that did the trick. no more black screen. boot into twrp is working again! :good:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
Why is it that I need the full ROM. Does the dm zip do something? I'm using Magisk, and I think one of the ideas is to keep the /system untouched to be able to flash OTA's (if still got stock recovery...)

Why is like that? It says to flash the no-verity if using an other root method then SuperSU, but also Magisk (that uses a version of phh's root) says it can deal with the dm-verity. Why is it like this, and please, can someone try to explain the dm problem for me?

What kind of beta are you talking about? A beta for TWRP that solves the problem? I can't find any link for it?

Anyway, I wiped my /data yesterday from TWRP and after that I could root and all that. Still wonder if I can set an PIN in Android now, and start encryption. Will TWRP still work for me then, or will I be back to the password problem then? I'm on OOS 4.0.

/SÃ¶der
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] B3501:
There's a link to a new beta TWRP on post 550.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
Great. And, after I've flashed that, it should be safe for me to activate PIN in android and encryption? Right now it's unencrypted since I wiped /data in TWRP and then flashed the dm zip... I guess that disabled the default encryption?

/Söder
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Solnir:
wait so after flashing twrp and having password issues all you had to do to fix it was wipe data in twrp, its safe?

EDIT: so that twrp build on post #550 fixed the encryption issue?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
The TWRP build in #550 should fix the issue, (but I've never tried it since my phone isn't encrypted right now).

But yeah, I passed the password issues by just pressing "cancel" when TWRP asked for a password, and then directly wiped in TWRP. That was no problem for me, since I had nothing in my /data, but I guess it can be a problem for the people that used their phones a while.

/Söder
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Solnir:
Well i kinda want to keep my encryption, so im kinda new to this, can i just update my twrp to that one by flashing it over in fastboot?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
I guess you can do that. I did that, but again, my phone isn't encrypted right now (still wonder if it's safe for me to do that now (or thinking of if I even need it. Does it slow down the phone?).

But I'm sure you can flash it, and other says there should be no password issue with the new one.

/Söder
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Solnir:
I can confirm there is no password issue with this one i got it all up and running with magisk!! :D
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] soder:
Sure our little conversation will upset someone, since it's not about the development, but, can you please say something about if having the phone encrypted will slow down the phone much?

/Söder
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Solnir:
Im not really sure if it does tbh but I assume it does by some minuscule ammount, probably a slightly longer boot
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] enzopazzoct:
So what are the steps to do now to have root?

I'm in ox4 with stock recovery and unlocked bootloader. I have to do another "format data"? Please don't tell me yes...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Fastboot flash the updated twrp beta1 ....Boot in twrp ...Flash SuperSU.....Reboot to system...Done....
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] weakenfalls01:
Do we have a TWRP beta 1 out for the 3T?

---------- Post added at 10:48 PM ---------- Previous post was at 10:47 PM ----------

Is there an update TWRP version that works with the 3T ?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Yep....

http://xdaforums.com/showthread.php?p=70403073

It works great....
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] weakenfalls01:
Flash it thru fastboot or toolkit?