yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] Prommah:
So I just ran into the issue of the data being wiped by entering recovery on OP3 with the latest official. I tried to go several pages back in this thread to get some idea of what's going on with that, but there was a lot of conflicting information. So here's my first-hand experience as of 30 minutes ago:

I have an OP3. I had the latest official TWRP, 3.1.0-0, thinking the issues fixed by 3.0.4-1 would have been merged. I had Lineage OS 14.1 2017-04-20 weekly installed.

I tried to update to the new weekly build through the built-in updater. The phone rebooted properly and installed the update without issue. When it finished booting, I was met with the setup wizard. I was pretty sure I knew what that meant as I've been here before from trying out Lineage before there was an official 3.1.0-0 and before I knew about 3.0.4-1. To be sure, I went through the initial setup and then rebooted. Everything was still set up. I rebooted and went into recovery, then rebooted into system. Hello again setup wizard!

I've installed 3.0.4-1 again and I can boot into recovery and then into system with no data loss.

So, in summary: 3.1.0-0 on OP3 with Lineage OS 14.1 will wipe your data if you enter recovery. The actual internal storage (/sdcard) was untouched. It may happen on other ROMs, I don't know. 3.0.4-1 is safe in this regard.

Edit: Can't link to it, but looks like this has an issue on the TWRP GitHub (TeamWin/Team-Win-Recovery-Project). Issue ID is 873
[OnePlus 3 & 3T Cross Device Development] Rebel7022:
Been knowing that. Everyone uses blu
[OnePlus 3 & 3T Cross Device Development] slamdunksaliby:
When you say 3.1.0-1 that works right for the OnePlus 3T, do you mean the official one or the Blu one? Thanks!
[OnePlus 3 & 3T Cross Device Development] laupuy:
Hi,

Official (it's 3.1.0-1)

...but blu_spark also works (it's 3.1.0-x v27)

;)
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Both work fine.

For everyone let me do a quick comparison. For people running F2FS on data official 3.1.0-1 takes longer to boot in comparison to Bluspark latest however the official is quicker in taking nandroid backups. I've tested all versions and 3.0.4-1 and 3.1.0-1 are always faster on taking nandroids.

On the other hand Bluspark is faster on boot and much more upto date and synced with TWRP Android-7.1 branch including more recent upstream. On the latest the ADB restore is also fixed. So technically if you want bleeding edge software you should remain with the modified version until OP updates the build.

If the official build is not updated for another few months, it would not work on latest oos as with every oos and beta versions oneplus changes the device keys and soon would come a time when the existing 3.1.0-1 would be out of fuel if not updated.

[MENTION=5672995]jcadduono[/MENTION] Being the official maintainer we need you to get back here when you get time. I hope you are doing well, thanks for your contribution till date. We look forward to more from you :fingers-crossed:
[OnePlus 3 & 3T Cross Device Development] kessaras:
Latest Op3 & op3t twrp

Im using this post with that title so that every new user finds the right TWRP until the OP is back and we have an update.

Please use the search bar, don't flash the wrong TWRP and then complain.

Click here​

to download blu_spark's TWRP for OP3 and OP3T.
[OnePlus 3 & 3T Cross Device Development] lawwd_have_merci:
so is 3.1.0.0's 'wipe data on flashing anything' bug getting fixed anytime

soon?
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
As mentioned on the last post, we have no info on that till OP reports back.

For now if you are OP3 user I recommend the latest Bluspark unified version but if you are 3T user 3.1.0-1 works fine for now.
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
Not likely. The official maintainer for our device is dealing with a lot of personal things and hasn't been able to do much work. The source code has the issue fixed. Use Bluspark TWRP for now
[OnePlus 3 & 3T Cross Device Development] Formhault:
I have a OnePlus 3. Using Vertex ROM right now, been using official TWRP 3.1.0-0.

Which Blu_spark TWRP do I need if I am to replace the official one? I heard build X doesn't work if you have EXT4 and so on... Been a while, though, not sure if they're just fine now.

Thanks in advance.
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Just flash the latest V27 its unified for both 3 & 3T :good:
[OnePlus 3 & 3T Cross Device Development] rjglenn:
I'm pretty good at following written instructions. I have successfully modified every phone I have ever had but this one has me stuck. Here's my problem, I'm hoping someone will help.

This line in the instructions has me stumped:

I do not see this. On my screen I have the 1+ logo and Fastboot Mode but there is no menu. I can press my volume keys and nothing changes. OOS 3.5.8. When I reboot from power off by holding the volume down & power button I get the 1+ logo and powered by android and nothing else. I tried the adb shell wipe_misc; adb shell reboot recovery command but adb returns error:no devices/emulators found. If I reboot to android and then reboot into recovery using the advanced menu I reboot into the stock recovery. Any ideas?
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Flash the recovery and you can use fastboot boot recovery file name

Or just do a force start and when the secure boot comes use the Vol key to select recovery mode

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] rjglenn:
[IMG="1+3 recovery issue"]I appreciate your reply but this didn't work. ADB returns "FAILED (remote: dtb not found)". My internet research tells me I am trying to boot an incompatible recovery. This is interesting because I am trying to boot a recovery obtained from this very thread and is supposed to be specific for the 1+3.

I'm going to try other ones and see if I can make this work
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Try the V27 by Bluspark if you have OP3

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] null0seven:
Twrp 3.0.4.1 works fine.
[OnePlus 3 & 3T Cross Device Development] rjglenn:
Well.......

This is my son's phone. he tells me now that its a OnePlus2. I thought it was a 3. I'll be moving along now...
[OnePlus 3 & 3T Cross Device Development] kessaras:
There is no way you don't see that message when you reboot unless you have another phone.

And by the way , if you flash TWRP forget the otas , you will have to manually download and flash the whole ROM (it's named ota again but it's full ROM) .

So first update to 4.0.2 using small ota , then flash TWRP from Blu , lastly flash dm verity disabler. Now do whatever you want.

Oos 3.5.8 had many bugs. It's better to go to 4.0.2 before you do anything.
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
Read post above. Issue resolved.
[OnePlus 3 & 3T Cross Device Development] kessaras:
op2 lol :D
[OnePlus 3 & 3T Cross Device Development] rjglenn:
@ kessaras, I knew I was doing something wrong, I just didn't have any idea how wrong. I get a phone in a case, I'm told it is something, I didn't even check. I'm lucky really. I could have completely bricked this thing trying to load the wrong recovery. Oh well, we are all set now with the correct recovery for his phone, all is well.
[OnePlus 3 & 3T Cross Device Development] siwan05:
Hey guys,

I have a weird issue that I have not found a solution to and I hope you can help me out. My op3 is running OB14, twrp 3.0.4-1, latest Magisk.

in twrp when trying to install a zip/img the button to go up a level in the file tree is missing, there is no way for me to currently go out of the folder that I'm currently in.

I have tried re-flashing both the rom and twrp without any luck, the issue persists.

Any idea what might be wrong? Cheers!
[OnePlus 3 & 3T Cross Device Development] nayyarsheikh:
hi there i cant flash the recovery can anyone help i am on fastboot mode

whenever i try to flash the recovery it says it cant load the img
[OnePlus 3 & 3T Cross Device Development] Xennet:
Flash the latest bluspark twrp v27 and report back

..
[OnePlus 3 & 3T Cross Device Development] Nevermindthelabel:
Need more info, but I'm guessing the recovery isn't in the same directory as your fastboot
[OnePlus 3 & 3T Cross Device Development] siwan05:
Tried that but didn't work either.

Booting up and removing the folder that twrp was stuck in solved it though, it started in root folder and up option is back!
[OnePlus 3 & 3T Cross Device Development] Xennet:
That's weird. But good to know the solution...
[OnePlus 3 & 3T Cross Device Development] DeFeAtkO:
Hi guys, what i can do when after installation it wants password, but i didnt setup any and i dont know actual password?

When i boot up to TWRP, it wants password, if i cancel it, i cant restore my device and cant see any zips in internal storage, how can I fix it, please?

I cant boot to ROM, because it want password too, what can I do?

//edit: I already solved my problem, if someone have issue with password and doesnt care about data (i didnt, bcs i wiped my data before) so all i did was via TWRP wipe all data, cache, dalvik simply all the settings EXCEPT system, reboot and woala
[OnePlus 3 & 3T Cross Device Development] kk131:
This link may help http://www.howtogeek.com/240657/how-to-fix-pin-errors-after-restoring-from-twrp-android-backups/ .
[OnePlus 3 & 3T Cross Device Development] SKULSHADY:
What's the difference between this twrp and the v3.1.0-1 on twrp.me?
[OnePlus 3 & 3T Cross Device Development] kessaras:
3.1.0-1 is obviously the latest twrp on twrp servers.

blu_sparks' twrp is updated more often though. So if twrp is slow to update and takes more than a month or two, just download and use blu_sparks' twrp.

**EDIT: the differences are found in the change logs. There are always small bug fixes , or big ones :D since its a new phone its good to follow the updates that have fixes
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Check out the XDA version theme :laugh:

All credits [MENTION=5247964]G.M.L[/MENTION].

https://xdaforums.com/android/themes/themes-twrp-theming-links-development-t3598833
[OnePlus 3 & 3T Cross Device Development] kessaras:
nice.

its fully compatible with the latest blu_spark and 3.1.x indeed
[OnePlus 3 & 3T Cross Device Development] Redskyer:
Huge Problem with TWRP

Hi guys,

I have an OP3 and a really big problem with TWRP. Every time I boot in recovery (TWRP 3.1.0.0) my installed Lineage OS 14.1 (04-27-2017) will reset to factory default. I did a backup with TWRP and after reboot the whole OS was resetted. When I try to restore all theems to be okay. No errors in the log, but after reboot the system is set to default again. I don't know what I can do to restore my backup. I've also tried TWRP 0.3.0.0. Any ideas what I can do?
[OnePlus 3 & 3T Cross Device Development] :
TWRP 3.1.0-0 for op3 is buggy, flash latest TWRP 3.0.4-1 from op (first post) or latest blu_spark.
[OnePlus 3 & 3T Cross Device Development] Redskyer:
Okay, I'll try. Thank you.
[OnePlus 3 & 3T Cross Device Development] Flint2:
For the ones that prefer to install from the computer using adb shell, the command line guide for TWRP is back in:

https://twrp.me/faq/openrecoveryscript.html
[OnePlus 3 & 3T Cross Device Development] mici01:
Hey, I just tried flashing TWRP after I rescued my 3T from a Brick, but now TWRP won't boot.

All I get is a black screen with the white notification light.

I already searched this thread and reflashing got me to the same result.

Any ideas?
[OnePlus 3 & 3T Cross Device Development] skeeter123:
Have you tried this?

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

That process can be a little fussy. But stick with it. It's gotten me out of a jam several times.
[OnePlus 3 & 3T Cross Device Development] mici01:
Yes, I followed that to unbrick it. But I can't get TWRP functioning properly.
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Try flashing the latest V27.1 from Bluspark :svetius:
[OnePlus 3 & 3T Cross Device Development] djsubterrain:
When you rescued it, did you flash the latest stock rom back in? The firmware has to match.
[OnePlus 3 & 3T Cross Device Development] mici01:
Apparently not. The tool I used automatically flashed a Marshmallow version.

But I was able to boot TWRP directly ( via fastboot boot twrp.img) and flash the newest firmware.

Now it is working properly again, thanks.
[OnePlus 3 & 3T Cross Device Development] the-blind-bandit:
Is this a fork of the official version?

Should i use this or the seemingly newer 3.1.0-1 on the official website?
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Both are fine. 3.0.4-1 is unified and 3.1.0-1 is devixe specific for 3T, flash any.
[OnePlus 3 & 3T Cross Device Development] kessaras:
Why nobody uses search ?

Write down on that crap search box up here :

"Latest op3 twrp" or "latest op3t twrp" and you will find what you need to flash.

Also you will find many posts since the OP left us that will help you understand everything.

Next time you will be ignored by me at least. it's killing my ideals to write everyday that 3.1.0 is buged on op3 only.
[OnePlus 3 & 3T Cross Device Development] the-blind-bandit:
Thanks but the problem is you need to know what to search

and if lots of people aren't using search, then search its self

is the problem not the people who aren't using it (IMO).
[OnePlus 3 & 3T Cross Device Development] kessaras:
lol

square opposition

so we found the culprit...

its the search box :D
[OnePlus 3 & 3T Cross Device Development] Cjeske69:
need help running twrp.img

I'm having trouble when trying to run the code for twrp.img. Command prompt throws out an error saying it "cannot load 'twrp.img" Am I doing something wrong? I have the bootloader unlocked.
[OnePlus 3 & 3T Cross Device Development] dugi9991:
Are you in fastboot mode? And can you please write the command you are executing?
[OnePlus 3 & 3T Cross Device Development] Cjeske69:
yes, I'm in fastboot mode. I'm writing "fastboot flash recovery twrp.img" I've tried renaming the file and made sure it didn't say "twrp.img.img" but regardless, it still throws an error.
[OnePlus 3 & 3T Cross Device Development] dugi9991:
Ok, is cmd opened in the folder where the recovery image is? You can open it with Shift + right click - > open cmd here and then type the command.

Also, be sure that the device is recognized in fastboot via cmd.
[OnePlus 3 & 3T Cross Device Development] Cjeske69:
that worked. duh. lol. thank you. is there anyway to get rid of the warning screens that the device shows before it enters recovery? the messages about, "if you wish to no longer view this screen then relock bootloader" or whatever it says. that's the gist though.
[OnePlus 3 & 3T Cross Device Development] Striatum_bdr:
No
[OnePlus 3 & 3T Cross Device Development] okgnew:
I have a question about TWRP backup/restore:

I had Data partition formatted as EXT4 when I did Data partition backup.

Now I switched Data partition to F2FS. Can I do Data partition Restore in TWRP?

Will it restore everything correctly (including security contexts) and keep my Data as F2FS?
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
You'll most likely have to delete your key files (pin/password) but if you disable formatting in the TWRP settings by selecting RM -rf it will restore and keep the formatting.
[OnePlus 3 & 3T Cross Device Development] Raainman:
I have the followong issue since I installed OS 4.1.3. I have twrp installed 3.0.4-1 which worked fine before.

After 4.1.3. I no longer have to enter my decryption pin when booting Android. The storage is still Encrypted also twrp is also not requesting a pin. What could be the issue and how can I resolve this?
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Select the security again and select require pin to start device at startup

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] Raainman:
Thanks that was it!
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
FYI Official 3.1.1-0 is Out [emoji4]

Just to avoid confusion

OP 3

https://dl.twrp.me/oneplus3/twrp-3.1.1-0-oneplus3.img.html

3T

https://dl.twrp.me/oneplus3t/twrp-3.1.1-0-oneplus3t.img.html

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] kessaras:
but we don't have a twrp maintainer here......

the question is if this official twrp has merged the bug fixes of our previous maintainer and blu_sparks !

we don't know if it's safe :rolleyes:

i'll keep going with blu_sparks. Anyway its no big deal if i update to 3.1.1 a couple of days later
[OnePlus 3 & 3T Cross Device Development] Midomad:
Its' safe and working well on the OP3T,

It's only a recovery after all [emoji6]
[OnePlus 3 & 3T Cross Device Development] kessaras:
on op3 is only a recovery too but its rolling back after every reboot :D

op3 users at reboot its like they never boot their phone

EDIT: on 3.0.1.x official
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Working fine for me, even themes work fine, I tested a few.

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] Nezorflame:
Arter's recovery is working awesome, includes some F2FS stuff for future AOSPA release.

http://www.arter97.com/browse/op3/AOSPA/
[OnePlus 3 & 3T Cross Device Development] ephumuris:
I'm somehow getting something wrong here... Been rooting and installing custom ROMs since my HTC Tattoo so no newb...

I installed TWRP, swiped to allow modifications. Installed the DM Verity disabler zip linked in OP, then flashed a MIUI rom. Every time the rom boots it asks for pin/password. My screen lock pin doesn't work... Once I boot to recovery it then asks for the pin as well and says invalid. I've changed my pin twice but keep having to sideload a stock ROM. :(
[OnePlus 3 & 3T Cross Device Development] Nezorflame:
Your data is still encrypted. To decrypt, backup ALL of the phone's contents and do "fastboot format userdata" which will erase /data (including internal storage!). After that, install any ROM you like, it won't ask for the password on boot (unless you decide to encrypt it again).
[OnePlus 3 & 3T Cross Device Development] ephumuris:
Is that the same as the format user data option in TWRP?

After I did that the MIUI ROM just kept saying I need to wipe to be able to boot but it kept rebooting.
[OnePlus 3 & 3T Cross Device Development] Nezorflame:
In TWRP: Wipe -> Format Data.

After that in most cases you have to reflash your ROM.
[OnePlus 3 & 3T Cross Device Development] ephumuris:
Yeah I did wipe and reflash I'm thinking I need to try a different ROM next time just to rule that out! I tried RR but got an error trying to flash. Never had issues like these before with an Android phone. :)
[OnePlus 3 & 3T Cross Device Development] RohanAJoshi:
Yep, it's only recovery and if not working properly then it can "only" wipe you all data like photos etc.

Happened me once when i was encrypted.

So better to wait for others to use and test.
[OnePlus 3 & 3T Cross Device Development] Uumas:
Or back everything up and test
[OnePlus 3 & 3T Cross Device Development] Morphine1:
I've blacked it out.

Enjoy.

[19/05/2017] [BLACK]twrp-3.1.1-0-oneplus3t

[19/05/2017] [BLACK]twrp-3.1.1-0-oneplus3
[OnePlus 3 & 3T Cross Device Development] Primokorn:
Awesome! Could you post sha1 sums?
[OnePlus 3 & 3T Cross Device Development] shriom_manerker:
why cant i find this ! i had the link saved ! just cant find blue sparks twrp thread ! can u please link?
[OnePlus 3 & 3T Cross Device Development] :
Here we are:

https://xdaforums.com/devdb/project/?id=15934#downloads
[OnePlus 3 & 3T Cross Device Development] toddvarg:
Not sure if you have gotten an answer on your question, but I've experience the same problem. I solved it with flashing the rom again, and did a dirty/clean flash. Wiped /dalvik, /cache and /system, and then flashed rom, gapps and magisk (if you use that). It turns out that I did a restore from nandroid-backup where I backup everything except chache and when I restored, I did the same. So afterward when I tried to make a new backup from the same nandroid (after I added some apps etc), I think I had som conflicts in the system. It worked for me at least.
[OnePlus 3 & 3T Cross Device Development] Midomad:
3.1.1-0 Changelog:

Latest TWRP changes (3.1.1)

Latest LineageOS kernel sources

Latest LineageOS changes (Android 7.1.2)

Added /system_image partition to be able to flash system.img files via TWRP.
[OnePlus 3 & 3T Cross Device Development] :
3.1.1-0 for 3 still doesn't work for me: after flashing in fastboot data get corrupt and partly deleted. Same behavior as in 3.1.0-0.

Restore nandroid was my life savior, incl. flashing back blu_spark v29 of course.
[OnePlus 3 & 3T Cross Device Development] BonnyBedlamBoy:
it happened once on yesterday suddenly during a backuo with oos beta 7 and latest blu_spark twrp. never experienced this on pre beta 7 versions. but i started backup again and it then worked fine as expected.
[OnePlus 3 & 3T Cross Device Development] MissPokita2006:
Does the new twrp recovery released today work properly on the one plus 3t. I am on the latest unofficial version from this thread since it was advised to wait for official update. I was going to use the twrp app to update. I am on the latest freedom os stable 2.8 rooted with elemental x. I don't want to lose my data and have to start over.
[OnePlus 3 & 3T Cross Device Development] kessaras:
Who can say that for sure ?

until yesterday no problem here.

If something happens, report it so we all know it.
[OnePlus 3 & 3T Cross Device Development] MissPokita2006:
So far no issues. I was very paranoid since I had pixel xl and the way root and twrp worked on that phone chased me away.
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
No problems for me on 3T running the latest 3.1.1-0 on OOS Beta [emoji106]

The new release does not bring many new features, but fixes the most annoying flaws of version 3.1.

Here's an overview of what has been improved:

Backups will now include adopted storage keys (Dees_Troy)

Fixed an adb restore issue (bigbiff)

Fixed rebooting when no OS is present (Dees_Troy)

Fixed line wrapping in the GUI terminal (_that)

Updated TWRP source code to AOSP 7.1.2 (Dees_Troy)

Complete Article Here

https://www.xda-developers.com/twrp-3-1-1-is-out-brings-minor-fixes/

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] tathagatab:
Will this work on the OP3, or only 3t?
[OnePlus 3 & 3T Cross Device Development] ione2380:
Flashed the latest on my oneplus 3 and every time I reboot to recovery my phone gets factory reset, doesn't matter what rom I flash. Flashed blu_spark v29 and working perfect. Maybe I did something wrong, I don't know.
[OnePlus 3 & 3T Cross Device Development] bruelltaube:
It's a unified build suitable for both, 3/3t.
[OnePlus 3 & 3T Cross Device Development] muschiu35bv:
Hello Guys! It is safe to flash latest twrp 3.1.1.0 for OnePlus 3?Because i don't want to lose data again. Now I am on twrp 3.04-1 . Thank you!
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Make a backup first, it works fine on the 3T but I can't take any responsibility for the 3 as I've not tested.

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] tathagatab:
Thanks for the tip, it installed fine. No errors yet.

Looks good, too. Thanks again [MENTION=6044723]Morphine1[/MENTION].
[OnePlus 3 & 3T Cross Device Development] :
For me exactly the same (as written above ;) - I don't think we are wrong, it's the combi of 3 with TWRP 3.1.0-0 and later which is wrong
[OnePlus 3 & 3T Cross Device Development] Poeta:
Error 7 flashing last LOS with 3.1.1.0, flash again 3.0.4.1 and no error 7 in flash last LOS
[OnePlus 3 & 3T Cross Device Development] Pumpino:
Thanks for posting. You saved others a lot of grief.

It was bad enough that devs never fixed 3.1 for the OP3. Now, they release yet another version that results in data loss. This is for one of the most popular developer phones. It's really not good enough for a project of this size.