yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] BillGoss:
TWRP 3.5.1 problem #1:

There are some nifty new features in TWRP 3.5.1 (see https://twrp.me/site/update/2021/03/17/twrp-3.5.1-released.html), such as the ability to flash the Magisk APK (for Magisk 22+) and I've been using it.

However, since I do most of my TWRP work using ORS (see https://twrp.me/faq/openrecoveryscript.html) I didn't try to flash the APK using the TWRP UI until yesterday. And then I discovered that the install menu doesn't list APKs - it only shows me zip and img files.

Am I missing something?

Note, flashing the APK using ORS works fine using:

install /sdcard/@install/su-Magisk-22.0.apk

Update: the answer is that the apk must be named Magisk.apk or Magisk-*.apk otherwise it doesn't show up in the Install screen.

And since I renamed the file to su-Magisk*.apk it isn't listed.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
TWRP 3.5.1 problem #2:

Update: fixed in TWRP 3.5.2

As I mentioned, I use ORS for nearly all my TWRP work. So I was rather surprised today when I got an error trying to flash a zip file:

Note the message before the error saying to disable digest verification.

However, the setting that is turned on is digest verification of backups!

If I disable this setting, then I can install the zip successfully.

Note, however, that I don't get this error when I flash zips using ORS with the setting enabled (as one would expect since I'm not restoring a backup).

Had anybody else come across this problem?
[OnePlus 3 & 3T Cross Device Development] pedritopl:
I just noticed the same while flashing the latest Pixel Experience zip. The setting says it's for backups, but disabling it let me flash the ROM zip.
[OnePlus 3 & 3T Cross Device Development] Not-Aus:
You need to rename the Magisk.apk to Magisk.zip, then you can installi it properly. :)
[OnePlus 3 & 3T Cross Device Development] YechiamTK:
Problem is I want to use a USB thumb drive with an otg connector (and not from pc). Getting a different otg connector is a bit of a pain. But I understand that it's not a general issue so I'll have to try different things.
[OnePlus 3 & 3T Cross Device Development] pedritopl:
Well... Nope. It does work for me.

TWRP 3.5.1_9.0 shows the Magisk apk file together with the zip's and permits the install.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Thanks for your reply. It got me thinking and testing and the answer is that the Install screen will only list an APK if it is named Magisk.apk or Magisk-*.apk.
[OnePlus 3 & 3T Cross Device Development] knpk13:
Correct. I think people were worried about being able to flash any random malicious apks. It's not much of a security measure, but TWRP whitelisted some magisk related names for apks to be flashable.

https://twitter.com/i/web/status/1355512279563960320

https://gerrit.twrp.me/c/android_bootable_recovery/+/3344
[OnePlus 3 & 3T Cross Device Development] knpk13:
Same here
[OnePlus 3 & 3T Cross Device Development] BillGoss:
@dianlujitao is this (https://xdaforums.com/t/recovery-un...covery-for-oneplus-3-3t.3742894/post-84773601) something you can fix or should I raise an issue on GitHub?
[OnePlus 3 & 3T Cross Device Development] DarkSJ1998:
Oh, one thing more you can check is, if the pen drive is formatted as NTFS or FAT32. I remember one time I was using NTFS for my pen drive (might have used it as a bootable USB before) & TWRP refused to read it. Not confirmed though, but you can check it once.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
TWRP 3.5.2 is out with fixed digest problem https://twrp.me/site/update/2021/04/07/twrp-3.5.2-released.html

There are new options in Settings and Install:
[OnePlus 3 & 3T Cross Device Development] nadeemakhtar1994:
Using latest version 3.5.2. everytime i boot to recovery it is asking me to select whether i want to keep read only or not. Even though i am select don't ask me again option still it is persisting at every boot to recovery. Any workaround?
[OnePlus 3 & 3T Cross Device Development] Johannes1098:
Yeah it appears if you have an ecrypted storage partition. Then TWRP cannot mount it until you type in your password.. so this message is normal
[OnePlus 3 & 3T Cross Device Development] Cotopaxi42:
Have you tried downloading the official TWRP on twrp.me? I did it with my phone and the file I gest is a .txt file instead of .img. Weird no?
[OnePlus 3 & 3T Cross Device Development] Not-Aus:
Yes, same thing here. It seems to depend on the browser.

Just rename it to .img, it can be flashed without a problem.
[OnePlus 3 & 3T Cross Device Development] Cotopaxi42:
Hey,

How can I update TWRP from twrp-3.4.0-0-oneplus3.img to twrp-3.5.2_9-0-oneplus3.img? I tried with fastboot flash recovery twrp.img but it does nothing...

Thanks!
[OnePlus 3 & 3T Cross Device Development] Viper The Ripper:
You need to use the full name of the file you want to flash, in your case it'd be

fastboot flash recovery twrp-3.5.2_9-0-oneplus3.img

Alternatively, do it through TWRP: Boot into TWRP > Install > Select "Install image" (at the bottom right) > Select the file to flash and choose the partition where it will be flashed, in this case "Recovery" partition > Swipe > DONE!

PS: to use the fastboot command you need to boot the device in fastboot mode, obviously 🤣
[OnePlus 3 & 3T Cross Device Development] hemantkarandikar:
After going thru hoops with flashing twrp twrp-3.5.2_9-0-oneplus3.img I finally could flash lineage-18.1-20210920-nightly-oneplus3-signed.zip on my 1+3 running stock 9.0.6. The ROM flashing and booting was quite smooth and quick.

Found that flashing twrp on fully stock 1+3 was problematic. I almost had given up.

When I tried to boot into the twrp ( 1st time), from fastboot by using power + Volume down nothing would happen or I would find myself fastboot.

Realised that I had to lock bootloader before traying to boot in twrp recovery. I have done custom rom flashing after a long time, so probably I didn't realise the need for re-locking bootloader.

But I had read and reread twrp flashing instructions in 1+3 thread and also on twrp\oneplus3 page. But as far as I can remember 're-lock bootloader' wasn't there.
[OnePlus 3 & 3T Cross Device Development] Nimueh:
I know I had a hard time too trying to get into TWRP after flashing it from stock OOS ... but I most definitely didn't relock anything first. It took a few tries but eventually I got it and was able to flash "all the roms" lol :LOL:
[OnePlus 3 & 3T Cross Device Development] :
A new version is out, V3.6.0:

Download twrp-3.6.0_9-0-oneplus3.img

Download page for twrp-3.6.0_9-0-oneplus3.img

dl.twrp.me

Commits:

Commits · TeamWin/android_bootable_recovery

Contribute to TeamWin/android_bootable_recovery development by creating an account on GitHub.

github.com
[OnePlus 3 & 3T Cross Device Development] :
And again a new update is out, V3.6.1:

Download twrp-3.6.1_9-0-oneplus3.img

Download page for twrp-3.6.1_9-0-oneplus3.img

dl.twrp.me

Commits:

Commits · TeamWin/android_bootable_recovery

Contribute to TeamWin/android_bootable_recovery development by creating an account on GitHub.

github.com
[OnePlus 3 & 3T Cross Device Development] Uruloki64:
Hi, im getting error 70 when i try gapps mini with lastest version. How can i fix that?
[OnePlus 3 & 3T Cross Device Development] votz11:
MindTheGapps is your friend

https://wiki.lineageos.org/gapps

https://androidfilehost.com/?w=files&flid=322935 ( mindthegapps 11 , arm64 )
[OnePlus 3 & 3T Cross Device Development] Uruloki64:
I installed crdroid android 10, but first flash lastest version twrp then install crdroid then i tried install opengapps (arm64 and android 10) mini but get error 70
[OnePlus 3 & 3T Cross Device Development] TotalChen:
Since twrp version 3.6.1_12 has been released, is there any rom for oneplus3 by Android 12?
[OnePlus 3 & 3T Cross Device Development] ranjeet choudhary:
@andr01dfr3ak i see that you are working on a 4.9 kernel, is it testable?
[OnePlus 3 & 3T Cross Device Development] lapirado:
Only a Los build, but very unstable. And the twrp version has nothing to do with that
[OnePlus 3 & 3T Cross Device Development] :
New bug fix release 3.6.2_9-0 available since this week:

Download twrp-3.6.2_9-0-oneplus3.img

Download page for twrp-3.6.2_9-0-oneplus3.img

dl.twrp.me
[OnePlus 3 & 3T Cross Device Development] Munguambe:
nao consigo instalar android novo rom no meu telefonr oneplus 3t. esta dar erro1
[OnePlus 3 & 3T Cross Device Development] satanas17:
In English, please.

Mandatory on XDA...
[OnePlus 3 & 3T Cross Device Development] bilal132:
I know for me vibration is not a problem but after flashing Stock my cell phone doesn't boot up instead it shows blue light.

I will try above tutorial ( bcoz i usually wipe data partition).
[OnePlus 3 & 3T Cross Device Development] jesperchr:
Where to download the image file? Download link points to Github
[OnePlus 3 & 3T Cross Device Development] BillGoss:
https://dl.twrp.me/oneplus3/
[OnePlus 3 & 3T Cross Device Development] GMPX21:
I recently wiped clean OxygenOS from my 3T and installed LineageOS, this was the first time I went a custom ROM path so I did the whole install TWRP (twrp-3.2.1-0-oneplus3.img) , I tried 'addonsu' for root but that did not appear to work (well it ran but the phone said it isn't rooted).

Anyway my issue is that when LineageOS did an update recently when it tries to boot to TWRP and install it the phone sits there for 3 or 4 mins saying "decrypting" then that fails, I enter in the unlock code and the process repeats and fails again.

As it is the phone boots up fine normally, I just can get back in to TWRP to install zips.

Is this the same symptoms as what people are discussing on the first few pages of this thread?

Thanks.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
The early discussion in this thread relates to a performance issue on some ROMs with f2fs. That's not your problem.

Try this:

Boot into your system and set a new password and set it to be required on boot. That should reset your encryption password and, hopefully, you'll be able to decrypt in TWRP with your password.
[OnePlus 3 & 3T Cross Device Development] clavelm80:
I used twrp-3.2.1-0-oneplus3t.img (note the t) from the official twrp site, I got encryption problem.

With twrp-3.2.1-0-oneplus3.img (without t) , all is working fine.
[OnePlus 3 & 3T Cross Device Development] GMPX21:
I assume you have to wipe everything again if you switched from one twrp to another?
[OnePlus 3 & 3T Cross Device Development] dugi9991:
I've installed this recovery over the one from blu_spark without wiping anything and vice versa.
[OnePlus 3 & 3T Cross Device Development] GMPX21:
Unfortunately that didn't resolve my 'decrypting' issue.

I did use the twrp-3.2.1-0-oneplus3.img (without t) first.
[OnePlus 3 & 3T Cross Device Development] Striatum_bdr:
You assume wrong, recovery is located on a totally different partition that has nothing to do with system/ data.

Just flash and restart your recovery
[OnePlus 3 & 3T Cross Device Development] quew:
I also had problems with decryption using 'official' TWRP.

Latest blu_spark twrp-3.2.1-x_blu_spark_v8.61-op3_op3t.img has no issues at all!
[OnePlus 3 & 3T Cross Device Development] GMPX21:
Thanks for the tip on 'blu_spark twrp-3.2.1-x', it solved the decryption issue for me. I was able to download the LineageOS update and install via recovery.
[OnePlus 3 & 3T Cross Device Development] skythe83:
I've been trying all the TWRPs starting from 3.0.4 to 3.2.1-0. Except for the last one, they always fail because getprop("ro.product.device") returns "", even though the terminal getprop of twrp and of android both return a valid string ("OnePlus3" and "OnePlus3T").

Version 3.2.1-0 simply won't accept my decryption pin.

Before flashing some forks, I'll rather wait for an official update, that allows to flash LineageOS 15.1.

edit: Failed to mention that regardless of the issues, I'm amazed at how dianlujitao manages to handle all this stuff, thumbs up! Thanks! And I also like watching Violet Evergarden :)
[OnePlus 3 & 3T Cross Device Development] Sam Nakamura:
There's definitely not a issue for me on latest TWRP, neither decryption nor recognizing the device model, are you sure you updated to the recommended firmware, also try flashing full OOS not only the firmware only package...
[OnePlus 3 & 3T Cross Device Development] skythe83:
Hi Sam, thanks for the valuable input.

I flashed the open beta 22 firmware from this thread: https://xdaforums.com/oneplus-3t/how-to/firmware-beta-10-t3631166

If I understood right, I'm supposed to flash the original OOS before updating from LineageOS 14.1 to 15.1. Will that cause any data loss or other issues if I flash OOS over LOS 14.1 and then flash LOS 15.1 without booting into OOS?

I think of myself as having a decent affinity for technical stuff, but damn, these update processes are WAY beyond what you could expect from someone who has no trouble handling fastboot, adb and shell. :(

edit: I've just read in the main LOS post, that a data wipe is necessary, is that really true? I was pretty sure, that I've read in several places that there is no need for that.

edit2: also people can't agree on whether the "experimental" build is actually the transitional build which needs to be flashed first. This is so confusing!
[OnePlus 3 & 3T Cross Device Development] BillGoss:
[MENTION=7125933]Sam Nakamura[/MENTION] is saying that you're better off flashing the full OOS install zip, not just the firmware. This will overwrite your boot, system, and firmware partitions. You won't lose your data doing this provided you don't reboot the system.

Take a backup (boot, data, system) before you start making any changes.

I recommend you use Titanium Backup to backup all your apps and their data before you start as this will let you easily restore them if you end up doing a clean install.

The general rule of thumb is to do a clean install if you are changing ROMs or doing a major update of a ROM. Since 14.1 to 15.1 is a major update the rule would lead you to do a clean install.

Also, since gapps change from 14.1 to 15.1 this will cause issues (FCs) for any of your apps that use Google services. So you are not likely to get away with a dirty install.
[OnePlus 3 & 3T Cross Device Development] arifqur:
To further what you said above, I feel that a lot of people get confused by what the term wiping "data" means. As some think that they might have to wipe/format the data partition every time
[OnePlus 3 & 3T Cross Device Development] theCroh:
I think some people suggest to actually wipe user data to solve the decryption problems. I flashed the latest TWRP at three times using either the Official TWRP app or TWRP 3.0.4.1 to flash. Two times the recovery didn't manage to decrypt user data no matter what I did. Third time (I'm quite sure I did that one from the recovery) it just started to work for no apparent reason.
[OnePlus 3 & 3T Cross Device Development] Uumas:
I just used Blu_spark TWRP to install Oreo, then flashed this after re-encrypting
[OnePlus 3 & 3T Cross Device Development] Sam Nakamura:
You used latest firmware with it?

Firmware and TWRP should obviously match to avoid issues with decryption - I updated full OOS before switching to latest official TWRP (from blu_spark) without any problem...
[OnePlus 3 & 3T Cross Device Development] theCroh:
Yes. I flashed the latest OB before anything else.
[OnePlus 3 & 3T Cross Device Development] :
Just to make sure, i've already doing a pre-search in this thread.

The latest TWRP isn't so compatible with Nougat, is it right? If yes, if I want to update to O, should i flash the rom first then the recovery, or the other way around?

I'm on blu TWRP now and don't want bother with the decryption issues. Any precautions?
[OnePlus 3 & 3T Cross Device Development] jacakk:
I have 3.2.1-0 version on 3T. Is there option to resize f2fs (/data) partition? I can't find it...

With ext4 partition (e.g. /system) I can do it in Wipe > Advanced Wipe > System > Repair or Change File System > Resize File System...
[OnePlus 3 & 3T Cross Device Development] hsquare:
Hello, I did a forum search, but nothing came up. With LineageOS 15.1 on a 3T, when booting into recovery, I only see system partition, not data. So I cannot flash a new Lineage-Zip, because I cannot navigate to data/downloads in TWRP. in TWRP mounting data does not help too.
[OnePlus 3 & 3T Cross Device Development] counterfeit187:
See a folder called sdcard?
[OnePlus 3 & 3T Cross Device Development] hsquare:
Yes, but it's empty.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Which version of TWRP are you using?

Edit: I see you got an answer in the lineage 15.1 thread.
[OnePlus 3 & 3T Cross Device Development] hsquare:
Did just try with original TWRP 3.2.1.0 and Bluspark. With both Recoveries no success.

---------- Post added at 08:17 PM ---------- Previous post was at 08:10 PM ----------

For everyone with Oneplus 3T with data partition not mounting in TWRP:

* offical TWRP does not work

* Blu spark does not work

This version works perfectly: https://xdaforums.com/showpost.php?p=75372651&postcount=117
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Dianlujitao maintains the official version of TWRP but you have to download it from https://dl.twrp.me/oneplus3/.

Don't use the old https://dl.twrp.me/oneplus3t/ as that version didn't work with Oreo.
[OnePlus 3 & 3T Cross Device Development] RobotPhone:
I was on nougat rom and flashed the latest twrp, resulting in not being able to enter recovery. I could select recovery from boot menu, but recovery wouldn't load and bring me back to the boot menu. I could still boot to my N rom though. I then flashed bluspark twrp through fastboot, and was able to load recovery and flash oreo rom.

I'm on OP3 non t.
[OnePlus 3 & 3T Cross Device Development] Sam Nakamura:
I flashed to OOS5 while on "blu_spark's TWRP" (first Oreo compatible version) and then changed to official unified TWRP from this thread - never had a single issue, no matter what Oreo build I flashed afterwards...

In my opinion there're floating around way too many TWRP builds for the op3(t), using latest official from this thread or latest blu_spark (up to a certain point as I never used anything else when latest official arrived) worked definitely flawlessly...

It's a little nightmare when doing wrong choices, only advice is to backup, backup, backup before changing the recovery...
[OnePlus 3 & 3T Cross Device Development] hsquare:
Oh ok! Thanks a lot! Why keep two versions on the TWRP website then? They should at least say so under https://dl.twrp.me/oneplus3t. I guess the Oreo version is also compatible with older ROMs right? So you wouldn't need both.
[OnePlus 3 & 3T Cross Device Development] H. K. ROY:
f2fs formating bug

whenever i format data the data partition reverts back to ext4 and it seems that if i try to format the data partition to f2fs it gives error...i have attached the log file... and thanks for the works u have done so far
[OnePlus 3 & 3T Cross Device Development] BillGoss:
You are correct: your logs show that TWRP is getting an error when it tries to format /data as f2fs:

Formatting data using mkfs.f2fs...
mkfs.f2fs: invalid option -- r
Error: Unknown option ?

Are you you using the latest version from https://dl.twrp.me/oneplus3/ ?

If you want to reformat to f2fs I suggest try the Blu Spark 8.61 TWRP.
[OnePlus 3 & 3T Cross Device Development] H. K. ROY:
thanks for responding

yes....i have used the lastest official twrp available

but now i'm using bluespark 8.61

hoping for the fix
[OnePlus 3 & 3T Cross Device Development] BillGoss:
[MENTION=5091734]dianlujitao[/MENTION] could you please have a look at the logs in the first of these quotes posts. It would be great to get the problem fixed.
[OnePlus 3 & 3T Cross Device Development] :
This issues has been reported already 5 weeks back (incl. workaround):

https://xdaforums.com/showpost.php?p=75500069&postcount=49

I guessed by this (uncommented) answer (uncommented) https://xdaforums.com/showpost.php?p=75509811&postcount=52 that this is not accepted as something worth to fix.

So I guess, we doesn't see a fix any time soon.
[OnePlus 3 & 3T Cross Device Development] dianlujitao:
twrp uses f2fs tools from omni, you should contact omni devs instead
[OnePlus 3 & 3T Cross Device Development] BillGoss:
I've sent [MENTION=4683552]maxwen[/MENTION] a pm.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
[MENTION=5091734]dianlujitao[/MENTION] [MENTION=7349555]H. K. ROY[/MENTION]

FYI, I've sent this PM to Dees Troy (manages TWRP):

Dees,

I'd appreciate it if you could look into this and, hopefully fix it.

I've also raised issue #210 on GitHub

https://github.com/omnirom/android_bootable_recovery/issues/210

Thanks,

Bill Goss
[OnePlus 3 & 3T Cross Device Development] thomasnsr:
My model is 3T but this version of twrp solves my problem totally. I also tried twrp 3t version but still i can not see my internal storage (0 MB). Thank you for sharing info
[OnePlus 3 & 3T Cross Device Development] BillGoss:
The OnePlus 3 and 3T have a unified TWRP version. See the TWRP device page for the 3T: https://twrp.me/oneplus/oneplus3t.html
[OnePlus 3 & 3T Cross Device Development] oTeMpLo:
https://dl.twrp.me/oneplus3/

Is new for 3t ... Dated 2018..
[OnePlus 3 & 3T Cross Device Development] :
Thank you

I'll be ignoring O for awhile longer then since i see no benefit rather than having the newest goodies while giving a headache for most app i use

Looks like the safest route to use this without breaking anything is to flash latest full rom OOS 5.x then flash this TWRP
[OnePlus 3 & 3T Cross Device Development] wilriker:
Pattern failed, please try again

I have the latest official TWRP installed on my OnePlus3 but whenever I try to decrypt /data I only get "Pattern failed, please try again" - I can though decrypt /data successfully with the exact same pattern whenever I boot into my ROM (ResurrectionRemix RR-N-v5.8.5-20171217-oneplus3-Final). Firmware installed should be OB24.

I wanted to upgrade to Oreo today but due to not being able to decrypt /data I could not continue. :(
[OnePlus 3 & 3T Cross Device Development] 5mar-T-:
DM-Verity?

What about DM-Verity if i dont root my phone? Do i have to flash the "dm-verity and forced encryption disabler zip" or is it fixed?
[OnePlus 3 & 3T Cross Device Development] Uumas:
Only if you keep using OOS
[OnePlus 3 & 3T Cross Device Development] 5mar-T-:
Thats the Point, my Op3t ist stock on Beta 23. I only want to flash TWRP and than Franco Kernel.

Can anyone tell me if i flash "twrp-3.2.1-0-oneplus3.img" what "dm-verity and forced encryption disabler zip" i have to flash after the TWRP? There are many Versions if i look in the old TWRP Thread https://build.nethunter.com/android-tools/no-verity-opt-encrypt/

I dont want to End in a Bootloop ;)

Thanks for your help.
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Make sure you're using this TWRP https://dl.twrp.me/oneplus3/ or this one (Blu Spark 8.61) https://xdaforums.com/oneplus-3/oneplus-3--3t-cross-device-development/kernel-t3404970/post67463496

If you're using this one https://dl.twrp.me/oneplus3t/ you get problems.
[OnePlus 3 & 3T Cross Device Development] paiktaras:
even if the device is 3Τ ?
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Yes.

The 3 and 3T are unified. The TWRP device page for the 3T (https://twrp.me/oneplus/oneplus3t.html) will point you to the OnePlus 3 download page.
[OnePlus 3 & 3T Cross Device Development] paiktaras:
ok, now i have 4.5.1 os and 3.2.1-0 twrp , if i want to flashing 5.0.1 without problem the safest recovery is Blu Spark 8.61, correct ?

how do I get through it 3.2.1-0 to blue spark ?
[OnePlus 3 & 3T Cross Device Development] BillGoss:
Ah, but which 3.2.1-0? The one I said to use?

You can always install another recovery in TWRP by selecting an image (not zip) and then choosing recovery.
[OnePlus 3 & 3T Cross Device Development] paiktaras:
3-2-1.0 for 3T .

It is better, more safe...... twrp for 3 or blu spark ?
[OnePlus 3 & 3T Cross Device Development] BillGoss:
I've used both without any issues.

There's one bug in the official TWRP - it fails to format the data partition from ext4 to f2fs. The Blu Spark version has fixed that problem.

Other than that, I think they're the same.