yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
If you think you made your documentation foolproof - karma sends you a fool, who is much better in being foolishm4hen you in making documentation...

The problem is always to put enough information in OP to get things up and running, but not that much that people stop reading.

BTW: I'm running 4.9.2 on my linux box and was always (with previous kernel versions) able to read a f2fs formated usb-stick (I'm pretty sure I formated that with 3.8.x). Yesterday I tried 4.10-rc3 for some other reason, but I tried also to read this stick: no way. It mounts, but if I ls to mountpoint, the dir is really empty - no hardlinks for "." and ".." . After returning to 4.9.2 I found the fs on the stick totally screwed, not fixable wirh fsck... So it seems it's not only backporting f2fs from 4.10, but the f2fs itself seems not to be backward compatible.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] no.one.writeme:
[MENTION=5672995]jcadduono[/MENTION],

Hi,

As a newcomer to the OnePlus 3T I just want to say thank you for your tutorial. Just followed the steps and now I have my device with twrp recovery, OOS 4.0.1, root and no encryption.

Thank you for your work.

Best Regards.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Uqbar:
A couple of hints

Would you please mention the recovery version and/or its release date in the OP title?

This is one of the best common practices that help people a lot and don't cost too much.

Would you please release the recovery in a flashable ZIP? Too many things can go wrong with the IMG file. Namely:

I need to MANUALLY ensure my download is complete and not corrupted

I need to MANUALLY ensure I downloaded the recovery for the right phone

I need to forget about having an AUTOMATIC checksum right before flashing with recovery

I need to MANUALLY ensure I flash the file as recovery an not as "Boot" or "System Image"

With a flashable ZIP, instead, you cannot really make mistakes, as long as the ZIP has been properly (and automatically) prepared.

I understand that the "bare" IMG file can be installed with flashing tools and adb.

But none of them would do any of the above checks.

While the ZIP can be "opened" to extract the IMG file, in case you insist in using, the average user can hardly pack it into in a flashable ZIP!

"bare" images.
​
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Istvan_86:
Hello jcadduono and everyone also,

RC2 solves all my problems (mostly encryption) and now I updated to 3.0.3-1 and all is working flawlessly.

Really thanks for all the hard work and help provided.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] TeddySika:
do i have to disable oem unlocking feature in developer option (instruction number 4) after i succesfully flashed twrp or should i leave it that way?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Morphine1:
You don't have to. Just leave it that way.

Enviado desde mi ONEPLUS A3003 mediante Tapatalk
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
Hey I have a question:

Does twrp-data-fstype-swap-5.1.zip format /data (even when I'm on ext4)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] MrMeeseeks:
It's cool.

Download the recovery.img from here: https://build.nethunter.com/misc/oneplus3T/partitions/

Then reboot to bootloader and do fastboot flash recovery recovery.img

That will flash the stock recovery

Then boot into recovery, select ENGLISH(very important)

Select install from ADB. This will put you in advance sideload

Then type adb sideload *nameofthezip*. zip

This will flash you back to stock. It shouldn't wipe your data either.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tdamocles:
fastboot flash recovery twrp.img
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
[MENTION=5349966]dustin_b[/MENTION] so couldn't get Fastboot system wide to work. I installed but didn't seem to stick. weird because fastboot devices would recognize my phone but would not load recovery.img

I closed that cmd window and opened it in different folder that I moved recovery to and worked.

anywhos flashed recovery and back to stock recovery. Thanks. Oh btw, it(stock recovery)had me enter password lol but it recognized my password so think it is or was a twrp thing. Will retry twrp
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
try 1-beta3 https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.2-1-beta3-oneplus3t.img

it has the new qseecomd from 3.5.3 and might recognize your password

also, let me know if adb is working with it, i don't know if it's possible to have adb and otg switch enabled at same time
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
Shoulda read this first lol. Tried normal way and failed. Will try beta.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
[MENTION=5672995]jcadduono[/MENTION] Thanks, the Beta worked. It asked for password but accepted my password this time. Many thanks for all you've done.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hawki:
Not sure if I should post it here or elsewhere. After doing the ROM update, everything is great, have root.

But can't get Xposed to work, using original version 64 but. The SU in the OP is systemless. Thoughts or suggestions?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ram4ufriends:
You have to use xposed version 87 with latest November security patches
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
ram4ufriends, do you have xposed installed on your 3t?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] hawki:
That's the one I had installed, I just reinstalled it. Doesn't seem to work. It doesn't seem to trigger the superSU root permission notification
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ram4ufriends:
Yes I do.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] NataKun:
Hey, I've been trying to flash TWRP for the past 2 hours, but it keeps failing. I unlocked the bootloader OK, then I rebooted my phone and started to set it up again. Then I went back into fastboot to install TWRP, but then I get this error after I input "fastboot boot twrp.img": "FAILED (remote: dtb not found)"

Here is my log:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

target reported max download size of 442499072 bytes

sending 'recovery' (14936 KB)...

OKAY [ 0.343s]

writing 'recovery'...

OKAY [ 0.117s]

finished. total time: 0.462s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot boot twrp.img

downloading 'boot.img'...

OKAY [ 0.336s]

booting...

FAILED (remote: dtb not found)

finished. total time: 0.428s

Some help would be really appreciated, thanks.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
[MENTION=5867577]NataKun[/MENTION] are you on 3.5.3? If not suggest you update to that. Then I would proceed like instructions say. Use files linked on first page.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] asl1:
I'm trying to do the same thing, back to stock with TWRP installed. When I go to fastboot there is no english option. Can you help me out to get back to stock?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] NataKun:
[MENTION=286409]ghettopops[/MENTION] Yeah. I didn't get the OTA, so I updated by flashing the zip from this site using the stock recovery. So im on 3.5.3 now.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cousinit99:
TWRP works fine. There's something wrong with the way your password's set up in Android. Which one did you set up

first

, before anything else? Was it a pattern, pin, or password? If it was a pattern, look here: https://www.reddit.com/r/Nexus5/comments/2mskzu/twrp_is_asking_for_a_password/coe2fmi/

There's nothing wrong with TWRP decryption. If we had different devices, things might be different, but since we don't and mine's working perfectly fine.............. Yea...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] ghettopops:
I got it all working Bro. It was a different TWRP that I flashed originally. Believe it was the first on OP posted but am not positive and by no means blame him. I have reverted to stock recovery and then flashed the Beta he(OP) suggested and all is good. I am rooted with TWRP installed.

---------- Post added at 12:18 AM ---------- Previous post was at 12:10 AM ----------

@NataKun, [MENTION=2645380]asl1[/MENTION]

I downloaded this https://build.nethunter.com/misc/oneplus3T/partitions/ suggested by dustin_b

Followed his instructions from page #9

Only difference was after choosing English I was prompted with the option of installing from internal storage which i had already download https://s3.amazonaws.com/oxygenos.o...8_OTA_027_all_1611222319_884473ff95304c30.zip which OP posted on 1st page.

Then after that install I rebooted and then went back into Fastboot and flashed https://build.nethunter.com/test-builds/twrp/oneplus/twrp-3.0.2-1-beta3-oneplus3t.img which OP posted on page #9 as well. Flashed SR4 and rebooted with all being good after that.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] MrMeeseeks:
The English option is in the stock recovery, not fastboot. You have to fastboot flash recovery recovery.img (using the stock recovery image I linked) then reboot into recovery. It will take a few minutes to reboot and you will see three languages options. Just choose English unless you are bilingual and know Chinese lol.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cousinit99:
Glad to hear it. :good:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] NataKun:
[MENTION=286409]ghettopops[/MENTION] OK, So I found out why I was getting my error. It's pretty stupid, but I was in the wrong folder for my Minimal ADB. So I was actually flashing the TWRP img I left in there for my shield K1, and since it's not compatible, I was getting the error when I tried to boot TWRP. Anyways, so I reinstalled Minimal ADB, then put the right TWRP img in the folder, and flashed the stock recovery. Then I rebooted and flashed TWRP, and it worked properly. I installed SuperSU, and rebooted my phone and I can confirm that it is working now. Your post wasn't the solution for me, but pointed me in the right direction in my troubleshooting and ultimately helped me solve my issue. Thanks!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Is there demand of a detailed step by step guide of switching from f2fs to ext4?

I intend to doing so myself soon for many reasons and I wonder if people here would need a guide to do so. If so, I take some notes along the way and write instructions.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] apascual89:
Yes that would be awesome. I would link that in my RR thread.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] uaiclout:
http://xdaforums.com/oneplus-3t/help/f2fs-vs-ext4-problems-t3538491/

This worked for me... :cool:

Edit:

Don't know about this new zip (TWRP OP)

Edit 2:

I could edit my post if you have hints or want me to add / change sth

If my instruction is waste you can make one by yourself - of course
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
[MENTION=5672995]jcadduono[/MENTION] i read your scripts of twrp-data-fstype-swap-5.1.zip.

You call it "awesome", but I guess thats an understatement. This is easily the best script I have seen in an flashable .zip and one of the best shell scripts overall.

Big kudos to its universality. The number of different cases you evaluate is mindblowing. I also love how you seperate the dirty work (aka un- und repacking the image) from the actually modification in the patch.d dir.

It looks so solid, I wonder if you used those scripts before or just came up with it. Anyway, I hope it will be used many times in many different scenarios on many different devices without any changes to the core.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
Thanks! LazyFlasher is used in a few places. The Pixel and Pixel XL TWRP installers, no-verity-opt-encrypt, Kali NetHunter, and I've been meaning to open up a thread on XDA for it specifically as well.

Right now I've kind of got a start to it in the Pixel C forums as I was hoping to save their devices from abandonment.

I originally designed it as the Kali NetHunter installer, but then later on rebranded it and gave it its own home on GitHub. They are still in sync.

You guys can use this guide for your OnePlus devices if you like, but change the Pixel C references to OnePlus 3T.

https://xdaforums.com/pixel-c/orig-development/lazyflasher-make-install-custom-kernels-t3537487

If you want even more source to check out, my bootimg project is what powers LazyFlasher and I wrote that in pure C :D Unfortunately it hasn't garnered much attention.

https://github.com/jcadduono/android_external_libbootimg

https://xdaforums.com/android/development/boot-img-tool-bootimg-m-trying-to-learn-t3494070

Sorry, no interest in the flashable zip route. Aside from having recovery signature verify the zip it's kind of pointless. The recovery image is so small your chances of a corrupt image are stupidly low.

As for version in the title, I don't do that in any of my threads because it would have the opposite effect you want it to have.

I simply can't keep track of hundreds of threads and update the version in the title every time a new TWRP build comes out.

Suggestion: Install the TWRP app and let it notify you of updates.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] djsubterrain:
Might be good if you could do a YouTube video for the nubs :)

Surprised it's not in the toolkit, it's should be easy with adb backup, format and adb restore commands.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Totally OT, but 4.0.2 just arrived.

Got a notification on my phone and a XDA post is also up at https://xdaforums.com/oneplus-3t/how-to/rom-oos4-0-nougat-op3t-leaked-t3523482

Anybody knows if flashing 4.0.1 full rom and then 4.0.2 OTA with TWRP is possible? Flashing full rom again should remove all my modifications so that the checksums are correct again.

---------- Post added at 07:00 PM ---------- Previous post was at 06:58 PM ----------

Not doing a youtube video, thats for sure. Would be a bit more detailed explaination than the one linked above though. Anyway, 4.0.2 hit, and I want to have it run stable for at least a day before changing to ext4.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] jcadduono:
you will have to flash the full OTA, reboot immediately to system (it will encrypt if you are decypted), then reboot to recovery which should be stock, and sideload the OTA from there

alternatively, flash the full OTA in twrp, and modify the little OTA updater-script to remove the assert for build fingerprint before flashing in twrp

don't know how well it would turn out

Update: You may now download the f2fs backport official TWRP build from the first page. See the WHY DOES... section.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Worked. 4.0.2 now. 4.0.1 Full rom didnt even replace TWRP. Seems like 4.0.x doesnt come with a recovery image.

Had it twice that decryption didnt work and I had to reboot TWRP. 2nd time always worked. Should have pulled logs, but was too focused on flashing. If this happens again, be sure to get logs.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] LampunVarjostin:
Hello there,

first of all thanks for creating TWRP for our device.

I'm having some issues regarding installing TWRP to OnePlus 3T.

Current status:

OnePlus 3T, Unlocked, Stock Recovery, Encrypted, OOS 4.0.1

Passcode for encrytion: NONE.

I tried to flash TWRP but when the Passcode was (lets say 1234) log said: 'unable to mount storage' , 'trying to decrypt...' and after that nothing.

Next I disabled whole passcode and the result was Hang on TWRP Logo. waited 40 mins and nothing.

I would like to keep encryption and I would rather not format all my userdata.

Is there anyway to accomplish this?

Thanks.

BR,

Home
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
use latest twrp version (3.0.3-1) from twrp.me. It had some fixes regarding decryption. No idea if encryption with no passcode works though. Make sure to lock it with a pretty long numerical code. mine is 10 digits, but going to increase that soon.

also read the OP about "why it can take long to access f2fs" - just to be sure.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] LampunVarjostin:
Hi,

I was using that one, my passoce was 2580258025802580 but still it says "unable to mount storage" :S

Edit: Tried with pattern passcode also and same result

~Home
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] bird333:
This is from the OP. "Unfortunately, this means if you use a ROM that is using the 4.10 backport f2fs drivers, you will boot loop with this build of TWRP.

The official TWRP uses the Android Linux stable f2fs drivers." How would one know if they are using a ROM that uses 4.10 f2fs drivers?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] LampunVarjostin:
I think its best to ask from the developer of the ROM?

~Home
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mumapizza:
Just press cancel it will go into twrp
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] LampunVarjostin:
And in there I can't do anything :S
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] flammenwurfer:
So when I flashed the Nougat update and rooted and got stuck with the decryption issues I formatted and got rid of encryption for the time being. Now that encryption should work with TWRP again, how do I re-encrypt?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mumapizza:
Reflash twrp with fastboot, if its still asking for pw try default_password
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mani3c:
I had this problem for days, even when my password was correct it still said 'unable to mount storage' 'trying to decrypt"

I finally got past it. When it asked me for my password I hit cancel, I took my password off, I deleted all of my data and I sideloaded SU. It worked
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] LampunVarjostin:
Thanks, I will try this when I get home :)

Point was for me NOT to delete my userdata :)

~LampunVarjostin
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] owngaurav:
Everything is OK but why i am not able to access my Storage in twrp?With stock & Rooted...reply please
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] cultofluna:
Are you on latest twrp?...3.0.3.1...
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
Success story:

I was on oos-4.0.1 with f2fs encrypted swcured by pin with twrp-3.0.3-1-beta-1.

When I received 4.0.2 I downloaded official twrp-3.0.2-1 and flashed with dd method insidemrunning oos-4.0.1. Rebooted to recovery, flashed 4.0.2 full & SuperSu-2.79, rebooted to system (looped once, for setting up SuperSU) and I was done.

Sidenote: to get the full in addition to incremental, I just started the update from within oos-updater: this rebooted me to twrp; here I tried to flash the incremental knowing it would fail. After that I wasn't able to boot system anymore like expected (boots always to recovery). I wiped misc partition (wipe_misc), booted to system and went back to oos-updater: this time it fetched the full update.

Sidenote2: as with 4.0.1 I have NO dm-verity-error with 4.0.2.

Great THANX to TeamWin and [MENTION=5672995]jcadduono[/MENTION]!!!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] owngaurav:
Yes on latest (latest official website)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Crazy32:
i posted this in the [ROM & KERNEL][7.1.1]ResurrectionRemix[OFFICIAL][Jan 17] thread, but user xanthrax told me that it is a recovery related problem. so i post it here too.

can anybody tell me what i have to do now for a stable system?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] xanthrax:
Oh my... Now I take the blame... Lol

Be sure you have the latest recovery that I'm not using it though

Sent from my Darkside of Oneplus 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] owngaurav:
My phone is encrypted is this is the reason?

Forgot to mention i am talking about accessing memory on Computer on twrp ..Sorry
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Crazy32:
i have flashed the 3.0.3-1 r2
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] xanthrax:
The latest one can be found here

https://dl.twrp.me/oneplus3t/

Sent from my Darkside of Oneplus 3T
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tinuz97:
I started clean (used the tool in the xda forums to go back to stock). Installed 4.0.2 afterwards,clean twrp (latest version) and supersu. Everything working great now (also with encryption on and fingerprint scanner). No more issues with password like I had before with twrp with nougat. Thx :)
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tfae:
Everything is finally working as expected.

I'm now on OOS 4.0.2 with the latest TWRP.

Thanks for the hard work!
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
If you two had this issue, why - instead of complaining - you supply some logs, so that this can be looked into?

You can complain all day, without logs there won't be any improvement.

On a side note, flashing zips without encrypted data partition is funny business. I wouldn't recommend or do so myself.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] owngaurav:
Are you able to transfer files between Mobile and computer in twrp mode..
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
Sure, via mtp
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] owngaurav:
Are you encrypted?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
If your ROM uses the 4.10 f2fs kernel drivers, it's not possible, since it will interfere with the 3.18 f2fs drivers of TWRP. (For details read up a few pages back)

Ask your ROM developer about this. If this is the reason, you could switch to ext4 to avoid this issue.

If that's not the reason, well, I am not sure. Could be you uses TWRP beta5, beta 8 or rc1 which yields the same issue. Anyway, setting up data partition anew might be your best option.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Crazy32:
i have flashed the latest version now. now i have 2 start screens and cannot boot to the recovery.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
You bet I am. Give me one good reason to not be encrypted except laziness.

---------- Post added at 12:18 PM ---------- Previous post was at 12:17 PM ----------

Your download was broken. Download again and flash via fastboot.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] Crazy32:
ok, i have to try this at home this evening.
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] owngaurav:
Actually i am also encrypted flashed latest TWRP but unable to transfer files in TWRP...:confused:
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] LampunVarjostin:
Did you hit cancel? Or did you put your passocode in to the TWRP when you flashed it?

For me if I press cancel button it won't allow me to mount anything.

If I put my passcode in it will say "unable to mount storage"

How do I get logs from TWRP?

Thanks.

~LampunVarjostin
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] tfae:
Yes, with no problem.

---------- Post added at 12:24 PM ---------- Previous post was at 11:51 AM ----------

How can I check if I am encrypted? TWRP never asks me any password.

Is the info given at Settings > Security & fingerprint > Encryption the real state of the thing?
[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] mad-murdock:
I am confused. How do I change the password for my data partition? I was assuming while formatting to ext4, I also can specify a new password to use. But I cannot. It uses my old 10-digit password which I deem to insecure.

Can I change the password somehow in TWRP? If not, how can I. I checked everything under settings->security and fingerprint and am pretty sure it doesnt offer to change the password. [MENTION=5672995]jcadduono[/MENTION] shouldnt this be an option in TWRP, if encryption is supported?