yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] flobengogen:
i used xdv23's build of twrp to do the backup, I havent touched encryption.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] card13:
Test # 1: Successful Backup/Restore using Official TWRP 3.1.1, ROM xXx_NoLimits_1.5, Encrypted, Lock screen set to none (for the test). <- Restored but TWRP now says "Failed to mount '/system' (Structure needs cleaning)"

Test #2: Reflashed ROM (only system redo, no data partition manipulation), rebooted, backed up everything, restored everything, appeared Successful, rebooted fine, rebooted into TWRP same error as above.

Results Backup/Restore works fine for all the partitions except /system.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
That's same message l got (stucture needs cleaning)when trying to reflash SuperSU after restoring my errord backup

---------- Post added at 05:44 PM ---------- Previous post was at 05:12 PM ----------

The system was the problem for me as posted earlier today
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
Yes, f2fs commits are needed in recovery kernel, with added commits in boardconfig.mk when compiling recovery. Also need f2fs support in ROM with similar support in kernel and device tree.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] BoiBundy:
Unencrypted (flash no dm_verity)

F2fs

Official Recovery

Backup of ExperienceOS restored with no problem.

And lastest MagiskSU works with unencrypted.

BTW: Don't know if it makes a difference but I flashed the new Recovery via "fastboot flash" "fastboot reboot"
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flying Fox:
Will there also be a zip-file provided? Can´t manage to organize a working pc at the moment. Tried to convert the img-file by myself (on a mac). Seems not to be the right way. If anybody can help...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
You can use the existing twrp to flash the img, just use the flash img option > select recovery and flash to update

Reboot recovery once done and you are all good with the Official :good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Ofthecats:
Can everyone talking about f2fs please designate which partitions they're referring to? Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] aydinbahadir88:
USB OTG dont work..!!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
Did that occur to someone else too? Interesting to know..

You mean the "no-verity-opt-encrypt-5.1.zip", right? Then you did Format data with this twrp? Did you have to manage with the issue mentionned above?

Thanks!!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flying Fox:
I´m on Android since human being and have never recognized this option before. Thanks for saving my and all my children's life :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] astracd:
I did flash through Official TWRP, but not sure if it stick... Where I can see the version of the TWRP installed?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
Well I was just answering the question about how to implement f2fs into recovery. But to answer your question, in the early development of said file system they would incorporate into /system , /data , /cache. Lately in other devices threads it's just in /data, /cache
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] uraveragedude1:
I just restored a backup of FreedomOS, all went well. No issues with restoring data.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] aydinbahadir88:
[MENTION=912474]Dees_Troy[/MENTION]

USB OTG dont work :(
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pchtc:
xdvs23's version has otg since v62

---------- Post added at 06:08 PM ---------- Previous post was at 06:07 PM ----------

what about OOS?

currently the recovery does not seem to be able to restore data part for OOS

has this changed with this version?

---------- Post added at 06:09 PM ---------- Previous post was at 06:08 PM ----------

for it to stick you must also flash root

ex. magisk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] uraveragedude1:
FreedomOS is based on Oxygen with mods, so perhaps OOS would work fine as well. No confirmation though.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] MrWilsonxD:
Have you enabled it in oos settings? Under advanced in settings
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] astracd:
I have SuperSU pro
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] BoiBundy:
(No I did not. )

F2fs filesystem is for /data that's what OOS supports if you change /system or /cache to f2fs, flashing OOS will switch them back to ext4.

Sometimes /cache can be formatted to f2fs if supported by kernel but it causes lots of unknown bugs and slowdowns so it's usually avoided.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pchtc:
i think he means in recovery

it works in xdev23's v62+

---------- Post added at 06:29 PM ---------- Previous post was at 06:28 PM ----------

when it first loaded did you swipe to enable it permanently

if you skip its read only
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] BoiBundy:
The "flash img" option was not around back then iirc it was in beta form when TWRP 3.0 came about along with screenshot and a few other features like theming:good::good::good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] MrWilsonxD:
Right, in order to use it in recovery I thought you had to first enable it in oos....
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pchtc:
i supose thats possible
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] iamelton:
what ROM were you restoring, OOS or another one?

tia..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
I confirm OOS data partition restoration has no issue with official TWRP...[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] coderfox:
Thanks for your work! Finally an official one!!!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] iamelton:
[MENTION=912474]Dees_Troy[/MENTION]

minor issue found.. when doing backup the warning message for the data partition ("does not include internal sd blah") is shown in black colour, which is the same as the background colour.. thus the msg is barely visible.. (i remember its in highlighted yellow in other twrp versions..)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Starzboy77:
I'm very confused. Everything was fine and then I decided to decrypt my data and everything went down hill. I think I had TWRP v72 when I did it and yes, I used the no-verity file before formatting data and typing yes. Now I see only a TWRP sub directory on SDCARD. I was able to flash OOS and boot it but multiple apps in the playstore will not download when they downloaded just fine before I tried to decrypt the data. I have tried going through this procedure a million times with no success. How do I get the normal sub directories back including DCIM, MUSIC, DOWNLOADS, etc?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Matze060906:
When I decrypted data, I had the same problem. In twrp file manager there was only a twrp folder. Then I flashed tipsy OS, booted it up and all folders were back again. Had no problems since that...

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Starzboy77:
Can you shoot me a link to Tipsy? I can't find a OP5 port.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Matze060906:
Here you go...

https://xdaforums.com/showthread.php?t=3632536

It's not in the op5 section, because GZR has an own forum on xda...

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Starzboy77:
Thank you so much. So you flash it and then boot the rom and the directories should be there? Can I flash stock OOS on it afterwards?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Matze060906:
I flashed tipsy OS and latest beans mini gapps and the phone booted fine. If you do a full wipe, you can flash stock oos, but I can't say if it works. Flash at your own risk.

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pieriv59:
Hi. I tried the method for Max size bug. Nothing happen and I get this screen. Can someone help me. Thx
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Rebel7022:
https://xdaforums.com/oneplus-5/development/tool-tool-one-driversunlocktwrpfactory-t3626191

download that toolkit and format data in the toolkit it will decrypt properly ?then you'll be guchi
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
Thanks for your reply ! My question was also : how did you decrypt your phone, using the "no-verity-opt-encrypt-5.1.zip" +Format data in this TWRP ?

You can use the zip below to fixe your issue ;) It saved my day !
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Did you try "fastboot devices" first and if so, what was shown? Looks like the computer isn't seeing the phone properly. If "fastboot devices" doesn't show your device then you need to check your drivers are installed/set properly.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] nadejo:
The only bugs so far when formating in twrp it will switch file system to f2fs and the phone and recovery will refuse to mount data partition. I guess f2fs is broken. It shouldn't do that
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Saiger:
I guess it ´s already fixed for future builds https://github.com/TeamWin/android_...mmit/55828ce985605398f3efb0fcd0f1366d579d8def
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Giansi:
Im a little bit confused. First of all thank to all the devs working for us. But let me ask: actually this TWRP build is not able to backup and restore properly, am I right? I understand sonetimes it goes well, but is not guaranteed.

So I imagine is better not to play flashing and trying ROMs and stuff, thinking to return to a working state in 10 minutes restoring last backup. Correct?

From my OP5.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
Yes and no is the answer? It would be nice to get confirmation from the developers, l don't want to be in the situation l was before.l have read all the guides on twrp.me still not sure if it's safe to restore encrypted backups after nuclear meltdown yesterday?

But still silence from here.......
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Matze060906:
Does this problem only exists with encrypted backups? I decrypted data and flashed tipsy OS. Would be nice if anyone can say if restoring a decrypted backup would work...

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] nikhil18:
data restore on oos works atleast the decrypted data
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
I don't know mate l have been using twrp for years but this my first time dealing with the encryption nightmare.lt doesn't help when there is so much misinformation about it.Even the twrp site says l need to flash a custom kernel for it to work/install with a screen lock.But it works fine here the installation of twrp l mean not the backups.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Krsmqn:
Deleted.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
No fastboot flash recovery NAME.img
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
No, the format is "fastboot flash partitionname filename" so :

fastboot flash recovery twrp.img
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Thanks to the OP for the working recovery. I hadn't noticed anything wrong at all after trying a backup & restore of the stock ROM from this TWRP. Safetynet passes with Magisk etc. Then someone came along (there's always one) and asked me if my device still showed as "certified" in the play store settings. It shows as uncertified. I suppose this is evidenced by the oddball thing like Netflix not being visible in the store and saying it's not usable on this device.

Of course I just went to apkmirror and downloaded it and it works fine.

Anyone understand how the 'play store certification can either be kludged or at least how it works and what it looks at?'

Many thanks for the recovery and any answers,

Edit: "Uncertified":

I did some reading on this play-store uncertified status here: http://www.androidpolice.com/2017/01/17/play-store-soon-tell-device-gms-certified-not/ and realized that it's a Google thing that appears to be based on anything with an unlocked bootloader. At this point it successfully limits everyone, even unlocked Google Pixels / XLs from a) using Android Pay and and b) getting Netflix and I'm sure some others.

The cat and mouse security thing is always on full with these dudes.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
That's nice l take it your encrypted?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Unlike yourself? I think you should read what you typed again?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Yes, encrypted and still stock. Only have rooted with the TWRP from OP and magisk.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] iamelton:
i found the image name to be "OP5.img" in the mentioned post..

i guess you really should check again (and probably again) yours and that guy's post before acting mean..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] WNijhof:
I just installed the xXx OOS ROM and formatted the userdata. I now see that im on f2fs but that is no problem so far for the OOS based ROM. Is stock OOS also on f2fs on the OnePlus5?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
So you backed up everything and restored with no issues? at all how did you install twrp did you come from another twrp?did you have lockscreen password or pattern set?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
No, this was the first TWRP for me. Never tried the other one.

Lockscreen pattern/encryption: Yes: I setup a PIN, 2 fingerprints, and convinced myself encryption was working. Then:

Here's what I recall doing:

1) I had not yet rooted / installed TWRP before this thread arrived.

2) Rebooted phone to fastboot; I unlocked the bootloader (fastboot oem unlock).

3) Device reboots upon wipe of unlock and boots quickly into OOS 4.5.5

4) unlock by build # and turn on adb debug and unknown source installs and 'developer shutdown options'.

5) hold power wait for boot-to-bootloader and press it.

6) in fastboot; a) fastboot flash recovery recovery{fromthisOP}.img and b) fastboot boot recovery recovery{fromthisOP}.img; wait for reboot into recovery.

7) once in recovery enter PIN/Paswd/whatever you used in OS setup; Then you're quickly in TWRP. 7.5) Install magisk root , the version I said above ^^ somewhere.

8) make a nandroid backup. and reboot just to be sure it all still works, that you didn't backup crap.

9) Test superuser and anything that needs testing. I also restored data at this point from an adb data backup.

10) hold power / reboot-to-recovery // in TWRP after enter PIN // Restore your backup(s).

11) reboot.

Next I'll try one of the stock-based ROMs like oOo or FoS since I have a working recovery.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
Do you do a full restore system and everything?don't see it in what you wrote?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
It's at the end of 10). Yes, that was my entire reason for using TWRP was to test a restore before screwing further with this thing.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
Holy crap is working aswell must of been some conflict with previous twrp?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] NatsuDzn:
So what we need to do to be able to restore a backup if we flashed the previous twrp (unofficial one) ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
All l did was flash this one twice don't know for sure but restoring data system and boot all just worked fine
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Ufos92:
Not sure if that was mentioned on the previous 12 pages, but:

* The installation readme is useless. cmon, who's got a rooted phone, which was released 2 weeks ago. I just got a stock one, and in the process of unlocking/rooting/flashing. Please redirect everyone here instead (links not allowed for newbies, but look, I made it work: twrp.me/devices/oneplus5.html).

* The latter has a little but crucial flaw in the description. OPO5 replaces the recovery if you just reboot in after flashing. So it should be

`fastboot reboot-bootloader` and choose "recovery"

instead of

fastboot reboot

Yes, I've seen the generic disclaimer, but it was not the *first* boot. Or maybe you've meant something else, but it still was quite a confusing description. You should rather just say, that booting into the ROM will erase the recovery, so first step after flashing TWRP *must* be booting into TWRP.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Giansi:
Ok I'm stock last OOS encrypted but rooted with supersu. I came from unofficial TWRP, flashed official with unofficial, then flashed again official with official, and again to be sure! I tryed a backup of all the possible partitions, and then restore of all partitions. It worked correctly.

From my OP5.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] EdHicks:
Wasn't this necessary on the 3/3T as well? Reboot to TWRP after flashing it I mean.

Second, directed to anyone who can answer, is the ability to restore all backed up partitions working for those who aren't encrypted?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] :
[MENTION=912474]Dees_Troy[/MENTION] What's new in the version 3.1.1-1?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] uraveragedude1:
My bad, I read it wrong. Lol

I'm gonna flash the latest though and see if I notice anything.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] shadowstep:
The issue where formatting the data partition using TWRP changed it's partition type to f2fs from ext4 is now gone. Here's the commit that fixed it. :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] arjunarora:
So this means this is a fully stable twrp now..?? Though I've gone thru the whole thread.. Still asking.. :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flying Fox:
Q: ist the already a way to flash magisk when being on decrypted data?

And thx for the update to 3.1.1.1!!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
I have no idea if the developer did change something extra with 3.1.1.1, but with the latest version I can finally use my fingers to make the pattern. With 3.1.1.0 the pattern did not work for me. (if I did flash back the unofficial version .72 it did work). Now with the latest official version it does work also (for me). :good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] WNijhof:
I get, after installing xXx ROM and right after that EXkernel, an message in the log telling me the /system is unmountable and that it needs cleaning. What to do about that?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] shadowstep:
Looks like it, but I haven't used all the options available (including backup & restore), so..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] arjunarora:
I don't need backup and re store.. Lol.. :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
Yes, just tested it with official twrp 3.1.1.1
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
That screenshot isn't from TWRP? Also mine isn't mounting when I choose OTG in mount menu in TWRP 3.1.1-1, it did work fine in previous version. Tried rebooting back into TWRP with the cable/drive attached too.

It does show up in Tipsy OS when I boot into it and it was formatted with FAT32.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] aydinbahadir88:
Thank you but wanted to know if it works in recovery mode
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] gouthamgoumi:
I tried when there was no OS installed it wasn't working..And It wouldn't mount OTG
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
No, in FreedomOS OTG, with a OTG cable and a USB drive. Let me check in twrp, reporting asap.

---------- Post added at 12:54 PM ---------- Previous post was at 12:53 PM ----------

Going to test it now, back in a moment.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
Not working in twrp. Also impossible to mount. Edit: version 3.1.1.1
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] aydinbahadir88:
Thank you for your help

I am the USB OTG important hopefully it will soon be fixed
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rav101:
Already been covered. Didn't see there was another page of responses
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
3 posts back ;)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rav101:
Yeah sorry, I edited my last post already. I hadn't realised there was another page of responses to read through. My bad
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Giansi:
About backup and restore : I was able to decrypt my OP5 and I can say that backup and restore are working!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] the_mentor:
Did anyone have experience flashing Ota's with the latest version of this recovery?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Think most people are using it to flash custom roms, this is XDA dude :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ray2jerry:
Thanks for the head's up... I followed your tip and it worked great. I figured something would have to be done before a simple reboot, this was an easy way for sure and one of those extra things that really should be mentioned officially! :eek:

Thanks again,

rAy
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jekyll530:
Maybe you missed this section?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Someone asked me about this earlier in the thread; I replied here: https://xdaforums.com/showpost.php?p=72956022&postcount=109 (post 109 of this thread).

Another way to go about it that accomplishes the identical thing is to :

Step N) fastboot flash recovery recovery.img
Step N+1) fastboot boot recovery.img.

Post-TWRP-boot you've gotten rid of /system/*boot*into*stock*recov*.p and renamed it to *.bak.

Does just what that footnote in the OP says.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Dinerve:
This is the weirdest release....

Not a sign of the OP's author, [MENTION=912474]Dees_Troy[/MENTION], no apparent consultation with [MENTION=6584600]xdvs23[/MENTION] who did a great job till now, so looks like two branches, the 'official' fixing what xdvs hadn't (ability to restore backup properly) but lacks serious fixes xdvs's addressed like OTG support that is rather essential....

Go figure but this is quite confusing aka 'quick let's release something official before key contributors do and let's forget about it once done'

I'm a big noob and know nothing about this community but all of this feels a little bit like odd politics to me that just create confusion imho....
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
[MENTION=6584600]xdvs23[/MENTION] posted here that it will be good to collaborate together.

Now is [MENTION=912474]Dees_Troy[/MENTION] move to speak, it will be good for the community if the OP is active on the thread.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Wisiwyg:
And (following the helpful post above), it is not uncommon for several versions, the official and one or more unofficial, to be in the forums with the unofficial versions adding tweaks, additional options, themes, etc. Official TWRP is used on many, many systems. [MENTION=912474]Dees_Troy[/MENTION] and the other authors of TWRP stick with pretty much main-stream feature set and don't have an issue with people customizing it - it's XDA! Just make sure you direct your questions to the author of the version you're using.