yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] laupuy:
Hi,

TWRP 3.1.1-1 for OP3: https://eu.dl.twrp.me/oneplus3/twrp-3.1.1-1-oneplus3.img.html or https://dl.twrp.me/oneplus3/twrp-3.1.1-1-oneplus3.img.html

Changelog:

Ethan Yonker

2017-06-10T13:37:25Z

Merge "Update kernel and build flags" into android-6.0

Ethan Yonker

2017-06-10T13:35:39Z

Update kernel and build flags Change-Id: I9e4329d3784ac7d7ab140acf19d3c60730af3c49

;)
[OnePlus 3 & 3T Cross Device Development] prorokrak:
Hi, after flashing TWRP recovery several times, it keeps reverting back to stock after every system reboot.

My configuration is this:

OP3

Stock OOS 4.1.3 unrooted

Unlocked Bootloader

I do not want to root my phone. I just want to use TWRP to be able to create nandroid backup. Other than that, I do not want to make any system modifications (at least, not yet).

I have followed these steps.

Turn off the phone.

Boot into bootloader by pressing Vol up + Power

Connect to computer

fastboot erase recovery

fastboot flash recovery twrp.img

I have flashed twrp image 3.4.0-1 provided in OP

and also twrp-3.1.1-x_blu_spark_v35-op3_op3t.img

After successful flash I have rebooted into recovery by using Volume buttons and Power.

NOTE: I did not swipe to allow system modifications since I do not want to root my system. I just want to be able to backup and restore my partitions.

After successful boot into TWRP recovery I have selected Reboot -> System

System booted as normal. All applications and settings are untouched. That means my data partition is NOT erased.

After rebooting to recovery again I was booted into stock recovery - TWRP recovery is gone and I need to repeat the whole process.

I have tried these methods for booting into recovery:

While system is running I pressed and hold the power button and in Power menu (I have turned on Advanced Power Menu) I select Restart > Recovery

I turned off the phone and booted into recovery by pressing Vol Down + Power

Any idea how to prevent this behavior?

I have found these two threads

https://xdaforums.com/oneplus-3/help/urgent-twrp-switch-to-stock-recovery-t3434559

https://xdaforums.com/oneplus-3/help/op3-twrp-3-0-2-reverts-to-stock-t3413745

but I am not sure if any of the offered suggestions would be helpful since they are over a year old and I do not know if they still apply. I would like to avoid resetting my device if possible.

Thanks for your help.
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
The second referred post by [MENTION=5420874]karthikrr[/MENTION] is the explanation to your cause. I suggest you either remain on stock recovery and just flash twrp when you want to take a backup, take a nandroid and reboot or use twrp completely by allowing system modification and use it with Magisk to hide root for the applications you need.

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] prorokrak:
Thanks a lot for your insight.

After reading your answer and OP again (especially points 9 and 11) I have a question what is and what is not possible.

Flashing TWRP and swiping right to allow system modification

Flashing dm-verity and forced encryption disabler

NOT Rooting the ROM

What is expected outcome? Will the system be bootable? Will the TWRP stick?

If not, than I understand I have to either root my ROM or flash TWRP everytime I want to create/restore backup.
[OnePlus 3 & 3T Cross Device Development] Teenzak:
I have no root...

Go to this thread

https://xdaforums.com/oneplus-3t/how-to/rom-dm-verity-force-encryption-disabled-t3618232

and follow the steps in the OP

I have TWRP with no root and never lost TWRP with patched boot image from that thread...

Works perfectly...
[OnePlus 3 & 3T Cross Device Development] prorokrak:
Thanks for the advice but this cannot be done on my device since I have Oneplus 3 and the thread specifically says it is only for OP3T, not for OP3.

Anyway, it was useful for me because it helped me to understand that on my phone dm-verity was triggered.

I thought that the warning that shows few seconds after starting up the phone indicates that I have unlocked bootloader. Now I understand that I should get rid of dm-verity warning before I can try to flash TWRP in order to keep it.

(I bought my OP3 a week ago and the dm-verity warning was already there. I am still just in the state of learning what's going on in the OP3 world :D) Now I will look around how to get rid of it.

Thanks again. Your help is very appreciated.
[OnePlus 3 & 3T Cross Device Development] kessaras:
Not exactly.

You can disable dm verify with two ways.

One is to flash twrp and then flash that zip that disables it .

Or do it with terminal from pc in fastboot mode.

Both do the same thing.

But to disable it you need to be at a lower os version , until 4.0.3. After that the bootloader got an update from one plus that fixed this security leak
[OnePlus 3 & 3T Cross Device Development] Clark789:
Hi,

i saw several recommendations for blue_spark's version of TWRP for the OP 3T/ OP3 and i found a download link for the, i assume, latest version. But is there a certain thread from blue_spark, where i can find a change log or more? I looked for it via search function, but didn't find anything. Only blue_spark's kernel/ROM-thread... Help is appreciated!

Best

Clark
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
Yeah the changelogs are posted in his kernel thread.
[OnePlus 3 & 3T Cross Device Development] cultofluna:
Anytime he updates the twrp ,changes mentioned on his kernel thread..

https://xdaforums.com/oneplus-3/oneplus-3--3t-cross-device-development/kernel-t3404970/post72646304
[OnePlus 3 & 3T Cross Device Development] Teenzak:
The thread has been updated for disabling dm-verity for both op3 and op3t for oos 4.1.6.

Check https://xdaforums.com/one...abled-t3618232
[OnePlus 3 & 3T Cross Device Development] prorokrak:
That's great news indeed. Once again, thank you very much for pointing to the thread in the first place.
[OnePlus 3 & 3T Cross Device Development] Mavenix:
With this version I can't access USB-OTG. With 3.1.1-0 I can do it perfectly :(
[OnePlus 3 & 3T Cross Device Development] simaan37:
I am getting a decryption error when booting to twrp....what is the password ...plz reply asap:(
[OnePlus 3 & 3T Cross Device Development] dugi9991:
There are multiple ways to resolve this - just search the forum :)

One way:

https://xdaforums.com/oneplus-3/help/twrp-unable-to-decrypt-storage-t3402836

Other threads:

https://xdaforums.com/search/forum/5475?query=twrp decrypt
[OnePlus 3 & 3T Cross Device Development] Anova's Origin:
Has anyone tried to take a nanroid using TWRP 3.1.1-2 for the OP3T? I'm getting the following errors:

Unable to locate '/aboot' partition for backup calculations.

Unable to locate '/modem' partition for backup calculations
[OnePlus 3 & 3T Cross Device Development] Midomad:
[MENTION=535343]all[/MENTION]

3.1.1-2 version is up on official website for both OP3 and OP3T.
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
I saw that. I'm about to test, any issues so far?
[OnePlus 3 & 3T Cross Device Development] Midomad:
No, working fine on my OP3T.
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
I'll go test for the op3. I'd downloaded before your announcement but forgot to fish the IMG lol
[OnePlus 3 & 3T Cross Device Development] raj7749:
OP has been gone too long, maybe he lost interest (I really hope is doing well :)) .. If someone can replace him, please do..
[OnePlus 3 & 3T Cross Device Development] cultofluna:
He'll be back with OP5:laugh:
[OnePlus 3 & 3T Cross Device Development] laupuy:
Thank you for remaining respectful towards the developer (remember, there is a man behind the nickname), especially since we do not know what could have happened to him (perhaps a serious problem).

Thanks for him.
[OnePlus 3 & 3T Cross Device Development] Uumas:
Yeah. James did very good job on this project until disappearing.
[OnePlus 3 & 3T Cross Device Development] RagingHarry:
Just tested the new released recovery ( , twrp-3.1.1-2-oneplus3.img) just fine.

On both occasions of installing it and going back to previous official from twrp.me on backing up the OB18 I ran into the same 2 errors.

I attached recovery and design. Log from the 2nd try.

Hope it can help solving.
[OnePlus 3 & 3T Cross Device Development] xpissio:
But... Wait a moment. How is possible we are still getting official updates, even if the manteiner is """dead"""?
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
Because the team basically made him the maintainer. Even though he isn't the op in this thread.
[OnePlus 3 & 3T Cross Device Development] laupuy:
FYI about TWRP 3.1.1-2 take a look here: https://xdaforums.com/showpost.php?p=72735812&postcount=5158

and here: https://xdaforums.com/showpost.php?p=72615649&postcount=5089

:angel:
[OnePlus 3 & 3T Cross Device Development] RohanAJoshi:
Current maintainer is [MENTION=5091734]dianlujitao[/MENTION]

https://github.com/TeamWin/android_device_oneplus_oneplus3/commits/android-7.1
[OnePlus 3 & 3T Cross Device Development] xpissio:
Take a look here. https://xdaforums.com/showpost.php?p=72737476&postcount=5164
[OnePlus 3 & 3T Cross Device Development] Midomad:
True,people could stay on a working TWRP version until some big changes happen(if)...
[OnePlus 3 & 3T Cross Device Development] gilsol:
Or until they realize Blu spark TWRP is working, maintained and much better.
[OnePlus 3 & 3T Cross Device Development] Midomad:
Last official TWRP versions are working fine on my OP3T...
[OnePlus 3 & 3T Cross Device Development] gilsol:
I never claimed otherwise, less so in op3 according to reports here. Just giving users here other options should they want or need them.
[OnePlus 3 & 3T Cross Device Development] toddvarg:
I'm also experiencing this, so I went back to 3.1.1-0 again. Anybody now what's the problem, because the nandroid backup worked even if I got those errors. I haven't tried to restore the nandroid backup because I not sure if the backup is complete or not.
[OnePlus 3 & 3T Cross Device Development] RagingHarry:
That is the exact problem for which I posted my logs for.

Also went back to 3.1.1-0 because of this and trying to restore a backup with errors is a bit to dangerous for me.

---------- Post added at 08:41 PM ---------- Previous post was at 08:30 PM ----------

Tried on my OP3 on OOS OB18 and had them also, tried flashing the recovery back and foreward, via recovery and flashify all ended up with this error.
[OnePlus 3 & 3T Cross Device Development] toddvarg:
Maybe we need to wait for twrp 3.1.1-3 :D
[OnePlus 3 & 3T Cross Device Development] RagingHarry:
We'll see son enough ;)
[OnePlus 3 & 3T Cross Device Development] knpk13:
No that's because you had Blu spark TWRP installed before this. Blu spark TWRP lets you back up additional partitions like firmware and bootloader, which the official TWRP doesn't back up. Since you flashed the official over the Blu spark TWRP , the TWRP settings file from Blu spark is asking the official TWRP to back up partitions that it can't see, hence the error. To fix this, delete the .twrps file in the TWRP folder.

Also your nandroid backup should be safe to restore. A "complete" ROM backup includes the system, data, and boot partitions. Nothing else is needed. Others are efs, modem, and firmware, and bootloader partitions.
[OnePlus 3 & 3T Cross Device Development] toddvarg:
Thanks for your response. I started with the twrp in this tread and after that only the official ones, never blue spark twrp. Good to know that it's OK to restore without any problems even with the errors. I can probably still delete the .twrp files in Twrp folder, what do I remove with the deletion?
[OnePlus 3 & 3T Cross Device Development] _that:
TWRP settings, nothing critical. Everything on the "Settings" page basically, plus some remembered things like your last location for the "Install" page.
[OnePlus 3 & 3T Cross Device Development] RagingHarry:
Thnx for this info, deleting .twrp indeed did the trick.

Strange thing is that I only used blu sparks his twrp like half a year ago and after that I fastboot formatted userdata at least twice for sure and didn't restore that folder to internal_sd where was that file only and not on my usb-otg.

Could it be that OP has used these options in his Unofficial builds or something like that?

On previous officials these errors also weren't there.
[OnePlus 3 & 3T Cross Device Development] toddvarg:
Thanks, deleting the .twrps did the trick. Just an extra question, why don't you need to backup the system image. I have always ticked all the boxes in backup except chache. Is backup of system image only needed if you have changed rom and wan't go back again?
[OnePlus 3 & 3T Cross Device Development] knpk13:
System image is same as system backup. It's just backed up as an image instead of the standard file format TWRP uses.
[OnePlus 3 & 3T Cross Device Development] MiMilz:
Hi guys ! :)

I decided to go back to stock OxygenOS 4.1.6 (OnePlus 3, 7.1.1) and I need to flash TWRP to enable root with Magisk.

I'm looking around for the best TWRP compatible version with my OS but it seems a bit difficult to find out the right one....

I was using 3.0.2-22 on the OOS beta in 6.0.1 but I don't know if it's ok on nougat. I tried 3.1.1-0 and 3.1.1-2 on a nougat rom but the recovery always wiped itself after booting system... (I was not flashing rom without reflashing recovery)

Do you have have any hints about a good TWRP version for y needs ? And maybe a link if it's not an official, to be sure to not download a wrong one ? Thanks ! ;)
[OnePlus 3 & 3T Cross Device Development] 0007h:
3.1.1-2 is not compatible with H2OS 6.0 on my OP3T. It asks me for password, although I didn't set any password... And format data doesn't fix this. H2OS 7.1.1 is OK, I can enter twrp with no fault.
[OnePlus 3 & 3T Cross Device Development] xpissio:
Did someone try to flash the latest 3.1.1-2 for OP3, on the 3T?
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
There is the same version for the 3t on the team win website under devices. Why take the risk?
[OnePlus 3 & 3T Cross Device Development] xpissio:
Because of this:

"As of 2017/6/17, official TWRP for OnePlus 3(https://dl.twrp.me/oneplus3/) is updated with latest LineageOS kernel and OxygenOS decryption stuff, it builds against Omni 7.1.2 and supports both op3&3t, now it's the recommended recovery."

And this: https://github.com/TeamWin/android_...mmit/98e82474166e6f134a6ae4f7b57e551baba02172
[OnePlus 3 & 3T Cross Device Development] ndarkside93:
It's the same image on the website as far as I can tell. Go to Team Win and you can download 3.1.1.2 for the 3T. Just to be certain
[OnePlus 3 & 3T Cross Device Development] :
You can compare the md5 code of these both twrp 3.1.1-2 versions (3 and 3t) and you will recognize they are the same, means both versions are identical
[OnePlus 3 & 3T Cross Device Development] Rebel7022:
Yea I got you install Blu twrp it's the fixed version for 3t that doesn't wipe your phone. You can find the thread in 3t xda
[OnePlus 3 & 3T Cross Device Development] Glompa541:
Can I use the newest update with a unified build?
[OnePlus 3 & 3T Cross Device Development] Uumas:
Unified build of what? The newest version of twrp (3.1.1-2) is unified
[OnePlus 3 & 3T Cross Device Development] Glompa541:
Yeah i ment ect LineageOS Unified builds.

Okey good to know.
[OnePlus 3 & 3T Cross Device Development] krish@3T:
Any idea y I can't restore the nandroid backup

Log https://drive.google.com/file/d/0B0qzaWdiU0q-UGJwRTBnQUZpTTg/view?usp=drivesdk
[OnePlus 3 & 3T Cross Device Development] gilsol:
From a quick look at the log the issue is a failure to mount the various partitions because of failed decryption. I don't know if this could be caused by using different passwords for the backup compared with your current password.

That's all I can help with.
[OnePlus 3 & 3T Cross Device Development] krish@3T:
Now what can I do ??
[OnePlus 3 & 3T Cross Device Development] gilsol:
I don't know enough about TWRP but if the password set when you took the backup is different from the one you have now and if TWRP checks the current password it would explain the failure.

If this is your case, there's a solution, deleting the system stored password keys by flashing the attached.

Otherwise, I really don't know.
[OnePlus 3 & 3T Cross Device Development] xpissio:
[MENTION=5091734]dianlujitao[/MENTION] Any updates on the unifying for 3 and 3T? I saw an update today on Gerrit.
[OnePlus 3 & 3T Cross Device Development] Uumas:
The newest version is unified
[OnePlus 3 & 3T Cross Device Development] dianlujitao:
It was unified weeks ago, but the website is not updated
[OnePlus 3 & 3T Cross Device Development] nondroid:
I have installed TWRP 3.1.1-2 on my OnePlus 3. Now its showing DM-Variety error and sensors are not working properly. Please help.
[OnePlus 3 & 3T Cross Device Development] geogaddi47:
So there's no risk of wiping data after flashing this newest TWRP on the 3/3t?
[OnePlus 3 & 3T Cross Device Development] Uumas:
There's no risk.
[OnePlus 3 & 3T Cross Device Development] Viper The Ripper:
WTH? :o DM-Variety error was fixed long time ago. Which Rom are you running?
[OnePlus 3 & 3T Cross Device Development] Raednor:
Noob question : I want to flash latest twrp via recovery,so i reboot to recovery, select install,image,the new recovery file then select recovery partition and flash It,right?Need to clean cache/dalvik before/after?THX guys!
[OnePlus 3 & 3T Cross Device Development] krish@3T:
That's it

Well clean cache isn't required but it won't take much time to do so :p
[OnePlus 3 & 3T Cross Device Development] nondroid:
I am on official Oxygen OS 4.1.6. There is no sensors on it except fingerprint scanner. At least no hardware testing app could find them. I had error while installing Oxygen OS. Did that break sensors?
[OnePlus 3 & 3T Cross Device Development] uaiclout:
Just flash image or use official TWRP app
[OnePlus 3 & 3T Cross Device Development] theduke7:
get Blu_Spark TWRP... do a full wipe (everything) then flash the rom again > reboot to recovery > flash magisk latest (or SuperSU)... then reboot to system.
[OnePlus 3 & 3T Cross Device Development] DRAGON_poop:
Hello, I am on OOS 4.1.6, EX Kernel, TWRP 3.0.4-1

I wanted to try new ROMs to see if they produce better battery life (and a stable dark notifications via Substratum or v.konvict's mod)

After a nandroid and a separate recovery backup, I updated TWRP to the latest version 3.1.1-2. I also received the error "Unable to locate '/modem' partition for backup calculations" which 2 other users reported here when trying to make a backup. I cancelled and restored the previous recovery version 3.0.4-1

Please forgive my noob questions:

1. Assuming the new recovery version worked perfectly, would I be able to restore a nandroid backup made on previous version of TWRP?

2. Can I flash new ROMs with my current TWRP version? I'm asking because the xda page for the custom ROMs say I need the latest version.
[OnePlus 3 & 3T Cross Device Development] RagingHarry:
Delete the .twrps in the TWRP folder on your internal sd, that fixed the errors for me and some others here.

And then latest twrp has no errors anymore, and works just perfect. No need to worry.

Only thing is that you have to restore your settings in twrp.
[OnePlus 3 & 3T Cross Device Development] pratyush28:
1. Even if your new recovery worked perfectly it isn't recommended to restore backups made with old twrp versions. It might restore but theres also a change that the restored rom wont boot up. so just make a new nandroid backup after you flash the new recovery.

2. You cannot flash new roms with old recovery i had tried to flash RR with old recovery and it ended up with some error during installation and when i tried to boot it said no os installed so just use the latest twrp to flash new roms.

As you said the latest twrp is not working for you,

Try 3.1.1-0 its not the latest but works with new roms as well has a working backup and restore feature.
[OnePlus 3 & 3T Cross Device Development] DRAGON_poop:
The problem was fixed by deleting the .twrps as suggested by RagingHarry

After a night of trial and error while flashing OOS Beta with magisk, I accidentally encrypted my phone, was unable to install busybox on systemless root, and my original need to have consistent dark notifications was not met.

I have given up for now, and restored to my original TWRP version 3.0.4-1 (and its original nandroid), which allowed to backup the modem as well. It is provided on the main thread, and I don't know if it's because its not updated. Thanks.
[OnePlus 3 & 3T Cross Device Development] abhaykelkar:
I have been researching about the stable TWRP for OP3T, but i am confused after reading few latest posts. Because this thread says dont use official latest recovery and instead use the one mentioned in the thread. Can someone please tell me which is the stable working TWRP recovery?

1) Latest official 3.1.1-2 OR

2) Blu_Spark's TWRP OR

3) the one mentioned in the first post

I am using stock 4.1.6 without TWRP, locked bootloader and never rooted. Basically I want to root using Magisk and may flash open beta in future.

Thank you.
[OnePlus 3 & 3T Cross Device Development] Midomad:
All of the 3.
[OnePlus 3 & 3T Cross Device Development] abhaykelkar:
:)

Thanks for the quick response.

Are all of them working fully in every aspect such as rooting, backup & restore, flashing anything etc etc.??

Because someone reported an error related to dm-verity while installing 3.1.1-2 and if someone has flashed newer official TWRP over blu_spark's one and then backup-restore may fail....
[OnePlus 3 & 3T Cross Device Development] Midomad:
Yes,i'm using the last official one on my 3T.
[OnePlus 3 & 3T Cross Device Development] Wulfegang:
I apologize if this isn't the correct forum to post this in but I was wondering if there was a way to change the format of the name TWRP automatically fills in as the backup name. For instance, I would like the format to "Date-Developer Name-Device Name-Android version". I've tried searching different terms but could not find exactly what I was looking for. If I am in the wrong section would it be possible to point me in the right place please. Thanks in advance.
[OnePlus 3 & 3T Cross Device Development] krish@3T:
You can do it manually if you want
[OnePlus 3 & 3T Cross Device Development] DRAGON_poop:
Please tell me if there is a better place to ask my questions.

I made a backup when my filesystem was f2fs and the phone was encrypted.

Now my filesystem is ext4 and not encrypted. If I try to restore the backup, will it fail? Which change causes problem?
[OnePlus 3 & 3T Cross Device Development] uaiclout:
I did the same - It worked fine
[OnePlus 3 & 3T Cross Device Development] BillGoss:
You could write a shell script to generate a TWRP backup command in an Open Recovery Script file that gets executed by TWRP when you boot into recovery.

I've attached a script for this that I've used. You can simply modify the values used in the second last line starting with "echo backup"

PM me if you need any help.
[OnePlus 3 & 3T Cross Device Development] droiduin:
Hi guys,

Could this be the reason why 3.1.1-2 can't decrypt my phone running Sultan's CM 13 ROM while the OP's 3.0.4-1 (still) can? I tried flashing 3.1.1-2 from within 3.0.4-1 as well as using the official TWRP app. I also tried changing the device password while having 3.1.1-2 flashed but all to no avail.

Cheers
[OnePlus 3 & 3T Cross Device Development] DRAGON_poop:
If you want to decrypt your phone, you can do this. Backup everything to a pc. Then have fast boot detect.

1. fastboot format userdata

2. fastboot format cache

3. fastboot format system

4. fastboot erase boot

5. fastboot reboot

Reboot phone into Recovery. To flash a rom you can adb push the zip if it can't be mounted via TWRP
[OnePlus 3 & 3T Cross Device Development] droiduin:
Sorry, should have phrased my question differently: I was referring to TWRP 3.0.4-1 being able to decrypt/mount the encrypted partitions after entering the device password, while 3.1.1-2 just won't accept the same password. I was wondering whether TWRP's update to the "latest [Nougat] decryption stuff" could be the reason why my CM 13 (MM) ROM's data isn't accessible to 3.1.1-2.

Cheers