yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
The reboot after unlocking bootloader wipes data, but does not change the encryption status of your data partition. Phrases are sometimes uswd in a confusing manner:

If you read "twrp can decrypt" most of the time this is meant: twrp is able to read the encrypted data partition.

To have date not encrypted you have to format data via fastboot.

To enable encryption (after disabling it via fastboot format data), you need a running rom: on stock just change your screen lock passphrase and you get asked if you want to secure devices startup, select it and your device qill be encrypted again; on most other roms you can enqble encryption from Settings->Security->Encryption.

I hope that answees your question.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mazubo:
So if someone is decrypted and wants to go back to encrypted, so then does the above instructions, will you be able to access data in TWRP , or will we have the same issues as prior in which we had to decrypt in order to gain access to our data within TWRP?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
If "we" includes me, I have to tell you, I have never run into this issue...

Since 3.0.3-1 pulls the decryption libs from the rom, you shouldn't have any problems with reading encrypted data. As my howling friend [MENTION=3968044]mad_murdock[/MENTION] has stated more then one time: there is no reason to run unencrypted.

OP has been reworked and updated over the last days - I suggest rereading.

Sidenote: if you have twrp installed and no encryption all your data is mine if I have physical access to your phone. Since I'm able to boot twrp without passphrase, I can also reset your login credentials...

What comes to my mind while writing this: does any body now what happens, if I boot to twrp with encrypted data, wipe system and reboot to twrp? twrp can't pull anything from system, since it's cleaned out.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] WatskeBart:
No TWRP menu

Finally got my OP3T after a broken Nexus 6 :), but i'm stuck at the TWRP splash screen :(

I did the following:

Unlocked my bootloader

Flashed recovery

Boot recovery

Now it just sits there and me looking at a nice TWRP splash screen, but it doesn't go to the TWRP menu. I never saw the "swipe to allow modifications" option :eek:

The device only loops into bootloader now

What am I doing wrong here?

Using latest TWRP 3.0.3-1

No errors with fastboot:

d:\!OP3T>fastboot oem unlock <<<- RAN THIS COMMAND AGAIN TO PROOF IT'S UNLOCKED
...
(bootloader) Device already : unlocked!
OKAY [ 0.016s]
finished. total time: 0.031s

d:\!OP3T>fastboot flash recovery twrp.img
target reported max download size of 440401920 bytes
sending 'recovery' (17588 KB)...
OKAY [ 0.406s]
writing 'recovery'...
OKAY [ 0.156s]
finished. total time: 0.563s

d:\!OP3T>fastboot boot twrp.img
downloading 'boot.img'...
OKAY [ 0.391s]
booting...
OKAY [ 0.375s]
finished. total time: 0.766s
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mazubo:
Have you tried manually booting into TWRP with the volume down key and power from when the phone is off?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] WatskeBart:
I just read this thread and now i'm back in the game. Thanks though :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Notor1ouS-:
on backup ive the option "system image", which is new to me on latest TWRP.

whats that? do i need it ? (iam on tugapower)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
It's a (flashable) disc image (instead of of dile based backup). Allready explained in this thread.

It's an additional backup/restore method, since libtar (used for filebased backups) does lack some features we need on N. libtar issue was explained in depth a few pages back.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mazubo:
Once we start seeing Nougat kernels from Franco, Glare, Boeffla etc, will changes to TWRP necessary?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
I'm looking for people to start testing UNIFIED (EXPERIMENTAL) OnePlus 3/OnePlus 3T TWRP builds from the Nougat sources. There will be no separate f2fs builds as I am now using a modified version of f2fs backport with full compatibility with Android stable f2fs.

Please send me a message on Telegram or IRC (freenode.net)

jcadduono as always.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] erickrealz:
Hi guys! I've flashed TWRP and I'm currently on Ressurection Remix Rom. Now, when I try to boot to recovery, the phone brings up the stock recovery instead of TWRP. However, I could access TWRP via the OnePlus 3T Toolkit, but I'd want to access TWRP via my phone too. Anyone got a solution?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
ready for public testing now: https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.3-1-unified-test5-oneplus3.img (updated to test5)

it should work fine on both f2fs variants! uses backport f2fs drivers with small modifications and optimizations to work correctly on 2014 f2fs

it also has the fix for backup/restore of system + capabilities

it should hopefully also mount ext4 encryption data without the need for the zip

please report with your findings!

I will be closing this thread when they are merged officially and redirecting users to the OnePlus 3 thread
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] knpk13:
Umm if you're starting from stock, how would you flash the flashable zip to install TWRP when you don't have TWRP?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] joco1114:
An interesting twist: TWRP installed its original app to my device. After upgrading it, I installed the newest TWRP via this app. And voilá! Working with vol+ and power button, no stock recovery appears...

J
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] buzzqw:
same exact procedure and same error!

BHH
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
good question. i never ever flashed it. and i never got in trouble.

but i never figured out, why. one person claimed, its part of supersu itself. while from the android developer documentation i understand an unlocked device has verity disabled by default - which fits to the second warning screen.

anyway, i personally wouldnt want encryption to be optional, so i think i didnt miss out on anything.

---------- Post added at 10:31 AM ---------- Previous post was at 10:28 AM ----------

I did it many times without issues. The trick is to never backup system apps or settings, except the special exports/importers for i.e. wifi passwords or sms/mms. Works like a charm. Using Titanium Backup pro for it.

---------- Post added at 10:36 AM ---------- Previous post was at 10:31 AM ----------

can someone confirm, full 4.0.2 replaces recovery with stock? since full 4.0.1 did surprisingly NOT replace recovery. I never flashed full 4.0.2, only OTA, thats why I am curious.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] vl.xl:
nope flashed full 4.0.2. via twrp 3.0.3.1 and it did not replace twrp with stock recovery.

I can also reboot to twrp from advanced power menu on stock rom or via button press.

on a side note, even on 3.5.4 there were times where twrp was replaced with stock recovery, even weeks after all was OK with TWRP and nothing new was flashed to phone, so..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
I would guess you have to flash a ROM first. I doubt TWRP has fallback encryption libraries - since how should you choose which version to use for it.

If anyone would do this stupid thing (why, oh why?), he could still flash his ROM without mounting data via sideload or pushing the rom to /tmp, then again reboot recovery and all would work. So it's fixable and no one-way-street.

---------- Post added at 10:57 AM ---------- Previous post was at 10:47 AM ----------

unifying 3 and 3t, unifying f2fs and ext4, unifying f2fs/2014 and f2fs/2016, while also fixing the capabilities issue. That's insane!!! Just imagine how little people will run in problems then. ^^

-----------------------------------------------------

[MENTION=5672995]jcadduono[/MENTION] - unified test 5, running OOS 4.0.2, ext4 on data, encrypted.

Starting recovery and decryption works.

Recovery.log: http://pastebin.com/Qqgs2qR9

dmesg: http://pastebin.com/RCdW4gRS
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
If you look at SuperSU flashable zip (the script is update-binary - updater-script is only dummy file), you'll see that [MENTION=631273]Chainfire[/MENTION] replaces install-recovery.sh with his own version for the first reboot and moves back the original install-recovery.sh before the second reboot in order to install SuperSU completely. Otherwise stock rcovery is installed on forst system boot.

This is true if you flash SuperSU right after you have flashed stock rom; this may or may not apply for other roms and other su tools and/or multirom.

EDIT: if you flash full stock rom without flashing SuperSU directly after, recovery gets replaced on first reboot. If you look at full stock rom's updater-script, there is no flashing of the recovery partion done.

---------- Post added at 12:51 ---------- Previous post was at 12:36 ----------

I've never expirienced "random" replacing of recovery on stock roms.

But I was allways rooted with SuperSU. But when going from 3.5.3 to 3.5.4 I forgot to flash SuperSU - and woop I was back to stock recovery.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] vl.xl:
Now that you say it that way, I can reproduce it in my head that it always happened when I forgot to flash super user/su or lost root for some reason.

Thanks :)

V
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
If we wouldn't have forgotten, we wouldn't know - I checked the SuperSU update-binary AFTER I have forgotten to flash and found myself on stock-recovery... ;)

BTW: [MENTION=631273]Chainfire[/MENTION]s script is a great resource to learn - at least for me. As are the zips of [MENTION=5672995]jcadduono[/MENTION]!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dudik9910:
Guys I've got the problem. As lockscreen protection I had a fingerprint and a pattern unlock. After I unlocked the bootloader, and flashed TWRP, TWRP prompts me to give password to decrypt my phone. I don't have any password as stated before, just finger and pattern. I also tried flashing that twrp-data-fstype-swap(with adb), while being in TWRP, it flashes corretly but when I reboot the recovery it's still the same story, I need to give password. So now I'm pretty much stuck, I can't boot system coz of dm-verity problem, phone cannot be decrypted, and I can't format data in TWRP either as it's encrypted. Anybody else had this problem? Anyway to fix it?

I'm on official 4.0.2 if that matters, flashed v3.0.3-1 twrp.

Alright, as I had made backup first and already wiped everything with oem unlock anyway, so I forced decryption via tookit, after I set everything as it should be, I will just encrypt again withing settings :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] vl.xl:
Hm,

What dm verity problem?

You can format data in TWRP, but you'll loose all data ofc.

Which version of TWRP and which ROM are you using?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Some time back you could enter the pattern as numbers - don't know if still working.

I suggest booting to system, change pattern to password or pin and confirm using this for system startup. Boot to twrp and use the just changed new passphrase.

EDIT: dm-verity error breaks the chain of trust not the boot up. You can still boot to system. If you boot to recovery every time instead of system, just leave data alone, go Advanced->Terminal and execute wipe_misc and reboot to system.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dudik9910:
I couldnt boot nor access the recovery with storage encrypted. But I worked it out as I stated in edit of my post.

Wysłane z mojego ONEPLUS A3003 przy użyciu Tapatalka
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Are you asked for pattern while booting system os?

If yes your password should be your pattern

1 2 3

4 5 6

7 8 9

Else you can try default_password
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Hmm, if you got asked for pasword by twrp, you have allready bootwd twrp. Just skip the password and you are in twrp... It doesn't make sense, if you write twrp asks for password but complaining the same time you can't boot to twrp.

And of course you can format data without decrypting it before.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dudik9910:
Nah I couldn't boot the system and I couldn't wipe data without this decrypting, twrp told me that its unable to mount storage so it didn't wipe internal storage. Anyway guys as I stated in my first post I've already worked it out. Thank you for trying to help me. (Btw I had similiar problem in OPO as far as i remember and the thing that made it was that I didnt set "Ask for passoword(pattern) after boot")

Wysłane z mojego ONEPLUS A3003 przy użyciu Tapatalka
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
You mix up quite some concepts. For data wiping and formating are two completly different actions. And again: of course you can format data without having acces to the encrypted content of the partition. You can't wipe data, because thatnare file baswd actions. Also your postings start to make sense, if you mixed up "booting twrp" with "can access encypted data from within twrp".

If you give false information, it's hard to help.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dudik9910:
Sorry then, my English is not my primary language so I mislead you because of that. Thanks for trying to help to you and the rest of you guys! :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
dont do this unless you reformated your data partition to ext4. to take back the changes either flash twrp-data-fstype-swap again or flash recovery anew.

as long as TWRP thinks you are on ext4 and you are not, you wont be able to access your data partition no matter what.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dudik9910:
I think I actually flashed it twice, trying to make it work, so it is probably alright, as recovery normally works now etc. Interesting thing is that system options still say that my phone is encrypted, but TWRP don't ask anymore for password(this time I used password instead of pattern just in case).

Let's say I want to go to ext4, which partitions should I change? Only data?(I checked and only internal storage has f2fs, the rest of my partitions, system for eg has ext4)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] bcs2112:
deleted sorry ..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] djsubterrain:
deleted sorry ..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] liver20:
i tried with 3.0.3.0 - 3.0.3.1 and always stuck in TWRP splash screen and later black screen.

How can solve it ?

My phone boot properly, but cant enter recovery mode.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
what rom are you using?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] liver20:
Tesla

But now flash recovery unified-test-5 and works !!! now can enter to recovery
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Don't mix encrypted with passhphrase secured: if you say you don't want to secure your startup, the passphrase is set to default_passwd and system as well as twrp will not ask you, but data is still encrypted. Deleting your own non-default paaswd does not remove encryption.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] dudik9910:
Alright! Now I get it. Thank you kindly for info and for patience :D !
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
Thanks, this is exactly the information I was looking for!

(was hoping my unified build on the new kernel would fix the smem access error that happened to a few people on my previous builds, I have no idea what fixed it, but it seems OnePlus did something to fix it)

Can someone please contact me on Telegram or IRC for test kernel builds (not for TWRP, but for OOS4) - I need to get Kali NetHunter updated as well!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
What is Kali NetHunter?

I've googled a bit but I can't get the usage
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
https://xdaforums.com/oneplus-3t/development/kernel-kali-nethunter-oneplus-3t-t3507816
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] AndreiVolk:
I already use latest twrp and supersu. I know full rom has stock recovery but i also know that flashing supersu after the rom should allow to keep twrp. Or am i wrong ?

Inviato dal mio ONEPLUS A3003
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] vl.xl:
You are not wrong. :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] FishyFing:
do these builds fix the super long twrp boot times?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] nadejo:
You mean something like http://www.arter97.com/browse/op3/AOSPA/twrp-3.0.2-1-oneplus3_3t-aospa.img

?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
no, only slight speed up ~10%

i wouldn't know, probably not
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] nadejo:
Im currently using backport f2fs twrp (data / cache f2fs) on official rr. Im scared to flash twrp-3.0.3-1-unified-test5-oneplus3.img since its experimental, anyone tried yet comming from backport f2fs twrp & ran into any issues? Thanks!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] spaziomilano:
hi, on mount decrypt data and i need your help whats wrong? is it possible to return stock?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
that really made no sense.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tfae:
What do you mean with "backup/restore of system + capabilities"?

What are those "capabilities"?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
http://man7.org/linux/man-pages/man7/capabilities.7.html
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] _nKo_:
Hi there, I flashed this one with the official twrp app but I still have black screen when I want to reboot in recovery. I'm on official RR Rom. I'll try to flash via fastboot later, starting from a clean install. Hope it solve
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] liver20:
You should flash via fastboot, this solve your problem.

Enviado desde mi ONEPLUS A3003 mediante Tapatalk
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] t0pstar:
Hey

I'm on the last twrp 3.0.3-1 (and the backport one also tested and don't work )and facing a problem . every time I flash some thing in recovery , I must setup my ROM again . this happened on different ROMs (RR in-, and official , AicP, ) . I already read something about this problems but I can't find it any more.

Thanks

Gesendet von meinem unknown mit Tapatalk
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Which version of TWRP?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] t0pstar:
3.0.3-1 the last official and the backport also don't work

Gesendet von meinem unknown mit Tapatalk
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Primokorn:
In a nutshell, here what I did:

- All steps from OP up to step 9

- Flash the no-verity-opt-encrypt zip

- Format data

- Switch from f2fs to ext4

- Flash Tugapower rom + Magisk + unSU + Phh's Superuser + Maps v1 zip

- Reboot

- Install microG framework + Gsf proxy as user apps

- Enable signature spoofing through Tingle tool

- Reboot

- Encrypt my data + set a PIN to be able to boot

Everything is working well except this:

TWRP has been flashed several times with 'fastboot flash recovery twrp-3.0.3-1-oneplus3t.img' but I can only boot into TWRP from the fastboot command 'sudo fastboot boot twrp-3.0.3-1-oneplus3t.img'.

While trying to reboot from Android my phone boots to the 'Start' screen (when we have to press a key to select more options otherwise the phone boots to Android).

I didn't find any solution in the thread. Any idea?

EDIT: my bad. No issue at all :) I removed my phone from the computer. I don't know if it makes sense, though...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Vihru:
Can i ask is that microG framework good? and what is that gsf proxy? and what maps v1 zip? and where you downloaded these?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tdamocles:
Before I dive in, will the unified test5 twrp work with all roms or must I either convert to ext4 or use the modified backport twrp still?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] zige:
I have same for 2 weeks already. Flashing via fastboot dont solve it. Only way boot to recovery is fastboot boot twrp.img command. BTW, i'm also using RR rom (unofficial one).
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] panooos:
Same problem here.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
[MENTION=5672995]jcadduono[/MENTION] can confirm capabilities are working on test build. Did restore data, boot and system, no logcat spam. Test 5 build.

what happens if you "fastboot flash recovery twrp-yaddayadda.img" and then use volume buttons to chosse "recovery mode" and then confirm with power button?

---------- Post added at 03:56 PM ---------- Previous post was at 03:54 PM ----------

I also want to know how microG works. (gsf prox, maps v1, all connected to microG. you can find out spending 10 minutes reading. i know, insane!)

---------- Post added at 03:59 PM ---------- Previous post was at 03:56 PM ----------

it SHOULD work for any roms. SHOULD because its still in testing. try it and report back if it doesnt work. (if you report back, include twrp version, rom and the two logs mentioned in OP). IMHO that test build is your best shot currently.

I personally enjoy reading about people having f2fs problems while chilling on my ext4. One day in the future I switch back to f2fs, but that day has yet to come.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] zige:
Same, just black screen with notify led on. I though maybe wipe all and set everything back would help but no. I have been on custom rom world for many years but event seen anything like this. I have seen some reports with same bug @ RR rom threads.. But can it be rom which is causing it? Its sound funny...

For report used EXT4 until changed back F2FS yesterday because it didnt matter which one i used.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
First of all, I am also in custom ROM scene forever. So I understand you, but you cannot really blame anyone except hardware got more complicated. F2fs could be blamed maybe, but I am sure, in some months that will be stable, too. I personally stay with ext 4 for so long, but f2fs can work, too.

Back to your problem. I also saw some RR people here with similar issues. It is possible that the kernel of your ROM somehow does something differently and therefore breaks compatibility. Did you try accessing the recovery with ADB so you can provide logs to eventually fix this?

On your ROM thread, you could ask the dev, what f2fs patches and crypto libraries exactly he uses. And provide logs.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
funny how many people are saying this issue exists but no one is willing to give me any logs from pstore, maybe i'll just pretend this problem doesn't exist and go on my way
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] phoenixg36:
hi, I'm on the last test5 version and oos 4.0.2 with ext4 and pin for decryption.

I have no problem to enter twrp and this is the first version with is possible to decrypt with pin :svetius:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] c_86:
Now I'm having issues.

I have never had issues.

I'm was running the 3.0.3.0 build. Refused to go into recovery. Flashed 3.0.3.1 loaded fine. Flashed the 21jan RR build, went fine.

Now I'm trying to get back into recovery and it's asking for a password. I have tried the unified beta 5. Same thing. Tried the 3.0.3.1 same thing.

I do not have any password set on reboot other then my fingerprint.

So I'm stuck. No idea what to do.

Help?