yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hackpb:
Well [MENTION=6584600]xdvs23[/MENTION] I have tried everything like I said, and the result was the same. Resuming: I had made a backup (copied it to pc), rebooted phone to fastboot, then - "fastboot format userdata", after that: rebooted the phone to recovery (copied backup to phone) and restored backup, but then it constantly auto-rebooted to TWRP.

So, after all that, I have tried only wipe data, same result, next formated data in TWRP and it reboot to OS but, off course, no data was present...

Relatively to obtain RW in OOS I could't achieve it. The most close was like is present in the screen attached but even when "mount | grep system" return as RW it dosen't work... But it isn't a problem maybe it is a OOS fault (feature :))
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
In your screenshot

mount -o remount,rw /system

seems to work because once it says rw
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
The data partition is fine, it just fails to set the policy on one or more directories, we're on it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mukesh22584:
Yup...[emoji106]

After flashing twrp 61 my storage doesn't show in my PC, so I've changed my file system to ext4 after that I wanted to change my file system to f2fs but there is no option for that in TWRP...[emoji4]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] nadejo:
I didnt change anything i just used the format option of the flash tool so i guess its ext4 by default

---------- Post added at 17:24 ---------- Previous post was at 17:20 ----------

Also ive noticed the twrp folder is generated in sdcard/emulated

And not in sdcard/emulated/0 i deleted it and after booting in twrp it generated it on sdcard/emulated/0 maybe because formating removed the 0 directory. and even stranger the obb folder which usually is inside sdcard/emulated/0/android/

was in sdcard/emulated aswell. But also generated in 0/android so i had it two times and delted it from the emulated directory

What is going on there hahaha ??

Edit: as ive deleted the obb folder the obb folder in android/ is looking strange, saying 0kb and there is a question mark. Also the app that used the obb folder doesnt open anymore. How can i workaround this

Edit: I could only fix it by deleting the strange broken obb file in twrp and recreating an obb folder.

But it gets cloned in sdcard/emulated again. Wtf
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
The obb thing is normal.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] nadejo:
Ok thank you
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
So i just tried to update to 4.53 dull zip and it's stuck again on patching system image unconditionally. I don't understand why it does this. whta I did is download from my pc the full zip of 4.5.3, reboot in twrp v58, wipe dalvik and cache, install zip selecting the full ota not incremental that I copied from pc. andnow it's stuck on patching system image unconditionally and I don't understand why...any help? before flashing I did a nandroid backup but I would like to update at some point
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Redownload the full zip, wipe system and flash again.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
you mean flash system partition in advanced wipe?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Yeah just wipe that
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
I downloaded the rom again from oneplus websiste, wiped again cache, dalvik and system and reflashed....now the progress bar goes to the end, but after 20 min still hangs into the same patching system image unconditionally....i really don't understand what is wrong...

---------- Post added at 10:23 AM ---------- Previous post was at 10:17 AM ----------

tried to do a restore but no luck, it bootloops again into twrp and I really don't know what to do now, very annoying. to I have to do a clean install and loose all my apps and data ??

---------- Post added at 11:20 AM ---------- Previous post was at 10:23 AM ----------

UPDATE even trying to do a factory rest and clean install doesn't install the rom, still getting the same patching system image unconditionally...I hate myself
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Restore only system, wipe data and reboot
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
so factory reset, restore system only wipe data and reboot. let me try.. Thank you for the help

is booting up!!!! but I guess I lost all apps and settings right?

---------- Post added at 11:40 AM ---------- Previous post was at 11:32 AM ----------

Ok this allowed me to boot and start from scratch, but so at this point there is no way to update again. What I don't understand is why if working for everybody except me. I must be doing something wrong. This all thing is very annoying, I never had any issues with my opo regarding flashing....
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Well, encryption to blame. I don't know why they do it so complicated. I wish they had simply used luks.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
I thought the problem were there if I was unencrypted, But I am enrypted so I don't really know what is wrong...anyway I'll restore my apps from titanium and set everything again, and not update for A while, maybe some of these problems will be solved, I appreciate the help
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thy1985:
hi again

has anyone tried to restore a backups (all partitions checked) already? I created a backup with twrp-58 and restored it afterwards (having twrp just booted, not flashed).

After restoring the backup & reboot, the phone says "wiping" and everything is lost.

anyone any idea what I did wrong?

Thanks a lot!

Cheers,
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hackpb:
Almost 65 pages talking about that... :P This is the only problem so far to be addressed in this twrp... Devs are working on this...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thy1985:
ooops & thanks :o
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
Did you tried restore apps extracting from TWRP With Titanium Backup ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] thy1985:
no, didn't even know that is working! I'll check this out. Thanks for the pointer. :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
TiBU Pro

Yes, Titanium Backup PRO (USD 6) , I will use it to restore from the 3T TWRP Backup to the 5 when I have it my hands.

Very usefull to restore batch of apps from one device to another.

If it works maybe we can suggest to add it as workaround to the OP
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] zplot:
TWRP not recognizing OTAs

Looks like others have been running into issues trying to update.

I'm on the latest TWRP 3.1.1-0 for OnePlus 5, everything is nicely rooted, but I cannot update to 4.5.2. I downloaded the full ROM, but got the standard "error 7" warning. I could see that the updaterScript expected ro.display.series to be "OnePlus 5", which is the case in mine.

Nonetheless, I went through the steps to remove the verification line in the ROM, and still no luck (got an error that it couldn't read the updaterBinary).

Any ideas? Should I try a different version of TWRP?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Rebel7022:
I'm using the latest
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
[MENTION=6584600]xdvs23[/MENTION]

Just to back up the OTG evidence, I'm on the latest release...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] aydinbahadir88:
USB OTG does not work :(
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
I just showed you evidence, in the post above yours, that it does...

..Jesus.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tinuz97:
OTG does work fine here :highfive: (edit:I am using the original OTG cable from my Oneplus 3T).
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
This is the one I'm using, another quality product from Anker and way cheaper than OnePlus's official cable :

https://www.amazon.co.uk/gp/product/B01COOQIKU
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] paratox:
omg, i wiped data and fastboot erased userdata and now i could not mount data partition anymore. anyone could help?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Eng91:
Is there a way to upgrade to the last build without an adb shell?

Thanks in advance!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Just type "fastboot format userdata" and it'll create a new clean partition, should be fine to flash after that
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] paratox:
already did this and it did not work. at this moment i was scared and tried adb sideload with twrp. this also did not work. next step i flashed stock recovery and sideload adb. now all is working again. :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] aydinbahadir88:
Jesus Jesus

It did not work! It does not have to fold everything just because it runs with you without problems

Now it works with me also
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Use version 56 or newer, that issue is already fixed for days.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Seems that I have to add alot of stuff to OP and remove the v46 one as many people don't seem to read anything, and just look for the orange links and then complain.

OTG works from version 62 on, some people had it working before, but 62 has to work! Additionally, DO NOT restore data backups if you want a working OOS. Use titanium backup or other backup solutions in the meanwhile. This problem seems to be on all SD835 phones.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tobby88:
Hi

when trying to flash I am always getting this:

This happens with v58 and v62. Sometimes I get this instead:

Any ideas?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hackpb:
Try to change pc... What OS are you using. Some users are reporting that changing usb port or pc (different OS) make it work. I have used win7 without problem.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hitman478™:
There's an option in twrp to flash .img files... don't know if in this version works but you can try ;)

---------- Post added at 15:12 ---------- Previous post was at 15:08 ----------

Like xdvs23 said, try to change USB port on PC. I was getting same error with my nexus 6p, simply reinstalled all drivers, ADB included, changed USB port and it got works
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] HannibalIII:
Twrp doesn't stick... It goes back to chinese recovery when flashing magisk so I got in a bootloop any help?...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tobby88:
Damn, I tried already both USB ports on my laptop and I tried Windows 10 and Arch Linux. Now I tried one of the USB-ports on the docking station and that worked! Thanks :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] chrissss91:
Hi Simao,

What's going wrong in OOS when restoring data ?

Keep the good work.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Even though you have it resolved by playing USB musical chairs this post may be an actual solution as the poster provides a software solution. I'll be trying this solution later today and will post if it works.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
hi cut u try port twrp 3.0.4.1 didnt delete data

if i remember right 3.1.1-0 didt delete data

didt also delete all data on op3

or try port bluespark twrp he didt fix the data problem on op3
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jaimejdv:
Hi, I did a backup with no problems as well, but when I need to restore it didn't work. No errors, it just reboots to the OS welcome screen. I am so pissed to even try testing, I just want to use my phone lol. The question would be if you have test to backup and restore.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
Is in the OP:

"Read before flashing! Read before asking!

OTG works from version 62 on, some people had it working before, but 62 has to work! Additionally, DO NOT restore data backups if you want a working OOS. Use titanium backup or other backup solutions in the meanwhile."
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jaimejdv:
????? OTG? who mentioned OTG? what is 62? I have used TWRP for years to Backup and Restore my OS images for years. If your final answer is to use other backup methods because TWRP is still not working at 100% with OP5 then thank you, btw, I tried to read all the posts for problems at I might experience in the future.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
no i dont think they have try to backup an restore

i dont give a s*** about otg

we can not even restore the first backup it will also delete data there

thats why i ask the op to try port 3.0.4-1

because it dont delete data on op3

like 3.1.1-0 didt
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] zplot:
I'm on version 58. Ultimately I tried using Flashfire, which worked but lost TWRP and root. I sideloaded TWRP again and re-flashed magisk.

Looks like version 58 still has an issue.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
62 is the version.

I´ve quoted all paragraph, the relevant part is DO NOT restore from TWRP, use Titanium Backup (The pro version can extract from twrp backup) for workaround restore.

The issue is that OOS does not recognize the data "signature" and reboot to recovery with wipe data command.

Im waiting for LOS based ROM, this issue will not be there.

Ive also used CWM recovery since 5 years ago and TWRP since 3 years ago, sometimes with issues (Like wipe data when flashing on OP 3T)

Even if stable , TWRP for this device released 10 days ago is WIP , you have to be patient
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
It's been quite a journey following this thread since the beginning. This might be, unfortunately, one of those cases where we just need to wait for the dust to settle. Those of us that need the phone to work for day to day things and can't be testers might want to just do normal mods with root inside the phone and wait on flashing stuff until these issues can get worked out. That's what I decided to do for now.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rwallhtc:
I don't understand. Are you saying that you've used twtp to install magisk but that magisk has caused a loop and when it boots up next it goes to stock recovery?

I'd suggest doing what I did if so

Flash twrp and flash a custom rom. I do however believe that flashing su or super su can also stop the recovery reverting.

As for the boot loop. All I can suggest is wiping data in twrp
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] CroW_D:
Wonder which custom rom you mean !
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
I fully agree with this, on OP3, I too used [MENTION=8012056]Blu_[/MENTION]spark's TWRP! Maybe a track to follow?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Step-han:
Can confim that version 62 is working great.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
It says there that you should not restore data backups.

I would recommend you to read the whole OP before you say anything here. Really don't want to be rude but people ask everything again and again and complain about things we already warned about and explained multiple times, even in the OP.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
The data deletion thing was only there on one or two images. If I didn't miss anything, the latest image should not wipe your data even if OOS requests to.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
I updated the OP.

Now there is no reason for complaining about restoring data nor OTG. Even updated the title for non-readers.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] oF2pks:
Maybe https://gerrit.omnirom.org/#/c/20849/ could do the trick , but has to be build with 7.1 branch of Omni.

(+info https://gerrit.omnirom.org/#/c/21151/ check comments)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] maurydes:
First rename the image in twrp_62.img (the string is too long) second try this: fastboot flash "and copy and paste the revovery img in the prompt line and press enter" i have flash it today and no pronlem at all [emoji106]

Inviato dal mio HTC U11 utilizzando Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
I suspect is not related, to be sure [MENTION=6584600]xdvs23[/MENTION] can con confirm if built with 7.1 and have TW_IGNORE_MISC_WIPE_DATA = true in Boardconfig.mk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Yep this TWRP is built on android-7.1 omni branch and here is the flag: https://github.com/xdevs23/android_...ger-twrp/blob/android-7.1/BoardConfig.mk#L139
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
[MENTION=6584600]xdvs23[/MENTION]: Can you make it themes compatible, i tried on V68 but didn't work, Thanks for your efforts buddy !!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dabug123:
Making theme compatible is last thing..
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Themes work fine on it, you just need to edit the ui.xml inside and change the themeversion at the top to 3, I updated the one attached and it works great, just flash the zip and it'll auto-apply.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pieriv59:
Impossible for me to flash. There is Always the same error message about size file. Any solution ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
Ok Thanks, i shall give it a try :good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
if it is twrp u mean

then rename it to recovery

then it shut install
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pieriv59:
I changed the name. Ii

I changed the name. It began but the message "sending IMG" is still here after 30 min and nothing happen.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
try put the folder wiht adb.exe an fastboot remember to have recovery in same folder under c root directory
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alukarulz:
The problem is your cable. Use the OEM cable and try using another usb port.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] HannibalIII:
Yes that was the problem but it finally worked I don't know why and how but it did ^^
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Stock ROMs have this file /system/recovery-from-boot.p which will always try to revert recovery to stock. To stop that behavior :

- Delete it. Or if you feel uncomfortable with that, rename and stick an 'x' on either side of the name. That'll do it. (Note: Need system mount rw to do that)

- Or: As the guy above said, flash a custom ROM which will not have that file included in it's ecosystem.

Cheers.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] XiaoshaXs:
thanks work.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Walhalla:
What's the meaning of this when using command line tools lika "rm -rf" or "ls -al" via adb shell?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] hachamacha:
Don't have a phone near me but I've seen the error in Linux a few times. Without context it's tough to be certain, but it's common when referring to any target that's been "ln -s 'source' 'target'" as in busybox commands. If the "ln -s" wasn't given the complete paths, even complete relative paths then it's not going to be able to create an absolute path from what it was give (e.g. ln -s {newlink} {dir/dir/realbinutil}.

Anyway: That probably made no sense to you. I was getting at using busybox commands, which are like ls and rm, but really those are soft links that are in someplace like /system/xbin and linked (via ln -s) to someplace like /system/xbin/busybox. It just sounds like it can't resolve what they're linked to.

To try to figure it out: 1) find out where rm and ls and busybox live and go to their folder. (Perhaps /system/xbin, maybe somewhere else with '*bin*' in it) and 2) use busybox directly to do "busybox ls -al ls rm" and see if those links are "absolute" and make sense. If they don't, then you'll get errors.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Marucins:
Hi

Can I update TWRP from my phone?

If it can be, how to do it?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Go to Install, then tap on "Install Image", choose your TWRP version img file and then tap on Recovery.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Marucins:
It is as safe as "fastboot flash recovery...."?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Yes, it's using the same process.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Marucins:
Thanks

I need to change the name to "recovery.img" can I leave "twrp-3.1.1-cheeseburger-62-20170627-184531-CEST.img" ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] panooos:
Name can be whatever you want. As long as you don't change the .img bit. But it's more convenient changing to recovery.img especially if you flash manually
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Jsilver73:
This might not be news to everyone here but it was too me.

I am a compulsive flasher :laugh: - sometimes I go to far and end in boot loop and no way back but to clean flash and restore TB etc. Usually with fully working twrp I would have just wiped system left data flashed new system and all good to go. I found that doesn't work with this twrp whilst it is being fixed.

I just tried simply wiping system, art/dalvik cache, cache (leaving all important data) then restored system and boot from twrp backup - rebooted and hey it works saving a load of boring restoring and setting up.

Like I said, this may be old news to some but to me it was a revelation and I'm guessing there may be others here this little trick might help.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] c_86:
Please research. This is a simple answer you can easily find by yourself
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] turbotorsten:
Hi,

Wiping with this recovery does not work fully. I wiped everything I could (except USB storage) and my quick setting tiles order was still there after multiple wiped and reflashes. Also that caused apps not to download properly anymore. Locking and unlocking bootloader (which does a full wipe) fixed that.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pieriv59:
Can anyone explain me simply how to fix max size file flash recovery. I tried different things and that doesn't change anything.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
https://xdaforums.com/showpost.php?p=72821190&postcount=63
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sigmaomega87:
App not available when moved to system app

I am trying to move an app into priv-app so I can run it as a system app. When I do, the move goes fine with no errors, but I cannot see or use the app on reboot. Please help.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
didt u remember to set permission

folder 755

files 644
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
aka rw-r-r :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] sigmaomega87:
Do you mean run the chmod 755 on the folder? Yes I tried that. Is there another way I could try?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
You need to edit permissions on the apk files. Which app are you trying to convert? Pretty sure Titanium will convert apps for you.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
u can use root explore also
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] paratox:
what will fix it? do you have a solution?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] shrubbie:
Probably just broken english. I think he ment "hopefully OP fixes it."