yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] :
The general clean installation is by wiping everything via advanced wipe options. But that method didn't clear encryption, if you wanted to also clear that then use format data options and then use advanced wipe options. Those 2 options also didn't clear some partition, the only way to completely clean everything while replaced it with a new one is you must use msmdownloadtool.

The more later choice requires more times, so it's up to you.

The first choice-the fastest one-might get you into troubles if you are encrypted and don't clear your lockscreen password first in the OS settings. (twrp fault)

The second choice might get you into trouble if you use the old twrp 3.2.3-1 (twrp fault)

The fastboot format options might get you into trouble if you use older fw/bootloader, it messed up the partition size. But i'm forget which. (oneplus fault)

So yeah, there is no really recommended options since everything-everyone messed up.
[OnePlus 3 & 3T Cross Device Development] knpk13:
thanks for the comprehensive information. i assumed fastboot format userdata would be the cleanest option, but mke2fs failed with a bunch of errors so I just formatted data with twp 3.3.0-1. i dont know how to check if the encryption footer is preserved (which was the last problem i read about)

where can i get this msmdownloadtool (if thats the cleanest option)
[OnePlus 3 & 3T Cross Device Development] :
unbrick thread xda guide section
[OnePlus 3 & 3T Cross Device Development] Dirk:
You're good. No need to do anything else.

I would recommend using 3.2.3-10 for now though. Latest build needs a bug fix for a Nandroid issue.
[OnePlus 3 & 3T Cross Device Development] skhell:
I formatted /data with TWRP 3.2.3-1 and lost encryption. If I use 3.2.3-10 or 3.3.0-1 to format /data will I get encryption back?
[OnePlus 3 & 3T Cross Device Development] Paschfire:
What I suggest to you is starting reading from page 36 and onwards. As this issue was discussed and resolved months ago, including steps on how to re-establish the encryption footer.

Here's a good point to start reading;

https://xdaforums.com/showpost.php?p=78328010&postcount=361
[OnePlus 3 & 3T Cross Device Development] knpk13:
Oh, maybe that's why my restore failed. I couldn't even get a recovery log. All I could salvage was this screenshot. That's why I was looking to do a complete format and started over clean after I saw that error because restores no longer worked.

Everything seems fine now, I'll read the conversation about the nandroid bug (didn't completely understand the details) in the thread again, thanks.

And [MENTION=5866088]Paschfire[/MENTION] I did already read that, was hard to understand given my limited technical expertise (which is wanted to confirm if it was ok) but yeah thanks!
[OnePlus 3 & 3T Cross Device Development] Dirk:
If you formatted with 3.2.3-1 you lose the encryption footer. Formatting with 3.2.3-0 will fix that. (Formatting with 3.2.3-10 will not fix that). 3.2.3-0 had problems with formatting in f2fs though, which is why EXT4 is recommended. For this and other issues, EXT4 makes more sense from a compatability stand point and i highly urge you to use it. (Some ROMs straight up tell you that they don't support f2fs so EXT4 is the way to go)

Once your encryption footer is sorted, 3.2.3-10 is good for daily use. If you absolutely must use f2fs, you can then use this build to Format to that.

There are workarounds for the nandroid restore issues in the latest build, but honestly...why bother? Just wait until they are fixed before using it.
[OnePlus 3 & 3T Cross Device Development] Calum 2:
Twrp 3.2.3-1

LOS 2190505

File system F2Fs

I just updated LOS via the OTA updater (Yay!) and then went back into recovery to flash the addonsu. Everything seems to be working, but I got an error message saying "unable to mount storage". I wiped dalvik & cache, and after each partition was wiped the same "unable to mount storage" was displayed.

Is this something to be concerned about?
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Nope. I've been getting those messages for a while and I've not had any issues.

It's not clear to me why TWRP writes that message. It may be related to having an encrypted data partition or no connected OTG storage (looking at my recovery logs).
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
A possible alternative:

- Boot in recovery

- Flash TWRP 3.3.30-1, reboot in recovery and check.

- Then downgrade to TWRP 3.2.3-10, reboot in recovery and check again.
[OnePlus 3 & 3T Cross Device Development] isit-LoVe:
Decryption

Oneplus 3

TWRP 3.3.0-1

LOS 16.0-20190502

After encrypting my phone with a simple PIN i cannot decrypt the partition in TWRP. Is encryption supported?

I also tryed setting a password instead of a pin but it does not work either.

Unable to mount storage
E:Decrypt took too long., killing process
Full SELinux support is present.
Unable to mount /data/media/TWRP/.twrps
[OnePlus 3 & 3T Cross Device Development] :
You are using a broken twrp. Please read this thread - 3.2.3-1 will remove the encryption foooter on the userdata partition on format. Use 3.2.3-10 or 3.3.0-1 (again: read this thread for known workaround for restoring system and limitations due to removed busysbox).

The message "unable to mount storage" is ok, because the very first attempt to mount userdata fails (and again: read this thread - the following has been explained):

When twrp boots up it tries to mount userdata. If userdata is encrypted, it tries "default_password"(*) to decrypt userdata. If this fails, the red line "unable to mount sorage" is put out on the twrp console and the passphrase dialog is fired up.

(*)Most people belive if they had choosen "No" on "Secure start-up" there is no encryption passphrase set. This is just impossible: if userdata is encrypted there has to be a passphrase. If people choose "No" on "Secure start-up", the encryption passphrase is set to "default_password", which twrp as well as the rom knows of.

You don't need to be concerned about "unable to mount storage", but you should be concerned using a broken twrp version.

BTW: if you've flashed addonsu once, it will persist through dirty flashes (aka updates) due to addon.d like gapps.
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
About the well-known date/time issue on TWRP 3.2.3-10 (https://androidfilehost.com/?fid=1395089523397907195):

A possible workaround

1- Flash 3.3.0-0 or 3.3.0-1, reboot recovery, reboot system and then reboot recovery for checking date/time issue

2- Flash 3.2.3-10, reboot recovery, reboot system and then reboot recovery for checking date/time issue... (correct date/time?)

It worked for me. Can anyone confirm it?... even if we can live with a wrong date/time... :)

NB: I flashed *.img via Install in recovery.

Edit:

Confirmed by [MENTION=1763460]Dirk[/MENTION] (https://xdaforums.com/showpost.php?p=79472190&postcount=1926) ...

but denied by [MENTION=8423339]Johannes1098[/MENTION] (https://xdaforums.com/showpost.php?p=79474116&postcount=1933)
[OnePlus 3 & 3T Cross Device Development] Calum 2:
Confirmed here.

Is there any worry that TWRP wouldn't flash a backup that has a date that's out to lunch?
[OnePlus 3 & 3T Cross Device Development] Johannes1098:
Nope, and you can always rename the backup (folder) under /sdcard/TWRP/BACKUPS/YourSerial to the correct date if you want (for clarity or so..)
[OnePlus 3 & 3T Cross Device Development] Dj_Fex:
Hi Dirk,

where can I find 3.2.3-10?

https://eu.dl.twrp.me/oneplus3/ only lists 3.2.3-1

Regards
[OnePlus 3 & 3T Cross Device Development] Johannes1098:
Use Google: http://lmgtfy.com/?q=oneplus+3+twrp+3.2.3-10

Second Link is the direct download Link. The first link is a thread to the TWRP version
[OnePlus 3 & 3T Cross Device Development] Dj_Fex:
Wasn't the second result for me (google's results are personalized)

Do you mean this build?

https://androidfilehost.com/?fid=1395089523397907195

It's unofficial though...
[OnePlus 3 & 3T Cross Device Development] :
Yep, that's the correct version.
[OnePlus 3 & 3T Cross Device Development] ScratMan38:
Hello, I saw in the changelog that TWRP is now signed and allows to lock the bootloader. But would it work if the phone is rooted with Magisk ?
[OnePlus 3 & 3T Cross Device Development] :
This is not a twrp related question. Magisk doesn't alter the recovery partition, but the boot partition. If the Magisk reassembled boot image is signed properly it should work - again: this is NOT recovery related and the Magisk thread is a better place to ask if Magisk works with locked bootloader.
[OnePlus 3 & 3T Cross Device Development] Cyagon:
Hello,

I dont know if it belongs to here, but i had a couple of problems recently:

Oneplus3 update from:

- LineageOS 16 2019.05.09

- OpenGApps Pico 2019.05.09

- Magisk 19.1

- OOS Firmware 5.0.8

- TWRP 3.3.0-1

- Cache/Data/System Partition EXT4, Reformatted via TWRP

to

- LineageOS 16 2019.05.13

The Device had full-disk-encryption, bootloader was open.

When i tried to updated the device with the official LineageOS-Updater, TWRP didnt ask for the muster to encrypt, thus the data-partition was not mounted while flashing the update, thus Magisk didnt do the addon.d stuff, and while lineageos accepted the muster while booting the rom, it did bootlooped back to recovery. multiple times. A restart to the recovery (the decryption did work this time) and a dirty-flash of LineageOS 16 2019.05.09 (since the data-partition was correctly mounted this time, magisk also automatically reflashed via addon.d) didnt work either. A complete wipe of Cache/Data/System and a Reflash fixed it for me.

Maybe its worth investigating....
[OnePlus 3 & 3T Cross Device Development] Anghirrim:
Hi, where did you see that?
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
About [MENTION=5091734]dianlujitao[/MENTION]'s fix (https://xdaforums.com/showpost.php?p=79385339&postcount=1867)

The status is now "Merged" ==> https://gerrit.omnirom.org/#/q/project:android_bootable_recovery

NB: A workaround before the official release of TWRP 3.3.0.2 (?):

When you do a Nandroid Backup select 'System Image' instead of '/System'

==> https://xdaforums.com/showpost.php?p=79492312&postcount=1985
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Locked bootloader and ...

Signed TWRP: https://xdaforums.com/oneplus-3/one...ageos-16-0-oneplus-3-3t-t3866517/post79351881

Magisk: https://xdaforums.com/oneplus-3/one...ageos-16-0-oneplus-3-3t-t3866517/post79222537
[OnePlus 3 & 3T Cross Device Development] Anghirrim:
Well thanks.

Quick question then. Seems bootloader can be locked/unlocked without loosing data if TWRP is installed.

So what's the use finally? To me, the benefit of a locked bootloader was indeed the loss of data in case of someone stealed my phone.

But finally, encryption with a pin at startup does the trick.

Is there any security benefit then that I miss?

Thanks
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Benefit: the ability to use banking apps without needing a patched kernel or Magisk because it'll pass Safety Net.

Personally, I like an unlocked bootloader because I can change/test recoveries. And with encrypted data and an on boot password my data is safe.
[OnePlus 3 & 3T Cross Device Development] Anghirrim:
Oh right! I don't use any banking app and NFC is off by default for me. :D

Didn't think about that.
[OnePlus 3 & 3T Cross Device Development] dianlujitao:
Will be included in the upcoming TWRP 3.3.1
[OnePlus 3 & 3T Cross Device Development] SGN3fan:
You saved me!

Thank you very much!!! :)
[OnePlus 3 & 3T Cross Device Development] vandon1:
Wait, so do you need to be in recovery to do fastboot oem lock and not wipe everything or does the non-wiping fastboot oem lock work from the bootloader as normal(except for erasing everything)
[OnePlus 3 & 3T Cross Device Development] rohitharkhani:
Need help

After locking boot loader device password is not working for boot as well as recovery. My device is encrypted and same pin doesn't work as well as "default_password" doesn't work

OS : Lineage OS 16 - 9 May 2019

TWRP : 3.3.0.1
[OnePlus 3 & 3T Cross Device Development] :
Format data via fastboot

Unlock again

Flash twrp

Restore backup

Hope you got the last one covered....
[OnePlus 3 & 3T Cross Device Development] Anghirrim:
Hey, I don't get the question sorry...

But fastboot commands can only be used in fastboot mode.
[OnePlus 3 & 3T Cross Device Development] rohitharkhani:
format and lock again or unlock again?
[OnePlus 3 & 3T Cross Device Development] unimke:
Guys. I'm on LOS pie and I'm trying to lock the bootloader using the "fastboot oem lock" command but it does not work and I still get the 5 second warning on boot.

P.s I installed LOS coming from OOS CB2; I am encrypted with data partition set to ext4
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
TWRP 3.3.1-0 for OP3/3T is not yet avalaible but:

==> https://twrp.me/site/update/2019/05/22/twrp-3.3.1-0-released.html

Coming soon here: https://dl.twrp.me/oneplus3/twrp-3.3.1-0-oneplus3.img.html
[OnePlus 3 & 3T Cross Device Development] :
At the moment building latest twrp for our device has some issues:

https://jenkins.twrp.me/job/oneplus3-prod/
[OnePlus 3 & 3T Cross Device Development] anykiel91:
Does anyone else have issues installing Magisk /booting after installing Magisk on latest stable Pie? On oneplus 3t
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
When asking for help, it would be useful:

- to read before the thread ... and ask yourself the question: is it the right thread ?,

- to provide your device configuration (firmware version?, TWRP version?, unlocked or locked bootloader?, build ?, gapp nano, pico or ?, su ?, install Build from a dirty or clean flash ? ...),

- to give more details about the problem (custom kernel ?, flashing sequence ?, ...) and a logcat (if relevant),

... wouldn't it?
[OnePlus 3 & 3T Cross Device Development] anykiel91:
I have read the thread, and searched for hours on forum for answer before posting, thanks.

Using the latest oneplus 3T stable Pie 9.0.2 with latest 3.1.1.0-1 twrp, latest Magisk 19.2 (also tried 19. And 18.1)

Unlocked bootloader of course.

No gapps/su - it's official OP system build.

Flashing clean, nothing custom.

I don't have any logcat, but please point me where I can find them and I will post them on here as well.
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
I suggest you use the latest official TWRP (3.3.0-1 ... although version 3.2.3-10 would be more appropriate)

and do not use 9.0.2 fw... Flash 5.0.8 fw (https://www.celsoazevedo.com/files/android/oneplus3t-modem-firmware/)

==> Please read this post : https://xdaforums.com/oneplus-3/one...-lineageos-16-0-oneplus-3-3t-t3866517/page208
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Please don't post the same message more than once (you posted here: https://xdaforums.com/oneplus-3t/help/magisk-install-pie-t3933760/post79600449). It's against XDA rules:

5. Create a thread topic or post a message only once, this includes external links & streaming media.

See https://xdaforums.com/announcement.php?f=263
[OnePlus 3 & 3T Cross Device Development] sajed98:
hi. latest twrp supports OOS pie with pie firmware? Would be great to know. Thanks.
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
TWRP 3.3.1-0 for OP3/3T is now avalaible ... :good:

==> https://dl.twrp.me/oneplus3/twrp-3.3.1-0-oneplus3.img.html
[OnePlus 3 & 3T Cross Device Development] kryzeK:
What app do you recommend for flash twrp img files?

Every "flashers" I know seems abandoned (Flashify, Rasher...) and the TWRP Official App has a bad reputation for having ads and collecting users' personal data.
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
I usually flash img file in recovery mode ... or via fastboot if issue.
[OnePlus 3 & 3T Cross Device Development] :
I would recommend "fastboot flash recovery recovery.img". I do not have twrp app installed, no benefits to have....

[MENTION=5091734]dianlujitao[/MENTION]; changelog??
[OnePlus 3 & 3T Cross Device Development] Doc Sniper:
What's new in 3.3.1-0:

* Fix selinux issues during formatting - dianlujitao
* Various fixes for toybox and toolbox builds - CaptainThrowback and bigbiff
* Flash both A and B partitions when installing a recovery ramdisk - Dees_Troy
* Add option to uninstall TWRP app from /system - Dees_Troy
* Create digest for subpartitions - bigbiff
[OnePlus 3 & 3T Cross Device Development] :
Anyone can confirm the backup issue is solved? Any new/remnants issues?
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
Yes ... See this post : https://xdaforums.com/showpost.php?p=79608337&postcount=2087
[OnePlus 3 & 3T Cross Device Development] :
So no new issues? Everything is fixed? What sorcery did dianlujitao learn?
[OnePlus 3 & 3T Cross Device Development] cokesucker:
Not solved for me, I'm referring to 3.3.1-0 from official website and I'm on RR Pie. Still nandroid restore goes to bootloader menu. Went back to 3.2.3-10
[OnePlus 3 & 3T Cross Device Development] Paschfire:
But were you trying to restore a Nandroid backup created with 3.3.1-0? Or a backup created using different TWRP version.?
[OnePlus 3 & 3T Cross Device Development] cokesucker:
I see what you mean, yes i was trying to restore a backup using 3.3.1-0 but the backup was initially created using 3.2.3-10.

So you are saying i should create the backup using 3.3.1-0 and restore using 3.3.1-0 then it should work..
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
For checking the backup issue of 3.3.0-1 TWRP:

==> I created the backup using 3.3.0-1 and the restore using 3.3.1-0 ... and it worked.
[OnePlus 3 & 3T Cross Device Development] sajed98:
Does the latest update support OOS Pie?
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
Please, read this thread : https://xdaforums.com/oneplus-3t/how-to/firmware-beta-10-t3631166
[OnePlus 3 & 3T Cross Device Development] sajed98:
So it doesn't support for now? Any chance in the future?
[OnePlus 3 & 3T Cross Device Development] :
Please explain how you come to this conclusion??? You leave me speechless behind... Many people have used twrp 3.3.x-x for flashing... If you read this thread, you'll see 3.3.x-x is build against android-9.0...

See installation instructions fpr 9.0.2: https://xdaforums.com/showpost.php?p=75026509&postcount=3
[OnePlus 3 & 3T Cross Device Development] Dirk:
Works for Eric....

I guess backward compatability with older Nandroids isn't always assured. First thing to do after updating TWRP is take a new Nandroid with it.

That does raise another question though. If you do the above but have to downgrade TWRP because of an issue, will the Nandroid you just took on the new version work on the older version you downgrade to? I guess that has yet to be tested.
[OnePlus 3 & 3T Cross Device Development] sajed98:
Why is he flashing the firmware package? Why would he flash the 9.0.2 firmware, if he is flashing 9.0.2? I don't understand. I read the last few pages, and thought people were using 9, but with 5.0.8 firmware, to get TWRP running. Please say what it means.

Edit: I guess you guys thought I was on 5.0.8. I'm not. I wiped everything and started over by flashing 9. I'm on Pie.
[OnePlus 3 & 3T Cross Device Development] :
??? I've never said nor linked something about flashing firmware. I linked the posting with installation instructions for 9.0.2. Watch your quotings...
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
I will try ... asap ... ;)

Edit : and thank you for your Anatomy of a Boot Animation ... https://xdaforums.com/showpost.php?p=79530187&postcount=39
[OnePlus 3 & 3T Cross Device Development] sajed98:
You told me to read the thread for my answer. I did. I saw people flashing 5.0.8 firmware on OOS Pie ROM to get TWRP working. I came to the conclusion reading that post. That post is from the thread you asked how I came to that conclusion.

My conclusion never had anything with this thread. I know people flashing pie custom ROMs on this TWRP. I was asking about Pie OOS.
[OnePlus 3 & 3T Cross Device Development] :
Let's say in the future, i forgot which twrp i used and the newest didn't work for the restore.

Another hassle i should live with lol
[OnePlus 3 & 3T Cross Device Development] Paschfire:
If you read/search a little more, they remarked "flashed the firmware package", 9.0.2 firmware was never mentioned specifically.

If you backtrack through topic being discussed, the user was referring to a special firmware package built for flashing OOS 9.0.2 over OOS 5.0.8. That combined OOS 9.0.2 firmware alongside OOS 5.0.8 key-master and Bootloader.

This was all to avoid encryption key issues when flashing OOS 9.0.2 with having an unlocked bootloader, requiring to factory reset the device.

Here is the post discussing the firmware package in question:

https://xdaforums.com/showpost.php?p=79579469&postcount=522
[OnePlus 3 & 3T Cross Device Development] sajed98:
Ok. I read that post but thought that he had flashed because you can't use TWRP with OOS Pie. So I'll just flash the latest TWRP.
[OnePlus 3 & 3T Cross Device Development] :
[MENTION=453305]pash[/MENTION]fire: I know, you know; and I know that's implied with your posting. Just to avoid more misunderstandings with people not willing or failing to read this thread, the 9.0.2 fw thread and the oos 9.0.2 rom thread:

THE ENCRYPTION ISSUE IS NOT RELATED TO TWRP!!!

TWRP-3.3.x-x WORK FOR PIE ROMS INCLUDING OOS 9.0.2!!!
[OnePlus 3 & 3T Cross Device Development] Dirk:
Thank you for reading it! I hope you found it useful. I look forward to seeing some Eric_Lev Boot Animations in the near future! :good:

I thought of this. Just add the TWRP build number to the backup filename, along with usual time/date/ROM build. When you Nandroid make sure to do it with four different versions of TWRP just in case. :D
[OnePlus 3 & 3T Cross Device Development] unimke:
Guys? Any words?
[OnePlus 3 & 3T Cross Device Development] :
Flash fw5.0.8, LineageOS doesn't support Pie fw at the moment
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
Has anyone else experienced a Nandroid backup (TWRP 3.3.1-0) that freezes before the end?... Note it's quite rare.

I will do my best to provide a logcat if someone has had this issue recently.
[OnePlus 3 & 3T Cross Device Development] :
Nope, no problems with nandroid backup (twrp 3.3.1-0) for me, fortunately.
[OnePlus 3 & 3T Cross Device Development] Dirk:
I have actually. Not sure if it's the same issue as you, but i had one crap out on me with an error and had to be restarted. Can't remember what the code was now. If it happens again i'll pay more attention and try to get details. I don't think i've ever had another instance of a Backup failing before.

It completed fine after restarting it.
[OnePlus 3 & 3T Cross Device Development] BonnyBedlamBoy:
yes it is really rare. if i remind correctly it ended in a loop of death finishing the backup. forced reboot was needed to do the backup again.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Fyi, I'm still getting the following error when restoring a system backup of OOS 9.0.* (tested on 9.0.2 and 9.0.3) using TWRP 3.3.1-0. Restoring a system image is ok.

Error during restore process.

extractTarFork() process ended with ERROR: 255
[OnePlus 3 & 3T Cross Device Development] :
Reading material: https://github.com/TeamWin/Team-Win-Recovery-Project/issues/964

I also visited the op5/6/pixel's forum, looks like everybody has broken twrp at some point lol
[OnePlus 3 & 3T Cross Device Development] Eric_Lev:
I have 2 OP3T with same configurations (FW 5.0.8 / TWRP 3.3.1-0 / ext4 / encrypted data).

Is there a way to export a Nandroid backup performed on the first OP3T to the second one (i.e. restoring the Nandroid backup)?
[OnePlus 3 & 3T Cross Device Development] Viper The Ripper:
Flashify could do the trick and make your work easier ;)
[OnePlus 3 & 3T Cross Device Development] :
Is it just by transfering your twrp folder on /sdcard > pc > 2nd device? :confused:

I believe as long as you don't restore any unique partition like efs, restoring /system /data /boot should be safe

i could be wrong though, never done it before... except the worse like missing imei etc.

Be sure to also backup everything first on the second device and save it in the pc..