yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
So: If his TWRP supports encryption but doesn't ask, does it try to decrypt first off using the default password ("default_password") and actually decrypt? If everything else works right in his TWRP, it could be a good starting point if his git source is available.

So far the only one that works well for me without errors on restore with encryption is still the official TWRP which only lacks OTG support. I realize different versions seem to work differently for different situations on individual OP5's. I'd still like to see one that doesn't spit out errors, accesses OTG and allows all variations of ROM's to successfully restore.

Thanks.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Ascertion:
Thank you for the theme tip! It worked perfectly!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] bpambrose:
TWRP with Magisk

Yes I have Magisk installed. My Recovery is working still getting the errors (Red Data) I just let it run it's course and everything works for me. (Backing up/Restoring Data, Flashing Roms and other .zip files) still have too Decrypt with pattern. Hasn't failed yet.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
[MENTION=6584600]xdvs23[/MENTION] your gerrit commit was merged, official twrp will get usb-otg fixed on next release.

And you gave me credit on changelog!

https://twrp.me/devices/oneplus5.html
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
As I said, the dev said his recovery supports encryption. BUT, it does NOT ask for password/pin/schema, so it fails to decrypt the data partition, instead you'll have only "strange" names in sdcard.

Everything else is working fine.... once decrypted.

But he'll look at that.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Xaniel:
On the offical twrp-version 3.1.1-1 (here) i cannot use my usb-c stick on OTG (is not available, 0MB) in the install menü in twrp. On the twrp-version 3.1.1-0. (from here (73-20170716-125431-CEST)) the usb-c stick works fine. I'm back to the twrp 3.1.1.-0, i hope the next offical update from twrp i can use my usb-c stick via OTG in TWRP to flash my phone with the new twrp version.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ndarkside93:
Look about 2 posts above you. The commit to fix usb otg was merged. Next build will have it working.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Xaniel:
Ah okay. Sorry for my another post to the otg problem.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] NightMean:
Now I would love if you could submit the enable double tap to wake as I'm missing it a lot :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Yeah I saw it, wasn't ethan (dees_troy) who merged it tho.

Of course I did, it's in the commit description.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] katinatez:
Made a git pull, maybe it will be merged before next release.

https://github.com/TeamWin/android_device_oneplus_cheeseburger/pull/2
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Just submitted to mine, thanks

https://github.com/xdevs23/android_...mmit/ed9212f4f1814e06df729b0880013a5c3aab2890
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Interceptor777:
Is data restore supposed to be working? I just restored my ecnrypted OOS backup (everything, with data) onto my encrypted Resurrection Remix phone and it worked perfectly. Still encrypted too.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hastaloego:
as long as it stays encrypted. i tried installing a decryption only rom, which failed ofc, but when i tried to restore then, i got problems
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rwargaski:
Hello

This is my first time flashing TWRP ever and I was wondering if someone could explain to me, in simple terms, any problems that this build of TWRP has? Also, if I'm looking to stay encrypted for security purposes, is that going to be a problem?

Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Blueblob:
Restoring data from stock rom to custom... You like to live dangerous [emoji81] (like data of SystemUI or base framework or other system app)

Envoyé de mon ONEPLUS A5000 en utilisant Tapatalk

---------- Post added at 12:37 AM ---------- Previous post was at 12:29 AM ----------

Encrypted is not an issue, TWRP handles it well.

And restore works.

Not sure : playing with f2fs can cause issue.

Good luck (first thing to do with TWRP : backup efs partition (IMEI number))

Envoyé de mon ONEPLUS A5000 en utilisant Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Interceptor777:
Not restoring onto anything, it was a full backup of every single partition including data. There shouldn't be any risk there.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ArkAngel06:
As far as I know the only problem this version has is no USB OTG support.

If you stay encrypted and use encryption supported roms or stock OOS, everything but USB OTG works fine in my experience.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Blueblob:
Sorry didn't read well [emoji81]

You are right [emoji106]

Envoyé de mon ONEPLUS A5000 en utilisant Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pois0nDF:
Hoping someone can help me out with some issues I may be having? I recently picked up the op5 (came from pixel xl) I think either I'm missing something or Twrp is not actually installed on my device.

I have unlocked the boot loader, and flashed 3.1.1 recovery in command (fastboot flash recovery twrp.image) this seems to be successful.

then I use fastboot boot twrp.img to boot into twrp recovery. I go through all nec. steps then reboot to system. I am not decrypted at the moment nor have i done root yet.

When I hold volume up and power to reboot to recovery it seems that I still have the stock recovery. Am i missing a step, do i need to have root inorder for recovery to stick, or do i have to decrypt?

Appreciate any help, Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hiddenusername:
After flashing twrp, do not reboot. Instead again reboot to recovery and then reboot to system. This will prevent force recovery replace by stock ROM.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pois0nDF:
So reboot recovery from within the twrp recover screen then boot. Makes sense. Appreciate the tip I'll give it a shot in a few.

---------- Post added at 02:32 AM ---------- Previous post was at 02:09 AM ----------

So I have done it twice now:

Fastboot flash recovery twrp.img

Fastboot boot twrp.img

Once booted reboot to recovery then reboot to system

Also:

Fastboot boot twrp.img

Installed twrp.img via twrp

Then reboot back to recovery

Reboot system

Unless the twrp recovery screen looks different than what I'm used to I think it's not holding.

Here is my command screen:

https://goo.gl/photos/pi1pL82CGsEK5jwUA
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Blueblob:
Same issue as you.

Fixed by flashing custom kernel

Maybe flashing SuperSU do the trick (I'm not root)

Envoyé de mon ONEPLUS A5000 en utilisant Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pois0nDF:
Im going to try flashing magisk. I posted on another thread and was told that it won't hold unless you flash root.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ndarkside93:
OOS will always replace recovery without root(Magisk or SuperSU) or a custom kernel. It's coded to overwrite the recovery.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jdogzilla:
Hi all, unable to apply the latest TWRP ... getting the following error:

target didn't report max-download-size

sending 'recovery' (24496 KB)...

FAILED (remote: Requested download size is more than max allowed

)

finished. total time: 0.000s

Any advice?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ulxerker:
try with latest platform tools/adb drivers.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jdogzilla:
Thanks that worked. Not happy that I could not do this through Linux (not your fault), but at least I'm setup on my OP5 now.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] m0d:
Use search, mentioned already.

Probably due to usb3 connections.

Use usb2 port on pc.

[ https://xdaforums.com/oneplus-5/how...flash-twrp-t3624877/post73037306#post73037306 ]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] satand:
does it work to restore a OOS 4.5.8 backup including data or is it still not possible to restore data?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
I'll answer you even thou it's been discussed many times if you look. Yes it's possible
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
Can I restore only data?(In the case where I clean install a ROM and I have Data already backed up from the same Rom) is it also possible to restore data to different Rom's as long as they use the same base (from say xXx to Fredoom and vice versa)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Rhoban:
I heard the multiROM enabled TWRP restores backups without problems.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
It does not Matter what I do I have tried multiple recoveries. Using Latest build here backing up everything to internal sd card(xXx Rom) except cache and Recovery.

Boot to recovery hit restore. Select everything and as soon as I get to Data KABOOOM same on all TWRP's

Please see attached screenshot.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pois0nDF:
Quick question, I'm already running with 3.1.1 and a custom rom. I recently came across the blacked out version of twrp 3.1.1, and want to flash. Can I just flash in recovery, then reboot to recovery then reboot to system without any issues. Or do I have to restore my device back to stock and start the process all over .
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
Have you tried all of the fixes mentioned in this thread?

https://xdaforums.com/nexus-6/help/e-createtarfork-process-error255-t3302462
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
Thank you Jamie, Lot's of good stuff there, Will try later have to go out now.

Will report later
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
I have run in to an interesting issue. When I do a full backup and then do a factory wipe followed by a full restore.

I get a problem with system partition. The system ends up in a read only state and can not be mounted. The phone gets into a bootloop sort of:) when booting system. one fix is to go to recovery and dirty flash the rom again, all is OK.

The other way is to do the restore, format system ext4 restore system only again, reboot system. All is OK o boot up.

I am using NoLimits rom, double tap to wake up , swipe up on lock screen

---------- Post added at 05:37 PM ---------- Previous post was at 05:27 PM ----------

So I made two backups. The second one does not include system image.

Factory wipe

Restore backup

Reboot Phone NO PROBLEM AT ALL:cool:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] RMarques:
I've had the very same issue. I'm running the same xXx Rom. Dirty flashed the Rom and everything went ok.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
Try without system image ticked . I actually have a separate backup without system image and it restores without problem.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
There is no need to backup system image, waste of time and space. See this post.

https://xdaforums.com/showpost.php?p=73462890&postcount=1137
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
Thanks for sharing. I'll conduct a few tests and explore!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
So yes it's true you don't need to backup system image. Keep in mind that theres no need to wipe everything prior to doing a restore it's redundant. It's done automatically when you restore just look at the screen it wipes everything automatically. Just hit restore and select the one you want
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
Confirmed: I was able to successfully back up and restore without including the system image! I appreciate being able to shave 3 GB and a few seconds off my backups. :victory:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] SysGhost:
For those who have this mysterious fastboot error about incorrect size. I can tell you this:

The only fastboot that works with Oneplus 5 (and perhaps the other oneplus devices, are the one that,s packaged with the device itself along with the USB drivers, "Oneplus_USB_Driver_Setup.exe")

If you connect the device to your computer, you'll notice it'll present a virtual optical drive, with all files needed.

...and yes. They're windows only afaik.

The standard tools from google/android sdk does not work quite well.'and result in various errors and strange behaviour.

I've hammered my head on this a long time, before giving in to try out the default Windows version. (I run linux myself). Once I installed Windows 7, and oneplus USB drivers, along with Oneplus own adb and fastboot binaries, it all went smoothly.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] reas0n:
SHA2 on/off switch doesn't work. Probably not the problem with device, but with TWRP code.

Also ADB without MTP doesn't work too.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] nokia_16:
CAn someone help me.. I am running latest xxx with bluspark recovery.. sometimes when i install anything like kernel or any other ..Always i am stuck with oneplus loading screen.. then when i go to recovery and dirty flash rom nothing working. Then after restart again all my data gone. I have to format userdata and once again install os and copy all my data.. I dont know whether i am missing anything.. CAn someone help me. I am on encrypted mode. I know this is not rom fault or recovery... But i am in badly need of help..i guess i am missing anything
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] gvaram:
You are posting this on wrong thread! Make sure the kernel is compatible with the rom you are flashing it with.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
[MENTION=912474]Dees_Troy[/MENTION] you should update the thread saying "TWRP 3.1.1-1 touch recovery";)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Do you really think he will ever change that?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] MrPepperino:
Does OP ever post in this thread since start? I cant remember and actually using a unofficial twrp
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
The thing is, this TWRP actually works perfect
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
OTG was fixed on this one?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
Ooops I've never used OTG so I have no Idea, I just keep one copy in the phone (and one reasonably fresh on the PC)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] iamelton:
the otg fix was merged into the source (as described in the official download page), but no binary build yet..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
All ok here, works fine

Flashed through existing TWRP and reboot
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Rebel7022:
well i had the other twrp on, then i downloaded official twrp, i installed image in twrp then restarted twrp, then i wiped everything but internal and when i went to sd it was wiped, so i sideloaded rr and booted but after the rr logo it said encryption uncessesful and something about a factory restet so i in stalled dm verty then formated then sideloaded rr , but same message. i even went back to older twrp . any ideas why .
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jamal2367:
Thank you for the twrp :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] FcukBloat:
advanced wipe > click format data > write yes

doesn't solve either? (mind it will wipe your internal sd again)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] _MartyMan_:
Thank you very much!!! :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
I have a other problem. I flashed this with the previous twrp (unofficial one), and now I can't enter my pattern to boot into twrp. I see twrp if I boot into recovery, but entering the pattern is not possible. Edit: I installed the twrp app from the Playstore, flashed back manually the unofficial version (. 72) and I can enter twrp again with my pattern. If i again flash this official version I cannot enter the pattern...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Krsmqn:
+1

Why is this happening? My issue isn't the sdcard being wiped. The message about encription unsuccessful and factory reset needed is my issue. No matter what I've tried, it's the same result.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] BoiBundy:
Yeah, if you see the screen at TWRP boot up that says: "Swipe To Allow Modifications" and you swipe it will wipe your internal. Thats what I gather.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
No it does not wipe, swiping right just allows it to mount system to make changes to system partition
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
I've just flashed within unofficial TWRP, and everything is OK, I'm also able to enter in TWRP with my old pattern... Just curious about data partition restore, will do after reaching home,

Thanks [MENTION=912474]Dees_Troy[/MENTION]...[emoji120]

[MENTION=4470563]BoiBundy[/MENTION] Don't spread wrong information, as [MENTION=6143932]Funk Wizard[/MENTION] also cleared I'll also say it's not wiping internal storage...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jemeljsh:
Thank you for work.

Does this ("Backups will now include adopted storage keys") mean that twrp made nandroid backups and their restore in twrp is no longer an issue (unofficial version of twrp can't set the policy on /data/local which is causing the system to reboot into recovery and wipe data)?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] BoiBundy:
I'm not spreading wrong information.

just assessing the situation

Idk where it cleared my internal storage but after I booted up the Official TWRP I unencrypted which I know wipes internal. It said /data may not be accessible until Reboot. So I rebooted recovery the screen popped up to "allow modifications" I swiped to allow. Then over MTP I transferred a ROM zip, Latest Magisk, and the boot.img from the rom zip to internal storage flashed them. Rebooted into system and everything was running fine. So I booted back to recovery to test /data restore and it asked me again to "swipe to allow modifications" which I thought was weird because I had already did that but anyway I did and lo' and behold the ROM zip, Magiskv13, and the boot.img were not in my internal storage. Idk how they disappeared but I attributed it to the swipe modifications and strangely enough my data partition is now f2fs and ext4. But everything seems to working fine now.

Now I'm guessing when flashing the zip it modified my partition to f2fs and that is what wiped internal. Just a guess
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
If you're seeing modification screen again you'll have to check "Never show this screen" or something like that, and you'll never see that screen again...[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
You are right, format to F2FS wiped your memory. Neways I would still recommend EXT4 over F2FS.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] KOLIOSIS:
Are you decrypted on the stock OOS or another ROM?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fjsferreira:
So, this one can we restore data? I haven't had the time to test it yet :( also, dual boot patcher works for our phone? Anyone know? I know I can test it myself but if anyone already done it would be nice to have a confirmation...

Sent from my OnePlus 6 8/128GB
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] a g bell:
Installed the new build did a full backup to see if it worked restored backup got an error 2 couldn't fork, rebooted phone sd has been wiped booted in setup wizard
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Hey [MENTION=912474]Dees_Troy[/MENTION], nice to see you bringing this up, but maybe we could team up and get some of my changes into your trees to build a more stable official TWRP. After that we wouldn't have to keep two variants of TWRP alive as nothing would be more broken in this one than in mine.

The only problem in mine is restoring data which causes the system to fail setting the policy on directories, and reboot into recovery. :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] goran_oh:
+1
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] nadejo:
F2fs doesnt work currently. The device will refuse to Mount data if you change to f2fs. Also formating data will switch to f2fs simply change filesystem back to ext4 if this occurs.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sjamie:
Yes, that's what I remember. Thanks!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Neither can I.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pho3nX:
Dees_Troy

Senior Recognized Developer

Send Message User Lists

Last Activity: 31st August 2017 05:58 AM

LOL, he don't want... It's really ridiculous to create a topic for nothing
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thaidroid:
"the otg fix was merged into the source (as described in the official download page), but no binary build yet.."

There's no change log for 3.1.1-1

Has anyone tried OTG on 3.1.1-1? Maybe that's why it's there?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ulxerker:
It's not working with the official version, also according to twrp.me this version is from 2017-07-08 22:23:07 EDT.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ArtakEVN:
Structure needs cleaning

Hi

I am trying to make a nandroid backup before flashing 4.5.11 on my Oneplus 5.

TWRP 3.1.1-1 , root, magisk 14

First of all on backup screen I see System partition size is 17592186044373MB . Is it normal ???

and when I'am swiping to backup getting the following error

[B][COLOR="Red"]Failed to mount 'system' (Structure needs cleaning)[/COLOR][/B].
[B]Backup failed. Cleaning Backup folder.[/B]

When I am rebooting from TWRP it warns me

[B]No OS installed! Are you sure you wish to reboot ?[/B]

But after reboot I'm booting in OOS with no problem.

Any ideas how to fix this?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Triple999:
Hi i have recently been trying to install TWRP on my Oneplus 5

After i flashed the custom recovery from the bootloader i press boot in to recovery TWRP loads up everything seems to be all right i press reboot the to system phone reboots and TWRP gets replaced by stock recovery. I had unlocked bootloader and i did flash TWRP no root with magisk. I want just to install Lineage Os on my device.

Any help would be much appreciated thanks.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] char101:
OxygenOS will reflash the recovery partition if the signature is different from the stock recovery every time the phone boots.

If you just want to install lineageOS, you can try these steps:

1) reboot to bootloader/fastboot

2) run TWRP without flashing it: fastboot boot twrp.img

3) flash lineageOS from TWRP

4) flash TWRP from TWRP (by selecting flash image from install) or reboot to bootloader from TWRP and flash TWRP using fastboot

5) reboot to system
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Triple999:
Thank you. But if i have Lineage Os with my stock recovery wouldn't i brick my phone ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] char101:
The recovery partition cannot brick your phone. Soft brick is caused by error in the boot/system/firmware partition.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Triple999:
All right does it mean that even with my stock recovery i can boot in to Lineage as long as bootloader is unlocked ?

Just want to know a bit more in case something goes wrong.

With my Nexus it was easier

Thanks ;)