yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rav101:
Hi [MENTION=6584600]xdvs23[/MENTION]

Just a heads up that I have tried this version of twrp twice (wasn't sure if bad download the first time). I have flashed via "fastboot flash recovery recovery.img" and I get a okay finished response. I have tried both using buttons and "fastboot boot recovery.img" to get into twrp. In both cases I get the twrp splash screen but it goes no further. I have left the phone in this state for a good couple of minutes so not sure if this a patience thing but never had to wait that long on any other device?

Unfortunately I have tried adb commands but the computer does not recognise the phone so I can't get any logs for you.

I am on the 4.5.1 updated version of OnePlus and I think all phones are the same but if it makes any difference I'm based in the UK.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] TechnoIce:
Same thing here. I tried rebooting from the splash and trying to load into the recovery again, but no dice; still get stuck on the splash. USB debugging and OEM Unlock checked, bootloader unlocked.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dansou901:
Is that behavior new that the recovery is being patched on stock Roms? It wasn't the case on the Oneplus Two which I'm using now. If it is, isn't there an option in dwv settings to turn off this behavior?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Adromir:
I am giving it a shoot, but as I understand that this twrp was built with custom toolchains and several compiling optimizations. Maybe that is where the problem lays
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] niedziell:
+1 :crying:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rav101:
Hey buddy,

Just had a quick look on developer settings for you but I don't see it there. I would imaging the recovery being patched on every boot is a safety feature of Android/OnePlus rather than being something that can be toggled on and off.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dansou901:
Ok, you never stop learning. Thanks for looking it up! My OP5 is still in transit, so I can't check.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rav101:
I guess the dev just needs a little more time. From what I read earlier he doesn't have the device yet so this is still very good going considering! We just need patience as I'm not going to be flashing the Chinese version without sources etc.

Let us know how you get on!

---------- Post added at 07:39 PM ---------- Previous post was at 07:38 PM ----------

No problem. Always try and help out where I can :)

If I had TWRP working I would have dropped a system dump as no one seems to have done that yet.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
New image for testing here

Seems that the image I posted before is stuck on the TWRP logo, I don't know what's going on but yeah let's fix it.

If it does not work for you please root (e.g. using the china twrp) and try again, after that, reboot into system and send me any log files you can find in /cache/
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Adromir:
If what you did, doesn't fix it, I would try to remove this from Boardconfig:

# Optimizations

POLLY_OPTS := true

LOCAL_CLANG_LTO := true

TARGET_MORE_OPTIMIZATION := true

# Use Snapdragon LLVM, if available

TARGET_USE_SDCLANG := true
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rav101:
Before people start trying this version. It also seems to hang. Just downloading the Chinese version now
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Well without testing and reporting there is no way to fix this, using the china version is one solution but it won't help in getting an open and non-china version up.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Will try that but I don't think it would make a difference.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
New image (again): Download here

And yes there will be more
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Isn't it best to flash the twrp and boot to it using fastboot boot twrp.img then use the twrp you've booted to to flash it to recovery?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Does it matter?

Would be better for the write cycles to directly boot it, yes.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
So here's a new image

I changed something for OTG, so it might work now.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
[MENTION=6584600]xdvs23[/MENTION] There was a version of TWRP for the OP3 which worked with OTG, thread here, the source might provide a fix.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Yeah I keep looking into it
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
So apparently OTG is working on the new image.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Anyone else having serious problems with XDA today by the way? Seems to be running extremely slow and double posting
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
Uhh yes. Slow as hell, gateway timeouts, double posts all over the place. Total mess.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Yes it is slow today. Is it because of OP5? I saw that the threads are getting many many thousands of visits since yesterday.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Nice work, any idea if you'll be able to add a fix for the decrypt prompt being shown on every launch? I think it's only supposed to prompt once for every version flashed, wish the numbers entered weren't masked too but I know that's probably by design.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Well, storing the password/pin in plain text somewhere is a pretty bad practice, I don't know if that is actually possible to do without major efforts on TWRP.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
So, OTG still not being recognized but for some reason the OTA zip is able to be flashed in this version 58 where it gave errors in version 50,56,57. So that is something. I'll try the other sd card I have and make sure it isn't me. Anyone esls have success with the new image and using OTG in recovery?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Try formatiing the sd card as FAT32 and try again
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
It's already FAT32 and doesn't have any errors. Would there be any benefit to reformatting in that case?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Maybe. A tester said that OTG is working.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
Ok. I'm copying all of my data over to PC so I can format it and I will report back. Thanks for the help!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
No problem, I hope that it'll work for you!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pho3nX:
It's because of Chinese refresh for kang TWRP wip looool :cyclops:

Now the speed site is now fine for me :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saccentekennedy:
Nope... new version does not fix the USB OTG issue I'm afraid.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Yeah, speed is much better now.

According to NeoWin the new Pixels are going to have the same chipset as the OP5 (unsurprisingly) so this may be a great help for development (including TWRP) :

https://www.neowin.net/news/if-new-...e-the-specifications-for-the-pixel-successors
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saccentekennedy:
Not working I'm afraid.... :(
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
After reformatting both 64gb and 128gb cards and trying again, it is indeed not working :(
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] IamAlexD:
Is root available for OnePlus 5 or just TWRP recovery? coz there are loads of guide on Xda and other sites like this > http://thedroidguru.com/install-twrp-root-oneplus-5-step-step-guide/

Can someone confirm me.I don't want to brick my phone
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xgerryx:
Yea just flash SU or the Magisk 13 beta in recovery.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Magisk is best (I would recommend v 13 beta here, just noticed it's been updated yesterday too) as it'll let you keep using Android Pay and banking apps, the Mario game will also only work if you use Magisk.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] TwinAdk:
Is it safe to take OTA? In regards to the fact that the recovery is custom, the installed root, etc. I'm on stock rom, only rooted
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
If you install the full zip, yes.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] TwinAdk:
Full zip? So no downloading the offered file and letting it reboot to install? Manually downloading the new version of OOS, dirty flashing it, and thereafter flash su is the way to go?

If yes, why is regular OTA a problem?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Gomezie:
It will detect that you are rooted and remove root... possibly install a stock recovery also

(atleast that was my experience so far)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] El Montezuma:
Infos here [emoji6] https://xdaforums.com/showthread.php?t=3624877
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
I have seen that the ota updater would inform you about it. So if you have rooted, it will automatically use the full zip to update
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] astracd:
Is it possible to add dates next to link. So it is easy to see if latest fully working image change to new latest.

thank you.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] _MartyMan_:
+1
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saccentekennedy:
So... I had started downloading the update through the ROM updater... then panicked. Then downloaded the 'full zip' and used that in TWRP (followed by Magisk to regain root, etc.)

Let me clarify... I could have just let the ROM updater update by itself as it had detected root (it told me it had). It would have downloaded the full zip and applied it. Then I would have needed to boot into TWRP and flashed Magisk (my choice of root). Is that correct?

OR - would it have replaced my TWRP with the stock recovery?

Just so that I know when the next update comes.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Important: it seems like there are people out there stealing the work of others. As we have already seen, the chinese TWRP was basically TWRP for the Mi 6. While I can't really tell whether the chinese TWRPs out there are safe/secure, I wouldn't recommend permanently using a recovery for which the sources are not available anywhere. It's just a thing of protecting the work of others. I try to keep authorship wherever possible and if anyone finds something where the authorship is wrong, please simply let me know and I can change it. Help us keeping everything open source as much as possible and not using closed source software which was originally made of open source software. Additionally, I keep pushing the latest sources for the device tree as often as possible to ensure you can always have a look at what I've done right and what I've done wrong, who actually did what and what helped me doing what you get.

As a next move I am going to try using the kernel compiled from source instead of using the OOS one, so that we can even be open there.

Feel free to correct me if I am wrong.

It's your decision.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Either way the update should apply automatically. I guess it will first download the full zip, reboot into twrp, install it, maybe reboot again into stock recovery and then into the system. Then you will have to flash twrp again and root or remove the recovery from boot patch.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] CroW_D:
i followed all the steps from funk wizard and also tried to decrypt but that fails reboot into phone and now my only folders in sdcard is android and data no download folder nothing i cannot take screenshot or downlaoding apps vie chrome and i dont know if this is twrp related or something else could anyone help me out ?

I got it fixed with using the twrp 46 version the latest 58 seems to have issues.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Craxx:
With 56/57/58 backup failed...at beginning save boot..

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] astracd:
Did you use your password for decryption? If you put password to many times wrong it wipe your data. And I'm assuming that is what happened in your case.

This would not be twrp related issue.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] i_pk_pjers_i:
So, I know people used to recommend backing up modems for the 3T (at least, I believe this to be the case). Is this still true, and if so how do I go about doing this on the OP5? Thanks!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] kuhnto:
Can verify that flashing 58 on a stock op5 phone did not allow for OTG USB mounting. The USB showed as 0 size. The USB drive was just previously used to perform a twrp backup of a different device.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Can I correctly assume that the playstore "Official TWRP app" could be used to update the TWRP recovery image? I ask because I had to use a relatives Win10 PC to initially flash the TWRP (stable) recovery image. Like others I had fastboot errors when trying to flash from my own Linux Mint install. I don't usually have access to that Win10 PC, so I need an alternative method of updating TWRP.

Alternately could I use TWRP itself to flash a recovery image using a flash file? I've already installed and attempted to use FlashFire but my test to perform a backup of the IMEI data failed (just hung) and I had to do a power cycle so, at least at this point, FlashFire doesn't look like an alternative.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
No it won't because the TWRP isn't official yet so isn't hosted by TWRP so the app won't recognise the phone and so won't offer a download.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
See these instructions "Making an EFS Backup".
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] maddler:
Just tried with 56 and works just fine.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
I checked and it has a "Select a file to flash" option which does let me specify an internal storage image file. But as you say the device field has no OnePlus 5 as its not official yet. I just wondered if it would work without a selecting a device.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] TommyRayHandley:
Seconded, build 58 does not recognize OTG or allow to mount/restore from it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] CroW_D:
No I had no password/pin/pattern. And I wasn't asking for one since I didn't set one.

But it seems to be one because I was coming from clean unlock and flashing TWRP all went well and I used first the 58 TWRP it seems that when people first flashing the 58 version this issue occur, but when we update to 58 that it work I can't confirm it yet. I can just say what me happen and tracking the issue. After flashing back to 46 version the issue dissapear.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
stuck in recovery trying to update

Hey guys so I installed twrp v58 and everthing was working fine, then I notice that there was an update for 4.5.2 but becuase I didn't want to update trought OTA, I donwloaded the full zip, botted up in recovery, tried to flash it but now it's stuck at patching system image unconditionally and I'm not sure what do do at this point...any ideas?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] c_86:
Wipe data. Go into wipe and format data. It will be like you took it out of the box (you will lose all media data as well aka pictures, music, etc). Then try again. That may do it. Report back after that
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
thank you for the help, so after I rebooted in recovery after it was stuck, there was an error message saying that it was not able to mount system partition, so I went into wipe and pressed repair system partition and choose ext4. after that I wiped everything and formatted data. Now I am pushing the rom file with adb, I'll try to flash it and report. if it doesn't work what should I do?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alexsanjoseph:
I have the exact same issue. I am going to try with twrp 46 now.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
stuck again, I'm going to try another older recovery, maybe 48 to solve the issue

---------- Post added at 12:25 AM ---------- Previous post was at 12:06 AM ----------

I tried to do that and not working, tried to change recovery and error 7%, tried adb sideload and it gets stuck same way at 9%. I can't figure out why is not working. Im desperate. I was so stupid I didn't do a nondroid backup. please help
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alexsanjoseph:
I tried installing twrp 46 to solve the issue of not being able to write to the Internal storage and it still didn't help so I installed the XXX Nolimits ROM and entered a bootloop. I am not able to get even into the startup even after repeatedly flashing this and wiping. Flashing the Stock version of OOS is not helping either! Please help.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] materoprodutions:
same problems for me, i was able to install 4.5.2 but not able to wirte to internal storage at all, very annoying. The phone boots into the rom but I can't basicually do anything, since the internal storage is read only. I really don't know what do do
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alexsanjoseph:
OSS 4.5.1 TWRP Backup
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] casual_kikoo:
Go check the answer I gave in an other thread ;)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alexsanjoseph:
I had bootloop with stock and XXX os but I got it working with this OS. However, on installing the AROMA addons - I got back the bootloop. However, I was able to fix it by overriding the superuser with SU.

I think some versions of TWRP has an issue with magisk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] painball:
Where is the stock recovery link? It was here:P I can't do todays official update via twrp.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] CroW_D:
This is exactly the problem what I had tho. Used 58 TWRP and magisk latest first then the trouble begins I solved it with the 46 TWRP version and the magisk release before the newest. I am gonna stay in this combo for awhile now.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Me Gusta:
C:\Users\Joost\Desktop>fastboot flash recovery recovery.img

sending 'recovery' (24612 KB)...

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

)

finished. total time: 0.006s

hmm... what do i do guys?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flying Fox:
Stock files you can find in the general part of OP5 forum.

For everybody who cannot update via TWRP the only way that worked for me was flashing the original recovery, then starting from scratch.

https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003 - see second post
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Multiple people have experienced this issue on various machines and OS's including myself with a Linux Mint install. Here are the solutions that worked for various people:

Make sure your using the latest adb and fastboot versions

On the same machine as the error try a different USB port

Try a different PC entirely (this worked for me)

The OS with the highest number of successes, by far, is Win10 although a Linux Debian user also had success. The author of this thread has commented that the OnePlus' bootloader is poorly constructed "they didn't put much effort into it", so is the likely culprit in this widely experienced issue.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Me Gusta:
No succes on ubuntu and on W10.. time to try a different pc.. let's hope this helps me out. Thanks for the quick reply btw!

EDIT: using a different pc worked! Still get a warning everytime when booting though, but whatever. I guess that's normal. Thanks again!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
New test image

Kernel compiled from source.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] _MartyMan_:
It is possible somehow to decrypt?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Decryption is supported, do you have issues?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] _MartyMan_:
With your latest stable (cheeseburger 58) i can't decrypt no matter how i try. Could you help me please?

EDIT: I tried the Chineese one too, that doesn't even boot for me :/
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
What did you do before installing the TWRP?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] _MartyMan_:
Nevermind, flashed your cheesburger 46 and with that, it worked, thanks :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dansou901:
[MENTION=6584600]xdvs23[/MENTION], [MENTION=6143932]Funk Wizard[/MENTION] also reported problems with decryption on your 58 build, but it seemed to work with the 56 one. I'll try tonight.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jbdrthapa:
Hi i had similar problem not being able to write to internal storage and also had issue transferring large files over. Following fastboot commands helped me. Note these commands will erase everything. I am now using TWRP 58 and latest 4.5.2 stock firmware. Goodluck

Just clean out everything, reinstall it all

fastboot erase system -w

fastboot erase boot

fastboot erase recovery

fastboot flash recovery nameofrecovery.img
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
NP, I believe the error/warning your referring to is forced by Google to acknowledge that the phone has an unlocked bootloader. I think I had it even before flashing TWRP and rooting.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
Are you still prompted for decrypt password when using TWRP?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jbdrthapa:
yes
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xXx:
I also had the issue that TWRP was asking on every recovery boot for the password. I flashed the no-verity-opt-encrypt.zip, formated my data partition and since then everything is working without any nagging questions for the password.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jbdrthapa:
Thanks, good to know.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
It looks like some people are confused with the decryption thing... I mean to decrypt the phone o.c. (for multirom), not only the data partition, for wich it's working fine!
[MENTION=4588971]dansou901[/MENTION], I tried with TWRP 46, 50, 56, and 58, with no luck... Waiting for your test! ;)

(waht I did was : 1) to follow [MENTION=6143932]Funk Wizard[/MENTION]'s guide, 2) write "fastboot format userdata" in fastboot mode. As I said, it will erase the phone, but won't decrypt it...)

Thanks for trying!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
This is on the OP5? Where did you get that file?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xXx:
yes, OP5. Got everything from here

https://xdaforums.com/oneplus-5/dev...der-intall-t3626122/post72777899#post72777899
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] CroW_D:
Same for me no sucess
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
Thanks for trying!!

We need to find a workaround...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Gomezie:
Thanks for this.. just confirmed that I can copy files to and from USB OTG devices :good: