yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hastaloego:
hmm i did too, can you tell me your twrp version ? maybe with link ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
I use the latest official 3.1.1-1

https://dl.twrp.me/cheeseburger/twrp-3.1.1-1-cheeseburger.img
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] kgr:
I can't seem to access otg from TWRP - when I press storage otg shows as an option but nothing happens when I press it. I'm running 3.1.1-1. What am I missing?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Everyone that wants OTG (which is a lot of us) has to wait until a new version that contains a commit including OTG code is applied. It seems to be hung up or being ignored at the moment. It's probably the code from the unofficial TWRP along with a mount point name change. In the meantime you could adb push it unless you have no PC. There's a lot of replies about it in this thread and other places.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] kgr:
Thanks. It seems to work on other devices I have, so I was wondering why not on my OP5 :)

All good, I can wait!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] drohm:
I just installed [MENTION=6584600]xdvs23[/MENTION]'s version. I'll keep an eye on this version and switch to it after OTG arrives (hopefully).
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
TWRP for MultiROM (July 23rd build) has working OTG and working data restoration. :good:

https://xdaforums.com/showpost.php?p=72925722&postcount=3

(Fyi: Use of MultiROM is not required.)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] drohm:
Nice! I'll give it a go later today.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
This may be true but the crazy file names are back when looking at internal storage. Can't win just yet I guess.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
Just tryed that version (23-7-2017) but I can't enter my unlock pattern, so the partition stays encrypted.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
Wow don't know what you guys are doing but if your in TWRP the password is default_password. You shouldn't have to enter any pattern. If you want to be decrypted then go to wipe advanced and format data then flash the no opt verify zip then root and your done
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
No, I don't want to be decrypted. I prefer encrypted for security. I have no option for entering a pattern or password, weird. In the official 3.1.1.1 I need to make a pattern, after that everything works just fine. Including backup and restore. Only OTG is not working. I'll go twrp again for a password section (I don't see it on the screen after booting twrp). Edit: the 23-7-2017 version (multiboot twrp) has no password section, I can't find it. It boots straight into twrp, without asking a password. So my partition stays encrypted, thus twrp has no acces to make a backup on internal. (I am encrypted, and I don't want to decrypt)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hastaloego:
you didnt get it.. that multirom twrp version doesnt support encrypted data. it doest even ask you for password or pattern or what ever you use.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
I believe you must disable any sort of protection (password, pattern, fingerprint lock, etc.) before making a backup or else you will have the problem you described.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
Thx, that does make sense. :good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Ketelbinie971:
I guess that's because you don't get to enter your pattern. Data is still encrypted then?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
I am encrypted yea. It says in that thread that you can use it with encrypted data, just not the multi Rom portion of it. Everything else worked fine. OTG finally showed up and the folder names were ok. Just the internal section was all jumbled.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
Try to make a backup on internal storage. It will fail, because you don't have access to the internal partition (that is why you get weird jumbled folders).
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
Oyee. Well, I guess I'll flash back the other recovery. I wonder if anyone has spoken with oneplus about this? A large portion of their users but these phones for the dev friendly nature of things, I would thing they would want us to have a fully functioning recovery. This is the most difficult implementation of TWRP or CWM on any phones I've had by far.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
OTG works fine here on my version. Fix for this is on their gerrit.

---------- Post added at 07:24 AM ---------- Previous post was at 07:22 AM ----------

Then it seems that the multirom recovery does not have encryption/decryption support and hence data restore works anyways but that does not fix the issue.

---------- Post added at 07:30 AM ---------- Previous post was at 07:24 AM ----------

I recommend staying away from decryption, verity zips, .... I have my twrp and my custom rom installed, all with encryption, no problems, and even without encryption it worked fine. Also this thread is the wrong place for suggesting recoveries that do not help. I know you just want to help each other but if you link a recovery where encryption does not even work then it's pointless.

Also being decrypted means that data restore will work! But stay away from that... For backing up encrypted data, make sure to backup boot and system as well.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
[MENTION=912474]Dees_Troy[/MENTION] Any idea when the OTG fix is going to be implemented into the official version? There's a lot of discussion about it here, the fix has been added but no indication has been given about what's going on with it?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Baldesarra:
I've searched a bit but coulnd't find any anwser which is up to date.

So what about restoring on TWRP 3.1.1-1?

Can I restore my backups? And what do I have to know about restoring?

Do I have to delete Fingerprint/PIN BEFORE my Backup or do I have to remove it before restoring?

Am I able to restore my OOS ROM after using LOS ROMs?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pchtc:
I would not expect an answer from dees_troy

he has not bothered to reply to a single comment

and the thread is almost 30 pages

TWRP should make xdvs23 the official dev

he got it working first and actually gets involved and replies to people
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Unlikely since [MENTION=912474]Dees_Troy[/MENTION] is the lead developer on TWRP. Pretty poor show by someone who is the head of the project though.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] gershee:
maybe he's been busy developing?

or with life outside of Android?

sheesh.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
That's great news! Do you also have data restoration working too?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
You can restore with TWRP 3.1.1-1, but backup with Boot+system+system image+data partition,

Yes remove fingerprint/pattern/Pin before backup,

Yes you can restore OOS ROM after using LOS roms but remember use that LOS ROM which comes with encryption support...[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] iamelton:
thx for the info, which is also what i think after following/reading the whole thread post by post..

however for the "remove fingerprint/pattern/Pin before backup", is this confirmed a must?

i read success reports from users without mentioning this.. yes i remember there were one or two posts talking about this requirement, but most other did not mention.. so i wonder cos this is really very inconvenient to have to remove security before and add back security after making backups..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] drohm:
Aye, it's what I'm using since this version hasn't merged your changeset.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
I've issue before not doing so, After restoring my backup I was unable to unlock my device while I was entering correct print/pattern, So you can try this at your own risk, May be different user has different experience but in my case it's must to do..[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hastaloego:
u just did a backup and restore with pin + fingerprints + encryption without problems
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] iamelton:
thx for the reply..

"sadly" OP5 is my daily driver, thus cannot do the usual trial-and-error tests to see how it goes..

thats probably also the reason for many others with all those seemingly unnecessary questions asked before trying themselves..

[OT]OP5 is indeed a beast to have..[/OT]

---------- Post added at 11:22 AM ---------- Previous post was at 11:20 AM ----------

you meant "i", right? ;)

anyway thx for the post and good to know..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
You can be right, But I've tested before with no success, Also I'll definitely try, Thanks for kind info, It's beauty of XDA...[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Giansi:
Just to say. I'm decrypted, all partitions ext4.

I was on unofficial RR, and decided to clean flash Official RR. Before I tryed a backup/restore just to see how it goes. With official twrp.

During backup and restore no errors, but when I reeboted a lot of things were messed up, like Nova launcher. Unusable.

:eek:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Ascertion:
Anyone able to load twrp themes on this? It seems like all 3.1.x themes aren't compatible.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fjsferreira:
You just had to delete the lockscreen related files through TWRP's file manager (/data/system/locksettings.*)

Sent from my OnePlus 5
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
Thanks for suggestion [emoji106] I also know this very well, But it's more easy that remove Pin/Pattern before taking backup...[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
I did not test that, however I have a possible solution for the problem. If someone is ready to risk his data and try it, let me know :D or maybe I'll find a good opportunity to do so soon

---------- Post added at 10:08 AM ---------- Previous post was at 10:06 AM ----------

You have to change the theme version, i think from 2 to 3, in the ui.xml file inside the zip.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Can't you rebase from official and add your OTG fix? I think that's what everyone needs since TWRP seem to be ignoring us, I even sent them a support ticket from their site mentioning the OTG commit but I've heard nothing back.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
Like this?

https://github.com/katinatez/android_device_oneplus_cheeseburger/commits/android-7.1

Edit:

I have been encrypted the entire time, I jump from oss 4.5.6 to mokee, and restore just fine with data.

Themes work fine! No need of removing pin before backup. Otg been working for weeks.

I sent [MENTION=6584600]xdvs23[/MENTION] a pm about sending a git pull, waiting on response.

Bugs are still present

1. No OS do you want to reboot message is still there

2. You have to manually mount system under mounts tab before backup or restore.

It's rude to post my work in other devs thread, but since op has not replied, & this is based on his device tree, I am ok with leaving this recovery available for those that want to test. I am labeling the recovery a beta because of current bugs mentioned.

I don't want to open a third thread for TWRP, just trying to help fix bugs. My recovery is in my signature​ for beta tester.

To backup

Mount system, then backup

Boot

System

System Image

Data

To restore

Reverse steps
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
I'm not rebasing on official since it's almost identical and they have kindof a "squashed" commit history.

---------- Post added at 06:53 PM ---------- Previous post was at 06:50 PM ----------

The problem with system libs is simply that the user might not have a system in the time he needs to backup/restore, or maybe he is just booting into twrp to flash something because he wiped system before, and hence the internal storage will stay decrypted and thus deny access to the data.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Thanks. That was really informative. I'll give it a shot as well.

My question: (and for [MENTION=6584600]xdvs23[/MENTION]) :

Since you're only proceeding with the assumption of success after you ensure that the decryption libraries are in the mounted "./system/vendor/.." areas , that might be fine for those of us that're interested in using it knowing that is the case.

For those that don't have those files, I just, via adb shell, did a find & ls -al and count of all of the collective sizes. The entire list of decryption libs and ./hw stuff you pull over to your local /vendor/.. is < 150K. That isn't much. It seems like you could just copy them to your built TWRP tree (in ./build prior to link to .img) and put them into the /vendor/* folder making them part of the recovery. Once they're there, then modify your link/ld cmd to include them in the image. It should still fit into available recovery partition space.

Yeah, I see the downside, which might be that as newer versions of OSS appear, the libraries could be changed and the TWRP that includes the libraries might not work. However, in my mind, it beats what we now have. Will those official TWRP people ever go for such a scheme? I doubt it.

Just a thought. Curious to hear what obvious problems I've missed ;)..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Well my approach is exactly that, having working libs in TWRP and that's it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Maybe I was unclear. You appear to mount whatever working OS is there, look for decryption libs in it's ./vendor dir and if they're there, then all is fine and you use them in your TWRP.

I was thinking along the lines of copying those libs from say, latest OSS and making them an actual part of the TWRP .img file so it wouldn't matter if you were trying to restore an encrypted data partition to an entirely fried or empty OP5.

I guess I thought that you would need to do something just prior to the linking of your TWRP in order for those libraries to be included in the TWRP image. Thanks.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Well at least in my TWRP the libs are already included, system not necessary. Or am I misunderstanding?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
No, I think you understand. Thanks. I thought your point about the case where you try to do a restore and for some reason, don't have a fully functioning /system partition was a good point.

From reading the code in katinatez' github recent commits: I noticed that he looks to see if he can mount up the OS's ./system partition, then access the 9 or 10 libraries he wants to use before he copies them locally and uses them to say, restore an encrypted partition. I saw that and thought it's a good idea, but what you said is also interesting (about the case where no working ./system exists thus no libraries).

So I'm just wondering why not get the OSS latest decryption libraries and copy them directly to the ./build/prebuilts and use them as part of the image of TWRP?

I hope that makes sense ;). It's been awhile since I worked on custom recoveries.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
We could do both. Use the libs from system and if they dont exit, use the inbuilt ones.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Right! That's what I was trying to get at. Why not use both in case the OS ones are newer, but have a fallback set if they're not even there.!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Yeah I guess that's what i'm gonna do.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
Development is back on track!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
I'm glad to hear this because a backup that can't be restored is not that useful. :cyclops:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Just a thought: IF you can use usb 3.0 ports to "adb push {yourRecoveryImgName} /sdcard/ (I think syntax is OK there) then try that.

Then: Install Flashify (the one that requires root and flashes .img files); grant it root access; open and flash recovery (search out your .img file for recovery from the SD filesystem).

Good luck.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
They work just not for fastboot. I got a USB 2.0 hub and that works great.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] smartdroid:
Does the official twrp not work?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] unknownblkman:
Unable to mount system
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
Just in case you forget removing the pin, you can follow the below

Boot into TWRP

Navigate to /data/sytem/

Use TWRP file manager and delete the following files:

locksettings.db

locksettings.db-shm

locksettings.db-wal.

gatekeeper.password.key

gatekeeper.pattern.key

You may or may not have all the above files so delete the ones you have.

Reboot the phone and after that you can simply unlock your phone with a swipe.

Upon Boot > Go into Settings > Security > set your preferred unlock method :fingers-crossed:

---------- Post added at 04:49 AM ---------- Previous post was at 04:22 AM ----------

I just see above there is another user facing this issue, do you mind sharing how you were able to solve this mount issue without data loss, thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
Only time I get that it's when trying to install magisk on stock rom. With the no verify without tried different methods. And it happens on all the TWRP versions
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
[MENTION=6143932]Funk Wizard[/MENTION] Thanks for your reply..

I need a little help, As I've encrypted, and I want to flash DU that is supporting Decrypted device, If I'm not wrong there is a zip in XDA somewhere that makes decrypted build running on encrypted device... Will you please Help me to find out...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
Check in RR thread, I don't have the link to that but I'll see if I can find anything like that
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pho3nX:
Easy : New Encryption Disabler for OP5

And now you can even use Magisk on decrypted :D

Thanks [MENTION=2447659]snowwolf725[/MENTION] for this useful updated tool
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
[MENTION=5308099]Pho3nX[/MENTION] thanks mate...[emoji120]

One more question, If i flash this zip will my storage intact or wiped....[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
Format data will wipe all so copy and then proceed if you want to decrypt.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pho3nX:
I don't remember lol but i advise to you make a backup before :p
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] raul.lopez1958:
Hello everyone,

I have installed the Katinatez TWRP and the data partition restoration works.

Rom: RR 2017/07/29 (encrypted)

Rom: xXx_NoLimits_2.2_OP5_Oxygen_4.5.6

Thanks [MENTION=3814731]katinatez[/MENTION]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
What katinatez TWRP? Link
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Mayday_XL:
https://xdaforums.com/showthread.php?t=3626134

Mayday@OnePlus 5
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] AleAndroid96:
I just ordered this phone, I want to unlock the bootloader and install twrp to make modding. If I back up the original operating system before making any changes then this twrp version allows me to do the restore?

Inviato dal mio HONOR PLK-L01 utilizzando Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
Google for the win. I tryed it, all weird errors when booting, like the other guy(s) have with the latest 83 build (forgot his name, the guy who posted the log files, I have the same errors with 83 and this katinatez build). But here you go https://www.androidfilehost.com/?w=files&flid=201728
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
Errors like this (in 83 and katinaz) while booting in twrp (it does boot ok)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Not sure if you mean me, but it sounds like it.

Anyway: That build looks a lot like katinatez's build. Pretty sure that's what it was named and the size is the same. When it boots, I "think" the version is 3.1.1-k (or something like that). He may have had more than one out there. I managed to recover from the official build.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
Yes, I normally add my signature in my build which is a trailing 3.1.1-k (katinatez)

Family day today, will release another build maybe tomorrow; naming scheme 3.1.1.k2
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] poincare:
Not trying to be a pill, and search didn't find anything, but is there a legit TWRP for cheeseburger that supports encryption with multirom support?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
I'm getting errors now on all the versions of TWRP when trying to backup. Gets to system and chokes

content://com.google.android.apps.docs.storage.legacy/enc%3DSf3swbxytufy9AtVkFKjfSVyi4bKJ3_J-HXD_FhMSHnZe_Gm%0A
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
You have to ask multirom TWRP Dev that question.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] poincare:
Is that the Tipsy maintainer?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] bpambrose:
Worked For me

TWRP What Worked For Me

Quote:

Originally Posted by ilia1985

Build 83 from few pages back

I followed these links (Below) which gave me what I believe were errors (red data appears during flashing) but flashed through it to completion and it works. I also flashed the SD fixer link. Then I flashed the ROM xXx NoLimits 2.2 Then restored to my backed up ROM FreedomOS 1.4 everything works great.

As Posted by " katinatez" (Page 29 this Forum)

https://www.androidfilehost.com/?fid=817550096634788926 (TWRP .img)

https://www.androidfilehost.com/?fid=817550096634788926 (SD Fixer)

---------- Post added at 09:46 PM ---------- Previous post was at 09:45 PM ----------
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] liver20:
It works?

Enviado desde mi ONEPLUS A5000 mediante Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] bpambrose:
TWRP

Yes it does, used it a few times Flashed from it and restored from it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] gvaram:
Do you have Magisck installed? There were some speculations - Magisck was causing errors...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
Used the same one I'm decrypted and had errors I posted already. Did a wipe installed restored a backup of RR no issues. Went to do another backup of that and boom same errors back again about system needing cleaning aside posted. Clean wipe again flashed XXX no limits without issue. The only difference that I see is that week I have a ROM with magisk installed that's when I have issues. Super su installed no issues. That's my experience. I could be wrong magisk could have nothing to do with it but it does seem most likely
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
Yes, he is the guy.

But, atm his MR twrp does support encryption, but doesn't ask for your pin/code/schema to decrypt the data partition... so the problem remains. You need to decrypt first, before using MR twrp and MultiROM.