yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] bl3d2death:
thx... what exactly does the swap zip on my device? will this modification be erased if i will format or wipe my phone once?

It's ok to flash that zip over an already running system? ... so i just have to flash the zip and then encrypt the device?

sorry for that questions ;)
[OnePlus 3 & 3T Cross Device Development] Durrz:
Read a few pages back. The answers are there. ?
[OnePlus 3 & 3T Cross Device Development] bl3d2death:
Ok. I've read the last pages. I am right with this? The .zip only will modify the recovery. So if I reflash another revovery all changes will be gone?
[OnePlus 3 & 3T Cross Device Development] Primokorn:
Yep but it's only useful if you are using

encrypted ext4

.
[OnePlus 3 & 3T Cross Device Development] ivano949:
That worked, now I'm ext4 data, 4.0.2 encrypted

The only thing is now twrp every time I select "Reboot system" warn me "no OS installed". When I choose "Swipe to reboot anyway" my OS starts whit no problem. How can I bypass that warning?

Edit: no way to mount system http://cloud.tapatalk.com/s/58909e9193990/Screenshot_2017-01-31-15-19-21.png?

Edit2: reflashed OOs 4.0.2 zip and SuperSU made the trick

Tapastalking
[OnePlus 3 & 3T Cross Device Development] realkeule:
hi,

if im correct it is not possible to put twrp on a op3t without a factory reset? or still possible? maybe in future?

regards
[OnePlus 3 & 3T Cross Device Development] Primokorn:
Unlocking the bootloader will always wipe data.
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
Look, the power of trying ****. Next you learn to try before posting. In a matter of weeks you become a pro
[OnePlus 3 & 3T Cross Device Development] ctakah27:
Is it me or d/l links don't work?
[OnePlus 3 & 3T Cross Device Development] uaiclout:
Which one?
[OnePlus 3 & 3T Cross Device Development] Uumas:
Works for me
[OnePlus 3 & 3T Cross Device Development] Midomad:
Just updated to 3.0.4.0 from 3.0.3.1 and after recovery reboot i see the swipe to allow modifications warning,i already swiped when i flashed 3.0.3.1! should i allow the modifications again?

I'm on stock rooted with elementalX kernel.
[OnePlus 3 & 3T Cross Device Development] fcisco13:
Do you want modifications again?
[OnePlus 3 & 3T Cross Device Development] Midomad:
Sure [emoji1]

I'm afraid it bootloop,if i remember correctly i faced that problem on a nexus 5x after twrp update but it's another device..

This was the reason for my question :)
[OnePlus 3 & 3T Cross Device Development] jcadduono:
lock screen info not related to keymaster, etc.

this might be an xattr issue (special filesystem metadata not saved in twrp backup)

it is being looked into and affects all devices, not just this one

i would really like someone to explain this rebooting to twrp issue, like it is immediately going to the twrp screen with no boot logo or pure black screen (twrp is segfaulting/crashing and restarting), or is it actually rebooting (with the boot logo, then the twrp splash)...logs!!!!!!!!!! if it is a full reboot, pstore most important, read the first post if you have this issue and actually want this solved!!!

i don't think it has anything to do with /misc because it is included in the fstab and should be cleared by twrp before reboot.
[OnePlus 3 & 3T Cross Device Development] ctakah27:
https://build.nethunter.com/twrp/oneplus/twrp-3.0.4-0-oneplus3.img

Just checked - not downloading
[OnePlus 3 & 3T Cross Device Development] jcadduono:
See if build.nethunter.com works, if you get an SSL error then you are using an incredibly insecure browser!

I enforce TLS, at least AES128, and use ECDSA to improve SSL performance on my servers which means you need a browser from at least 2014.
[OnePlus 3 & 3T Cross Device Development] ctakah27:
Hmm page loads, but no files download.. I'm on boat browser, been using it for years, never had an issue.. Weird

Thanks though
[OnePlus 3 & 3T Cross Device Development] ste22032:
Hi, I've followed the steps you posted to switch from f2fs to ext4 without data loss. All seems good now, but I'm sure that before doing this I had system partition only half filled (about 1.5 GB of 3 GB used), but now as you can see in the screen under spoiler, it's almost full filled. Do you know what could be the reason? Thank you!

P. S. Already tried to wipe system and reinstall latest OOS but it's the same.
[OnePlus 3 & 3T Cross Device Development] elchmartin:
Never heard of it.

Are you sure it's a good idea to use it? Appears a little outdated to me...
[OnePlus 3 & 3T Cross Device Development] MrPhilo:
I can flash the OP3 TWRP in the download link for the OP3T?
[OnePlus 3 & 3T Cross Device Development] ctakah27:
Hm I'll look into it, but it's like literally one of the most popular.. [IMG="boat"]https://s28.postimg.org/iypf8rerh/Screenshot_20170131_185334.png[/IMG]
[OnePlus 3 & 3T Cross Device Development] uaiclout:
Are you able to download form other URL?
[OnePlus 3 & 3T Cross Device Development] ctakah27:
No yea it's what he said - other browsers work. For some reason his server config was firewalling my boat browser.. I think it sends its user agent metadata as Netscape navigator or something old.

I'm sorry for flooding the thread with unrelated discussion. I flashed the new twrp with no issues, thank you.
[OnePlus 3 & 3T Cross Device Development] jcadduono:
My server does not have any firewalls outside iptables, nor does it ever read the User-Agent string. It is set up for high performance encrypted file serving and nothing else.

I think your browser just has an SSL bug in its download manager.

I do have a Lua preprocessor built into nginx which can handle dynamic pages, but it doesn't handle file serving and I'm only mentioning it because it's awesome. (powering chat.adduono.com :))
[OnePlus 3 & 3T Cross Device Development] the_rooter:
Found a bug with twrp 3.0.4.0. I confirmed this with 2 different 3t's. Both of the devices were f2fs format. I decrypted both of them, changed to ext4, flashed the required zip, and went to reboot twrp and it reset device. Converted back to f2fs and went to reboot recovery and same thing. This happened a total of six times. Had to return phone back to complete stock to start over and decided to stick with f2fs.
[OnePlus 3 & 3T Cross Device Development] jcadduono:
are you for real lol, of course changing the file system wipes the device -_- that's not a bug
[OnePlus 3 & 3T Cross Device Development] the_rooter:
I guess my post didn't come out right. It reset but never boots to os must twrp. No matter what I click. And when I say reset I meant, it comes up with no is in stalled. And completely clears entire device.
[OnePlus 3 & 3T Cross Device Development] djsubterrain:
Yes because you're changing the filesystem so it formats it, that's not a bug, it's normal, computers do that too. If you change the filesystem on your computer then you need to format the drive to the new filesystem.

Just format data to ext4, leave the rest of the partitions and copy your rom/gapps/files over by mounting it when you're in TWRP.

Make sure you flash the rom with the same version of TWRP as you backup it up, then you should be good.
[OnePlus 3 & 3T Cross Device Development] jcadduono:
this has been mentioned multiple times and still no one has bothered to get me logs so i could find a solution to it, as in all 3 logs commands list in the first post.
[OnePlus 3 & 3T Cross Device Development] bl3d2death:
I noticed something strange, dont know if its an issue. Always when I wiped my device (all TWRP versions) and clicking on reboot twrp, i got stuck at the OnePlus boot logo... so twrp just not boot. I always have to manually start it at the "your phone is unlocked" message. After a rom is flashed everything works fine again.
[OnePlus 3 & 3T Cross Device Development] maddler:
Hello all, any clue if this version fixes the issue restoring system partition from backup?

On 3.0.3 that was causing high CPU load and logcat being spammed with "QMI_FW : xport_reg Failed for service_id=0x35 version=0x1001 on 10".

That wouldn't cause any error in TWRP itself.

Workaround would be to either use dd to backup/restore of flash whole ROM.

Thanks.

William
[OnePlus 3 & 3T Cross Device Development] _nKo_:
Hello all here ! I still have the black screen issue on my 3T. Which version do you use, and can you tell me if it is flashable via official TWRP app. I'm not at home fotmr a moment, and I can't update my ROM on professional laptop (not able to install adb/fastboot on it). My only solution is flashing with my phone, but not possible as far as I am unable to boot in recovery
[OnePlus 3 & 3T Cross Device Development] cultofluna:
3.0.4.0..Is the latest twrp..You can install it via twrp app ..
[OnePlus 3 & 3T Cross Device Development] _nKo_:
Thanx ?

Does this build correct black screen issue ?
[OnePlus 3 & 3T Cross Device Development] Istvan_86:
Hello,

I updated to 3.0.4-0 and read here something about "a partition using encrypted ext4", I´m encrypted but this commen refers to what partiotn?

Thanks in advance.
[OnePlus 3 & 3T Cross Device Development] cultofluna:
I don't have this issue... Install it ..And try to boot..

This build should work properly...
[OnePlus 3 & 3T Cross Device Development] UniX1rm:
One plus3t here. I am having an issue where it cannot decrypt I am on ext4 "when i try to format data" Otherwise, when I flash recovery through adb it gives me to allow modification, then when i reboot, it does not do anything but goes back to that screen as soon as I reboot.

I tried to update from an older twrp and do a clean flash as well! Attached are my logs.

EDIT: It seems I am encrypted although I was decrypted right before updating! Not sure how to go about that, I flashed stock recovery and it asked me to decrypt, had to format through it!

ANOTHER EDIT: After going back to fully stock, Flashed the twrp, and it worked fine! Very weird!
[OnePlus 3 & 3T Cross Device Development] djsubterrain:
Most likely the data partition as that's where all the user data is stored
[OnePlus 3 & 3T Cross Device Development] Istvan_86:
Hello and thanks for the fast answer,

My data partition is in f2fs so all is ok :D

Cheers!!!
[OnePlus 3 & 3T Cross Device Development] thomsch:
Sorry if I ask something already answered but im kinda new to the Oneplus world and flashing process.

I want to flash Franco's kernel. Im on nougat Beta 2. The steps to follow are:

1. Unlocked bootloader following the guide in OP.

2. Install 3.0.4-0 TWRP.

And here my doubts begins. Do I have to:

3. Flash SuperSu.

4. Flash DM-Verity.?

Or can I only boot up after installing TWRP and later flash francos kernel.

Thank you very much for the patience!
[OnePlus 3 & 3T Cross Device Development] vl.xl:
Flash Magisk 10.2 and phh super user (or SuperSU but you won't fast sagetynet of the box), flash Franco kernel and enjoy.
[OnePlus 3 & 3T Cross Device Development] thomsch:
Yeah. I live in Argentina and we have 0 Android pay overhere.

To sum up, no need of dm-verity zip. Right? Unlock, twrp and supersu = Profit?
[OnePlus 3 & 3T Cross Device Development] vl.xl:
And you don't play Pokemon GO :laugh:

Yeah, if you use SuperSu you are ready to roll.
[OnePlus 3 & 3T Cross Device Development] Inflection:
Flash one or the other. Flashing both is a no-no, considering the OP says not to. Just flash SuperSU unless you're planning on using some other type of root like phh's version.
[OnePlus 3 & 3T Cross Device Development] fbf2201:
You could also use

fastboot oem disable_dm_verity

without SuperSU or dm_verity patch.
[OnePlus 3 & 3T Cross Device Development] luisangel89:
I think I did this flashed big. It's this a big problem

?
[OnePlus 3 & 3T Cross Device Development] the_rooter:
It's a hit or miss but some people have said that they needed to use both line of code. Depend on ROM
[OnePlus 3 & 3T Cross Device Development] jcadduono:
no you can flash both it's just no-verity-opt-encrypt does nothing if you already flashed supersu and i needed a way to get that point across so i said never flash both
[OnePlus 3 & 3T Cross Device Development] tfae:
I'm sorry if this question was answered before but...

How can I change the encryption password or remove the encryption?? Only by formatting data?
[OnePlus 3 & 3T Cross Device Development] _nKo_:
Well, my bad. I finally flashed 3.0.4.0 build of TWRP, success booting in recovery, flash ROM update, but my phone now only boot in TWRP... I'll have to back to stock :(
[OnePlus 3 & 3T Cross Device Development] cloudx720:
Just power off with power button it will load.
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
you can change the encryption just by changing the lockscreen pin in your rom. I have no idea if it gets removed if you choose swipe-to-unlock. But I strongly suggest not to use a decrypted phone.

A sure way to remove encryption key is formating via fastboot. "fastboot format userdata" should do the trick. Formating in TWRP does not help - the encryption key stays, since its stored outside (or more correct after) the area that TWRP formats.
[OnePlus 3 & 3T Cross Device Development] tfae:
I've already removed the lockscreen PIN and fingerprints and the encryption remains. I'm on RR, latest build, and even if I change/remove the encryption password under the Security settings it just keeps the same I entered in the first time.

My intention is not to use a decrypted phone but to gather knowledge of how can I do it if I eventually need it (for selling the phone, for example).

Thanks for the info! :good:
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
Your current unlock pin must match the encryption pin. Then try to change the pin and it also should change your encryption pin. If it doesn't, you should ask on your Roms thread.
[OnePlus 3 & 3T Cross Device Development] jcadduono:
nope, TWRP wipes the key when you format

formatting with TWRP is probably more reliable than fastboot since it DOES wipe the key, it also makes sure there is room for the key as well and creates the filesystem to the optimal size.
[OnePlus 3 & 3T Cross Device Development] tfae:
But a PIN is different from a password.

The phone is encrypted with an alphanumeric password and a PIN has only numbers.

---------- Post added at 11:11 PM ---------- Previous post was at 11:10 PM ----------

So the only way to decrypt is by formatting?
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
Is that new? I think I formatted back with 3.0.3.1 or one of the betas. Ext4 had same encryption key than my old f2fs.
[OnePlus 3 & 3T Cross Device Development] jcadduono:
yes. backup data then copy your entire internal storage to pc (adb pull /sdcard/)

then format data, copy internal storage back to phone, and restore data

flash no-verity-opt-encrypt if you haven't flashed that or supersu yet

then boot up and you will be running without encryption

no it's been like that since 2.8 afaicr

it might be possible that master key is never regenerated on your device and you could end up with the same key 5ever if you continue using the same password.
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
Make Lockscreen Password and as encryption password. Change password in settings. Now the encryption password should also change. That's stock behavior.

---------- Post added at 12:24 AM ---------- Previous post was at 12:19 AM ----------

Then it's a bug that it's not working? In am pretty sure I saw others here run into the same issue and I for sure was surprised when I had to enter my old pin to decrypt after formatting.

Is this worth looking into? Aka backing up data and coming to IRC?
[OnePlus 3 & 3T Cross Device Development] weakenfalls01:
Can anyone help.....Each time I downloaded the TWRP 3.0.4.0 and compress it into zip file to flash it via TWRP it says file is corrupted...Am I doing something wrong here? The file was in .IMG so I changed it zip file but I get the error each I flash it !

Also is it possible to downgrade to os 3.5.4 cause I want to use Xposed modules since it's not currently function for 7.0
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
you must flash the .img file. Either do it via fastboot as described in OP or flash it from inside TWRP using install -> image and check recovery as destination.
[OnePlus 3 & 3T Cross Device Development] weakenfalls01:
Thanks again everything works fine!
[OnePlus 3 & 3T Cross Device Development] luisangel89:
Can somebody please tell me what I'm doing wrong? The only thing that I'm able to successfully do is to restore my stock rim via TWRP. When I flash a ROM and gapps and press reboot, it just takes me back to TWRP. Thank you guys
[OnePlus 3 & 3T Cross Device Development] snippem:
Had this a couple of times rooting with supersu then hard reset with holding the power button did the trick for me.

But there are more options if you do not want to root.
[OnePlus 3 & 3T Cross Device Development] bilal132:
Currently, I am on OOS 4.0.2 and using TWRP with f2fs file system (Encrypted) but now I want to change data partition to exfat, should I have to perform below-mentioned step?
[OnePlus 3 & 3T Cross Device Development] the_rooter:
none. atleast i dont think any from twrp below 3.0.4.0 will work. I believe gotta wait till official twrp 3.0.4.0 is out.
[OnePlus 3 & 3T Cross Device Development] Midomad:
Wrong!look here:

https://xdaforums.com/showthread.php?p=70689127
[OnePlus 3 & 3T Cross Device Development] luisangel89:
So you think it's because I didn't flash the SuperSU zip?
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
Please dont switch to exfat. Its an 11 year old system that is based on an even older system. See Wikipedia if you dont believe me. If a ROM even works with it (it might, since exfat should be enabled in default kernels for OTG to work - even though it might not, since it cannot store extended file attributes which are needed here and there), it surely won't work well. If you switch, switch to ext4.

If you disagree and still try to use exfat, please leave feedback of your experiences.
[OnePlus 3 & 3T Cross Device Development] snippem:
Nope I think it works because in my opinion supersu flashes something that resets something boot IMG etc.

Maybe there is somebody willing to assist.
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
SuperSU applies the same patch that no-verity-opt-encrypt-5.1.zip does. So if you don't want to flash SuperSU, at least flash this one.

Note: This also is written in the OP.
[OnePlus 3 & 3T Cross Device Development] bilal132:
Sorry for miss typing actually i want write ext4. Thank you for reply.

So its mean i dun need to flash that file if i change the file system from f2fs to ext4?
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
yes, you need to flash the file, so it changes fstab from f2fs to ext4. flash it once, you are done.

[MENTION=5672995]jcadduono[/MENTION] is there a fix for this incoming?
[OnePlus 3 & 3T Cross Device Development] jcadduono:
i have been unsuccessful in figuring out why this is happening, does not appear to affect my own device and no one seems to be willing to provide logs

(the reboot button crashing recovery, which causes other issues, but mostly seems to happen to users on ext4)
[OnePlus 3 & 3T Cross Device Development] f2bacon:
I haaate to post issues on xda but I'm desperate. I was just enjoying how my phone has been running for the past 3 months and I decided to make a twrp backup. Looked like all went well. I went to boot afterwards and it took forever, and gave me system force close issue. I tried restoring my backup and it looks like it's a permanant issue on that backup. I can restore to a backup from months ago but I get tons of crashes and google apps just don't work at all. I updated from twrp 3.0.2.0 to 3.0.3.0 and now I can see it tells me "E:Unable to find file system (first period)." and I've been searching through forums for hours, no luck. I really didn't wanna lose my perfect setup. I was running blissrom 6.3 (marshmallow based) and hadn't had any previous issues. I'm willing to do anything to get back my phone just how it was yesterday. If anyone has absolutely any experience it would be so greatly appreciated. Thank you!!!!

---------- Post added at 10:12 PM ---------- Previous post was at 10:04 PM ----------

If this isn't the appropriate place to post this please just let me know. I'd be willing to pay an appropriate price for help on this one. Please and thank you.
[OnePlus 3 & 3T Cross Device Development] jcadduono:
use 3.0.4 on nougat, flash original system/rom and make new backups. twrp 3.0.3 and older do not have support for the new xattr being used in nougat.

i'll take all ur money thanks (or donate to dees_troy who actually fixes this stuff and is the main force behind twrp by using the donate button on twrp.me website!)
[OnePlus 3 & 3T Cross Device Development] f2bacon:
I don't use nougat, never used nougat on this phone actually.
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
yes
[OnePlus 3 & 3T Cross Device Development] bilal132:
Whenever i am on f2fs file system google play services drains battery alot and reamins at the top in battery setting but now i am on ext4 file system and everything seems normal to me.
[OnePlus 3 & 3T Cross Device Development] JohnHorus:
Do i need to flash the zip from #3 if my data partition is f2fs? My system and cache are still ext4.

[MENTION=5672995]jcadduono[/MENTION] Also, should I clean install before flashing it? Just finished setting my phone up last night, didn't see that notice. I haven't had any issues yet, wasn't planning to switch to ext4, but I might if the battery drain problem appears. I thought I should flash the ext4 fix now, just in case. Would it cause any incompatibilities with data written before flashing it? I'd just clean install now if so, save losing any more work.
[OnePlus 3 & 3T Cross Device Development] cultofluna:
[MENTION=5672995]jcadduono[/MENTION] can you confirm please, that changing filesystem from f2fs to ext4 can affect battery life?..

Thanks...
[OnePlus 3 & 3T Cross Device Development] cloudx720:
Seriously wtf bro.
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
No. The .zip toggles between ext4 and f2fs. So if you go back to f2fs, flash that zip again. Watch the log file for "old filesystem" and "new filesystem". New filesystem should always match your current filesystem. If it doesnt, just flash the zip again. You can flash it as many times as you want, and it just toggles between f2fs and ext4. Remember though, you have to reboot recovery to activate the changes.
[OnePlus 3 & 3T Cross Device Development] bilal132:
Maybe its just a placebo effect but i am very happy with battery life after changing file system.
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
I can assure you, that is not connected to the filesystem.

---------- Post added at 04:51 PM ---------- Previous post was at 04:49 PM ----------

it might be affecting battery life slightly, but things like play services draining a lot of battery is not connected to the underlying filesystem.
[OnePlus 3 & 3T Cross Device Development] kcajith:
I am on OS4.0.1 with my Oneplus 3T and current twrp is 3.0.3.1 beta and want to upgrade my Twrp first and install latest OS patch. How do i do it and I am su rooted
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
Install latest TWRP 3.0.4.0 as explained in OP. Then get the full 4.0.2 ROM from 2nd post. reboot to recovery and copy the file onto the device - just connect it via usb. flash rom, reboot, enjoy.
[OnePlus 3 & 3T Cross Device Development] dbabaev21:
TWRP v3.0.4-0 works better than TWRP v3.0.3-0

I might say slightly faster too.

Also, the SELinux status is on "Enabled" instead of "Disabled".

GREAT WORK DEVS!!!
[OnePlus 3 & 3T Cross Device Development] 1+3_FA:
Hi all,

Ive got a big Problem.

I had Version 3.0.2.8 installed and Downloaded over "official TWRP Updater App" The latest .img (3.0.3.0).

After flashing (in app) and rebooting to recovery TWRP wants a password from me. I couldnt flash sth. Because recovery was decrypted.

So I flashed Version 3.0.2.8 to solve that Problem. But now Nothing happens. The screen stays Black and I can't get into recovery?? What happend?

After pressing Powerbutton for a while, the device boot and Rom started.

Have I deleted my recovery? What should I do?