yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dkryder:
the way i have done it in past is to first flash a kernel that supports decryption and then format data in twrp and then i would reboot to twrp 1 time before booting to system. i have yet to try it with elementalx and this twrp but will try soon to see if this works now.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rwallhtc:
I have still to get twrp to clean install any custom rom. I have tried both experience and xxx roms after cleaning data, cache or system and neither boot after flashing. The only way I can get these to boot is dirty flashing.

I'd love to help fix this. Is there anything I can do to supply logs? I not the only one and taking to the devs of both roms they say it is a twrp issue.

I have tried every twrp image since the beginning and nothing. Also restores of data partition not including the internal storage cause the same boot loop from twrp backups. Are they linked?

Anybody?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saccentekennedy:
Same Here! HOORAY! Thanks OP!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] nadejo:
Anyone noticed a Jello Effect yet, when scrolling in twrp? Or is it only when the phone is running the Rom?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Does the latest stable TWRP (58 when this was posted), produce nandroid backups that can be restored without issue including Data? I've read every post but could have missed when that issue was resolved. My OP5 is using encryption if that matters.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Asumos:
thanks for all the hardwork, got magisk running thanks to you.

however OTG not detecting in twrp.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xXx:
Just a heads up.

It looks like Magisk can't handle a decrypted data partition!!

I was running Magisk before I decrypted my data partition and everything was fine. Then I decrypted the data partition and started from scratch but flashed the rom with SuperSu selected. This was running fine.

In order to check how everything is running with Magisk I dirty flashed with Magisk and Bam I also experienced the bootloop. I tried to flash several other earlier Magisk 13 versions and also v12 but all gave me a bootloop.

To cut the long story short. If you are on encrypted data you can use both Magisk and SuperSu. If you are running decrypted data please use SuperSu only!!!

Is this just me or can somebody confirm this finding?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
Can you try doing that with the chinese twrp if OP does not mind :p

Edit: Its a magisk issue, TWRP not involved as per below

---------- Post added at 06:06 PM ---------- Previous post was at 06:05 PM ----------

:good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dkryder:
the issue i'm having is i flashed elementalx kernel & rooted, all was working fine then comes 4.5.2. so when i try to flash the full 4.5.2 i get the error 7 which as i understand it has to do with the rom not being seen as compatible because of the kernel but also because that file that is compared prior to flash does not exist on my phone which leads to a match of op5 rom to "" rom , which throws the error 7 flag. i guess i need to get the stock kernel for 4.5.1 either from a 4.5.1 full or someone knows where a twrp backup of 4.5.1 kernel is or a boot.img from 4.5.1. i've searched quite a bit and can not find either/any stock kernel from 4.5.1. i actualyl did at one time have it but inadvertently deleted it during a needed factory reset and forgot to update backups.

got it via email.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
I'm sorry to ask, but I don't understand what Magisk or Su has to do with decryption, as it's normally not needed to decrypt the phone... Maybe once the phone IS decrypted, but why TO decrypt it?

Again thanks!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xXx:
the reason I decrypted was that every time I entered the recovery I was asked for the password. To get rud of this I decrypted. No idea why Magisk bootloop with this configuration. Probably it's just me experiencing this.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
Thanks for your reply !

The fact is that I tried with the same method as you, but with no luck...

Will try again as soon as I backup my phone.

Thanks again !
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] geoff5093:
Worked well, I ended up sticking with the first version since on the newest version I wasn't able to reboot into TWRP, it kept booting to the OS instead.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flying Fox:
The only thing I can say is that after decryption TWRP 56 produces complete nandroids for me - sometimes

1, for me only after decryption data

2, while running Experience Rom. While running NoLimit Rom it worked only before backing up all my TB files - maybe only a randomly issue
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Another reason to decrypt is the advise I read that you need to disable any lock screen security before taking a nandroid backup. Other wise you'll get into a boot loop if you perform a restore. They did explain a workaround to the boot loop but it still led to this next consequence. Removal of security didn't sound like a big deal when I first read it but when you turn off the security it also wipes out any finger print details you input. Along with the pin/pattern value you need to re-input each fingers print values and that is a pain in the butt.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fracman:
Just got my device. Asking for update. Will TWRP work if I update to the latest. Thought I saw it wouldn't work.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Working on a custom rom, then we will be able to tell whether it is a ROM problem or a TWRP problem.

Restoring backups seems to be perfectly fine, so are the backups themselves.

Just the system refuses to use it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Yes it will work. I'm running OOS 4.5.2 (after two OTA updates) and the current stable TWRP (see OP for download) is running properly. You are fine to apply all OTA's before you flash TWRP. In fact that's the order that I did it. Flashing OTA's after flashing TWRP and rooting needs to be done as described on this post"OxygenOS 4.5.2 (7.1.1) OTA for OnePlus 5".
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Ofthecats:
so if 58 is working, why have the test image 59?

does magisk and/or SuperSU work with 58? i got confused from searching the thread.

THANKS FOR YOUR WORK ANYHOW!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fracman:
Thank you. So I booted to bootloader and there is no version in it. Is this normal? It's like empty.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
I believe so, that bootloader screen is a bit odd, at least to me, but I've not had any issues since unlocking it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] OcazPrime:
no matter which i try to flash my OP5 always says that the file is larger than the max allowed. Hope this resolves soon :/ only thing some of us can do is wait.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] :
yes i have 58 and magisk 13 fully working
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Your not the only one. Here is my reply to another user experiencing this error. It includes various possible solutions. This is not a TWRP problem in anyway.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] GetPatriotized:
I'm already rooted, do I just flash this in TWRP? No other steps?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] OcazPrime:
ive tried this already, it has to be a twrp problem. the device is new and these are experimental builds.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mskip:
Its an OTA zip image so it should be sideloaded via stock recovery. I dont have a OnePlus device so I do not know if you can flash it via twrp but I wouldnt think so (might be wrong though).

Mark.

---------- Post added at 01:36 AM ---------- Previous post was at 01:31 AM ----------

Can anyone with stock recovery still on their device boot to twrp (not flash it) and make a backup of the stock recovery image. I need it to add stock recovery support to my toolkit and its not included in ota images.

Thanks.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] tristaoeast:
That full zip can actually be flashed through TWRP without any problem
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dkryder:
i would first use a different usb port. try usb2. then try different cable. then move whole act to different pc. stuff similar to this message was coming up at time when flashing my pixel c and it could be fixed using one or any combo the above. i think it is an issue with the "link" you have to your device and not so much twrp cause i think the message is a bootloader one . maybe you need a newer bootloader/fastboot/adb package or the oneplus usb drivers
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Ofthecats:
https://xdaforums.com/oneplus-5/how-to/oneplus-5-unlock-bootloader-flash-twrp-t3624877

for those looking for stock recovery and 4.5.2 image
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jerrywmilton:
Just noticed on the OP5 Support Download page they are about to push out a 4.5.3 hotfix:

Device OnePlus 5

Version 4.5.3

Update time 2017-06-27

File size 1.5 GB

MD5 hash Unknown

What's new:

Bug Fxes:

Expanded screenshot display issue

Google Translate stutters

Optimizations:

System stability

Wi-Fi connectivity

Camera effect and stability

Data usage statistics
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
Incoming 4.5.3...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] reneftw:
Ok, so I flash v58 then Magisk v13. Will the new update work via OTA? Or do I need to download it as a zip and then flash it in twrp? Will I loose the data if I do so? Also, do I need to root again? And the last question, if I update twrp, will the data get deleted? Thank you!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saumilm:
I unlocked bootloader

intalled Custom twrp recovery

now in recovery mode under SDCard i see all gibberish

and

OTG is not getting detected so i cannot installed Verity as well as 4.53 hotfix

can someone pls guide me

Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
You have to flash the full zip if rooted, OTA will detect root and itself download full zip. Just dirty flash that and all good. No data loss on OS or TWRP update. Recovery partition is separate so no data loss. You can follow the update thread for 4.5.3

Please boot into os and download these files and flash via TWRP
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saumilm:
I did that but nothing happens once I into TWRP recovery.

and i am not able to flash it from within TWRP as folder is gibberish in /sdcard

What do i do now?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Funk Wizard:
What recovery version are you on, I recommend 56 or 58
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saumilm:
I m on 58

[IMG="58"]http://i.imgur.com/X9ujEBC.jpg[/IMG]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Pho3nX:
Do you have activated the OTG parameter in Settings (in OOS)? Because it's not activate by default!

Settings > Advanced > OTG storage (Active) "Enable Reading ExternalStorage via OTG
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Han-Droid:
Same here... Otg is not detected. But it is enabled.as mentioned above? Any hints?

TIA!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saumilm:
[Thanks Pho3nX n Funk Wizard

worked!! phew!

just a question. is it required to decrypt phone ? any benefits of decryption?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dreinulldrei:
Benefits: Yes, if you want to use Magisk, the current v13 beta will break and if the device gets stolen the thieves can easily get to your data. ;)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Gomezie:
Not required at all in my experience thus far

I am not sure where this has come from? I am using magisk just fine with an encrypted device
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saumilm:
agree with [MENTION=3673090]Gomezie[/MENTION] me too using Magisk 13 beta.. no issues what so ever.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
OTG works on it and the kernel is compiled from source instead of the prebuilt ketnel of OOS.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Try another port, another machine, another OS, another version of adb/fastboot.

It's most likely OnePlus' fault.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] saumilm:
worked finally. thanks for reply.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
You need to root again afterwards.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dreinulldrei:
You got me wrong. There are reports re Magisk beta v13 that oopses on OP5 when the data partition is UNencrypted.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] rwallhtc:
The bootloader I'm thinking is Google's. My HTC u11 has that exact bootloader
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alex1301:
Currently have version 46 running. Is it possible to make backups with this version and restore them without any issues or should I flash 58? I ask because I want to make a backup before I flash the latest Oxygen Update
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] andre0005:
Did anyone try to flash the 4.5.3 update with the most recent stable release? I read that a few people had issues afterwards. Downloading the update right now.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
When OnePlus releases something, there are always new issues :laugh: :D :p
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] andre0005:
Lol. That's true. But i meant issues with twrp as in the update not flashing properly.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Han-Droid:
Using latest stable 58 and used it to flash 4.5.3. Having problems with otg. But dunno if it's related somehow...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Try version 59
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alex1301:
Will the backups be restorable and usable with this version?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hackpb:
Hi. I have installed last recovery and with stock OOS I can't achieve rw to system... Is this problem of ROM? Have anyone system as rw? Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
New test image

Kernel changes (test OTG and encryption)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
They will be restorable but OOS wont like it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alex1301:
Hmm, that`s quiet a dealbreaker for me...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Eperty123:
Your backup should work just fine although restoring data may result in a boot loop.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alex1301:
Sorry to say that, but how can the dev then say that this version is stable? The main function of TWRP is making backups and restore them, without the loss of date and without problems. And if that´s not working, it's far away from stable.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
hi i have just updated to 4.5.3

an restored backup

but then after i set it to reboot

it reboot into recovery an wipe data an recovery

so i cant restore backup
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] El Montezuma:
Not related I think...

TWRP v58 flashed via TWRP app (with the file from here). I was on v46 before.

Full zip + magisk v13 installed, everything is working fine: otg / etc...

Nice to do everything directly from phone [emoji41]

Btw, many thanks [MENTION=6584600]xdvs23[/MENTION] for all your work [emoji6]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Eperty123:
Because everything else works as intended. He did mention that the builds are stable enough, or proved to be working. That doesn't mean they're perfect.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alex1301:
Yeah but stable means that everything is wroking and he can submit it to TWRP. But that is not the fact.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] El Montezuma:
That's why it's not official as well I guess...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
People are trying to restore backups with different versions of TWRP or different versions of the rom, that's not how it works. Each version of TWRP should restore a backup than was made with the same version.

It does that.

Therefore it's stable.

Even the official versions of TWRP will struggle with restoring a backup that was made using a different version number.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alex1301:
Yeah but the dev stated above that restoring Data generally leads to a bootloop. Can anyone confirm it? I only want to make a backup if something gets wrong during the update process.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
well thats not the true here

because i made backup an flashed new firmware wiht the same twrp

an after restoring data it reboots into twrp an delete data an restart again so i have to setup the phone again
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] _MartyMan_:
Is Magis still not working with decrypted data?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] NexusPvn:
Can I get and install OnePlus stock updates just fine if I were to flash TWRP?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] El Montezuma:
Can we flash recovery from....recovery itself? [emoji54]

I always believed that recovery should be flashed through fastboot...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
What if you flash the same OOS version that you had when you performed backup (Or Full Restore with system) ?

After confirm it works, dirty flash new OOS.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
Well, we actually don't know whether the problem is related to TWRP directly or whether it is OOS ...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] 3DSammy:
Yes you can flash recovery within TWRP recovery v2.8.4 and higher. It even allows you to flash the bootloader image. There are two choices recovery or bootloader. See this article on how to do it.

To get TWRP flashed in the first place I had to use a relatives Win10 PC and generally don't get access to his machine so I needed to find a way to apply updates considering this version of TWRP is not official yet. I was concerned that using something like Flashify or the Official TWRP manager may mess things up so I choose this route instead. Lucky for me it worked.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Hackpb:
The problem You are talking about is related to the restore process or there's more? I have flashed the last recovery and when it asked to modify system I have allowed, but in OS I couldn't make it RW? Is this related to encryption or something else? Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
Have try dont work
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
Can you be more specific ?

Which OOS version? Which TWRP Version for backup and which for restore ?

Did you performed full restore or flashed previous OOS?

After restore did you rebooted system and bootloped?

Or what was the issue?

Thanks!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] djsubterrain:
For people complaining, it's not an official build, it's still beta, if you don't want bugs then wait for official but if you want to help the official to come sooner rather than later and don't mind testing beta builds then please provide details of bugs including the steps to reproduce and, if possible, system logs to help the dev figure out what might be causing it. The phone is very new though so there will be bugs.

If you do want to help test then please be specific about your testing environment:

What version of OOS are you currently on

What version of TWRP are you using

If you are having issues with restoring/backups then what version did you use to make the backup.

What root method are you using and what version of that rooting method.

Be specific :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Launchpad McQuack:
Struggling with something I've never had an issue with in the past on many different phones (first OP for me) - I cannot get fastboot to recognize my OP5 on multiple computers. I was able to get one friend's computer to recognize it last night, and was able to OEM unlock the bootloader. However, that computer would not install TWRP due to the max file size issue seen by many. I can get my computers (all Win10) to recognize the OP5 via "adb devices", but when in bootloader, I cannot get "fastboot devices" to show anything. Is there another way to flash TWRP to the OP5? Are there separate "fastboot" drivers for the OP5?

EDIT: I was able to get it to work by:

1) Unplugging device from PC

2) Powering off and rebooting to bootloader via hard keys, not adb reboot bootloader

3) Plugging into PC after fastboot

This worked on a new laptop with Win10-x64, but did not on an older Win10-x64 desktop last night. No idea why it worked.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jerrywmilton:
Does your computer "recognize" the OP5 when you do a normal plug in while phone is on ? (Transfer file mode). Some of us have had to jump thru hoops to get the OP5 to load the initial drivers. There is a thread over on OP forum about it. Involves turning on MTP in developer settings ... With phone unplugged and then rebooting computer and plugging in phone. Not sure if it loads different fastboot drivers at that time.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Launchpad McQuack:
Yes, charging and MTP work fine. I can also see ONEPLUS A5000 in device manager. "adb devices" works fine as does "adb reboot bootloader", only fastboot is issue for now. When I first plugged in this device to my Win10-x64 laptop, no drivers seemed to install (at least not visually) and the device showed in device manager quickly. All I really need is a way to get TWRP on this phone and then I'm good.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Gomezie:
I had this problem too, and I was/still am an OP3 user.... never had any issues previously

Turned out it was the cheap USB C cable I was using... switched to the oneplus usb cable, all worked as expected

Hope that helps :good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
That's a known problem on the OP5, I would blame OnePlus for that, but I can't really prove it.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] -fluffy-:
iOS 4.5.3

Twrp stable

Have try flash new firmware

Try restore backup but All the time same problem

Los root even if flashed

Try restore full backup the same IT delete data
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] El Montezuma:
Good to know [emoji6]
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] xdvs23:
New test image

Tried to fix data restore bootloop issue, please test :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Flint2:
If you backed up with 4.5.3 (Latest official), what is the new firmware you are flashing? , or you did performed backup with older firmware (which one)?

For TWRP Stable do you mean twrp-cheeseburger-58.img ?

IS normal to lost root when flashing full OOS

Sorry but i´m not getting exactly the steps you followed.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] g-member:
Hmmm........hey guys...

I was running twrp 46 and i flashed stock recovery back so i could use OTA.

Everything worked perfect but now i want to flash twrp again but after flasing and rebooting into recovery i get the password decryption screen and the stock recovery.......

whats up with that??? tried twrp 46 same thing......flashing recovery goes fine, but still boot stock recovery
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] néonaloj:
You've to reboot first into recovery! To flash SU/Magisk will help the recovery to stick too.