yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] faboz84:
Nandroid Restore Failed

i tested a full nandroid backup (without pin - only encryption) restoration but it failed.

at every reeboot the recovery start again and again. i had to reinstall the rom

did you had this problem even without pin during the backup and the restore process?

crDroidAndroid-9.0-20190112-cheeseburger-v5.0

twrp-3.2.3-0-20181227-codeworkx-nocompatcheck-cheeseburger.img
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] bbgun7:
I'm trying to go from oxygenos 9.0.2 to 9.0.3 with your latest nocompatcheck version of twrp, but I get an error: "E3004: This package is for "OnePlus 5" devices; this is a "OnePlus 5T". Updater process ended with ERROR: 7". My device is a oneplus 5, so I don't know what the issue could be. Any ideas?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
Maybe you've downloaded the wrong rom file? What's the download link or the rom file name?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] bbgun7:
It was definitely the right one, I used the oxygen updater app to download it and it started with OnePlus5 like they should. I got it installed though, after trying to use the built in updater the stock recovery was apparently reactivated, and it worked using that. It looks like what I should've used this links instructions, where you uninstall magisk, wipe cache and dalvik cache, then install, and then reinstall magisk. Maybe that would've worked the first time, but idk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
I would try again if not done already. The instructions are OK.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] brajesh.sharma87:
I downloaded the full rom from updater app, copied it to root of the storage, booted to twrp, flashed the whole package. Without rebooting I flashed magisk and then rebooted. No issued faced and twrp survived too.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] DACATA:
Patchable via TWRP app ? Or is fastboot needed?

Thx :good:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
What do you mean?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] DACATA:
I mean if its possible to patch the new version of TWRP with the TWRP app or do i need to patch it in with fastboot mode?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
I don't know what you mean with "patch". If you just want to update/change your current twrp, just flash the new one with your current twrp.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] danieldmm:
He is mixing Magisk with TWRP probably xD

Enviado do meu ONEPLUS A6013 através do Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Wagner.jrs12:
Hello, I can perform the rom oos 9.0.3 flash with the last twrp 27/12/2018, without needing to remove compatibility. zip?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] gaja22:
Yes
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] amroj:
Hi,

I have a problem that I need to solve. My friend has OnePlus 5 with LineageOS 15.1-20190129, firmware 5.1.7 and TWRP 3.2.1-1. She wants to go back to the official OxygenOS that seems to be version 9.0.3, without any trail of LineageOS nor TWRP. Just the official OnePlus 5 OS.

I've searched all over xda and internet but the instructions vary and people report problems with all of the instructions that I've found. This is very confusing, but I assume reliable and simple instructions do exist.

I've already backed up all her important data, so there is nothing to keep any longer.

So what is the best and most reliable way to do this?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
Just follow instructions for the clean flash here https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003/post72799040 including format of internal storage but do not flash magisk or no verity patch.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] amroj:
Thanks! I'll try that.

Still some clarifications:

1. If I use codeworkx's latest TWRP, I suppose I have to install firmware 9.0.3 first? If so, is the order: firmware first, then TWRP, then reboot to TWRP?

2. Also, if using codeworkx's TWRP (the nocompatcheck version), I don't have to remove compatibility.zip?

3. In the end, I suppose I can lock the bootloader?

4. If I need to format data, should I do it instead of wiping data, or just before the final reboot?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
1. Yes

2. Right, but needs pie firmware

3. Right, but don't flash magisk or no verity. Just boot one time, then lock the bootloader

4. Before final reboot you need to format
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] amroj:
Thanks again! This clarifies most details. I hope you still bear with me, since I have one more question.

I remember reading that the official OxygenOS zip file includes a recovery of its own. So, in the end, if I reboot to the system, doesn't it replace TWRP with OOS recovery, and then I'm no more able to lock the bootloader? Or, in the end, should I reboot once more to TWRP and there lock the bootloader?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
Correct, but locking the bootloader with stock recovery can be easily done with fastboot(like the first time for unlocking the bootloader :svetius:).

Ask questions that's one of the purposes of this website :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] amroj:
Thank you very much! Now I can recreate her phone without tears! :cool:

---------- Post added at 20:34 ---------- Previous post was at 20:10 ----------

Alright, here's a list of stuff I'm going to do in order to switch a phone from LineageOS 15.1 / TWRP 3.2.1-1 / firmware 5.1.7 to the official OxygenOS 9.0.3. Hopefully someone else having a similar situation will benefit from this.

See more info here: https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003/post72799040

1. Download the official OxygenOS 9.0.3 (later just OOS)

2. Download firmware 9.0.3

3. Download TWRP twrp-3.2.3-0-20181227-codeworkx-nocompatcheck-cheeseburger.img

4. Transfer OOS, firmware and TWRP to the root folder of the phone

5. Reboot to TWRP

6. Nandroid backup (optional but recommended)

7. Flash new firmware

8. Flash new TWRP

9. Reboot to TWRP

10. TWRP: Wipe -> Advanced wipe -> Select dalvik-cache, cache, system, vendor and data -> Swipe to wipe

11. TWRP: Install OOS -> Swipe to flash

12. TWRP: Wipe -> Advanced wipe -> Select dalvik-cache and cache -> Swipe to wipe

13. TWRP: format data

14. Reboot to system

15. Lock the boot loader with fastboot
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] dansou901:
Just to mention it... If you do a nandroid backup, you should copy it somewhere outside the device at least before step 13
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] kslakhani:
making TWRP for Vivo V9 Oreo 8.1.0

[MENTION=3208754]codeworkx[/MENTION] and Devs:)

Sorry If its out of topic but could be interesting for you:)

I have device Vivo V9 with Oreo 8.1.0 and you know how hard the security made in Oreo devices nowadays.

My problem is I found TWRP-1723-020818 for my device but It only works on fastboot boot command and not working any partition like /system /data shows not permitted error. I am sure its not fully compatible with Oreo as its hard coded

But If you could help me to figure out how to make it work for my device

Thnaks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] MrTheV:
Black screen with 20181227 TWRP

Hello.

I downloaded and installed twrp-3.2.3-0-20181227-codeworkx-nocompatcheck-cheeseburger.img on my OnePlus 5, currently running latest Android 8.1.0 OxygenOS with recovery being twrp-3.2.3-0-20180822-codeworkx-cheeseburger.img.

My Oneplus 5 is rooted and bootlock is disabled.

Data partition is encrypted.

When I boot into recovery with twrp-3.2.3-0-20181227-codeworkx-nocompatcheck-cheeseburger.img, all I get is a black screen with the front led being white.

I waited for few minutes.

No change.

Does not reply to adb.

I wanted to update to latest OxygenOS (Android 9.0.3).

When I do so from twrp-3.2.3-0-20180822-codeworkx-cheeseburger.img, I get this error :

E:String resource 'zip_compatible_err' not found
Using default value.
Zip Treble compatibility error!
Invalid zip file format!
Error installing zip file '/sdcard/OnePlus5Oxygen_23_OTA_046_all_1901182152_2f1b.zip'

It's the same with the official rom downloaded from Oneplus site (OnePlus5Oxygen_23_OTA_046_all_1901182152_571be75357dc4f48.zip)

What should I do? I have reflashed twrp-3.2.3-0-20180822-codeworkx-cheeseburger.img so that I have a working recovery, but I then can't update to latest OxygenOS...

I may flash twrp-3.2.3-0-20181215-codeworkx-cheeseburger.img, but I am quite sure this will be the same.

I'd like to avoid wiping my phone and yet have the latest Oneplus firmware.

Any idea ?

Thanks in advance
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] mipirakas:
twrp-3.2.3-0-20181227-codeworkx-nocompatcheck-cheeseburger.img, the twrp you tried to flash only works on OOS pie firmware as stated in the first post. The latest version for oreo is indeed twrp-3.2.3-0-20180822-codeworkx-cheeseburger.img. To get rid of the flashing error you need to remove compatibility.zip from your OOS rom zip. To do this you can use an app like zarchiver. Do not unzip the rom, simply click on view and delete compatibility.zip.

You should now be able to flash the oos pie zip. Right after that you will need to flash the latest twrp because you now are one pie firmware.

Once you have the latest twrp you no longer need to remove compatibility.zip files from your rom zips. Twrp will simply ignore them.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] MrTheV:
Thanks. I found out I had to remove the compatibility.zip file after I posted my message.

I used 7zip for that, opened the archive, deleted the file, it saved it, and voilà!

I just flashed with sideload (works perfectly) and the OP5 is now booting, hopefully with Pie. I'll know that in few minutes I guess, once the spinning molecules stop spinning (if the device is not stuck in some kind of loop)

I sideloaded latest magisk too.

I'll flash latest TWRP from Codeworx (many many thanks for your work BTW) just after.

AAAAAH, the OnePlus5 booted, and... it's... it's... IT'S A PIE !

If I may suggest some little improvement, it may be a good idea to edit the OP in order to explain that one has to remove compatibility.zip in order to upgrade to Pie from the recovery that works with Oreo. I had to read through a lot of posts in this thread to figure it out. At first, I had understood (correctly) that I had to update to Pie BEFORE using the latest TWRP, but since it was not working as expected and some ̶G̶o̶o̶g̶l̶e̶ Qwant search seemed to imply that one had to update recovery in order to get rid of the Zip Treble Error, I got confused...

Anyway all is good now, even latest recovery works OK (I had read there could be issues with time in latest recoveries, I had some, but when entering settings and selecting again my time zone, it worked OK. So reading all these threads have not been a complete waste of time ;) ) !

Thanks again for providing tools and sharing knowledge !
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] codeworkx:
You don't have to remove compat zip.

You just have to do the right stuff at the right time.

- Flash Pie Firmware

- Flash new TWRP

- Flash Pie Rom
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
Simply follow the instructions in the desired rom thread https://xdaforums.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] MrTheV:
Thanks

A link to this thread in the OP (or a sticky post) would be really useful. I came to the TWRP thread because I had an issue within TWRP... The problem with compatibility.zip was not obvious.

Thanks again !
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
The compatibility.zip is part of the rom package, not twrp, so consider the rom thread.

TWRP can be flashed independently from every rom, so the first post of this twrp thread cannot contain each rom thread :rolleyes:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] chyri1:
Hey, you or anyone can upload again this file? I need this!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] shadowstep:
Sure, I can do that. What version do you want? The latest Pie one, with the nocompatcheck?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ollbap:
I also had the "E:String resource 'zip_compatible_err' not found" migrating from official 15.1 to 16 and that worked for me.

I just flashed 9.0.3 firmware from the current TWRP, then flashed the new "nocompatcheck" twrp using "fastboot flash recovery ..." on my computer and then I dirty flashed lineage and gapps with no issues. No data loss :laugh:.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Jakkomo77:
hello friends, since the Vendor partition there I do not know what to do with her?

Did someone explain me a link where it explains what Vendor is all about ? When I did a nandroid backup, I always backed up System, Data, Cache.

But now what must I secure everything? Or what do I have to delete everything if I go to another ROM For example, from Lineagos to oxygen? Is it important to backup the vendor partition during backup And also to wipe by a change?

I don't find a thread about this ... vendor partition ..backup ..wipe. ..and ....

Thank you guys....
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
Vendor partition isn't important to backup nor to wipe. Just google for "project treble", you'll find lots of information, also here on xda portal.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] c4ffein:
That's a stupid question, but why isn't this recovery downloadable on twrp website? Aren't codeworkx updates already integrated on twrp github and changelog?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] :
Because this is unofficial release.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] c4ffein:
So maybe the question was : why not make it an official release
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
If it's named official or unofficial doesn't matter. If it's working or not is important ;)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] carpediem1325:
my current version of oxygenos is 9.0.3. now iwant to update to 9.0.4 how do i update it? i already download the zip file. now i want to know. if i should remove the compatibilty zip again. like in 9.0.3? pls. need tutorial for this tnx
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
Please post your question only once https://xdaforums.com/oneplus-5t/ho...k-bootloader-flash-twrp-t3704592/post79049878
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] c4ffein:
The fact that it's not available as an official update on the twrp site made me loose just a little time, as installing a Pie based rom didn't work without giving any information and I could't find an update here.

I don't know how much time it takes for them to put a build here, but it would be nicer for people following install that asks to download the official twrp to find a recovery that actually works for them on their website...
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
In the official oxygenOS beta/stable threads is everything you need ;)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] c4ffein:
I know these threads... The problem is not for me, I'm talking about the ease of access for newcomers following for exemple the lineage wiki instructions.

Plus, these release aren't signed.

So, I'm asking if there is any reason preventing this version to reach the official twrp website, if not I will probably mail them.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
You got the answer already here https://xdaforums.com/oneplus-5/dev...2-1-0-oreo-oxygenos-5-0-t3725723/post79041109

But feel free to mail them good luck :good:

OT end
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] wintonliu:
Does this support GSI image ?

I used TWRP twrp-3.2.3-0-20181227-codeworkx-nocompatcheck-cheeseburger.img

flashed lineage-16.0-20190305_165558-UNOFFICIAL-cheeseburger.zip and firmware_9.0.4_oneplus5.zip on OnePlus5, and it could enter LineageOS.

Then I entered TWRP and flash GSI image (branch Pie-GSI build for arm64_a-userdebug). Then reboot.

The device is black screen, but I could use adb shell .

If I was anything wrong?

Does this support GSI image ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] scoob8000:
Dumb question. Is there a way to tell what build of your recovery I have installed? The flash screen always just shows the main TWRP (3.2.3.0) version.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] gaja22:
New update available!

https://sourceforge.net/projects/ch...-20190309-codeworkx-cheeseburger.img/download
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Dirk:
What do i need to do to fix the date and time being completely wrong, as displayed in TWRP on this phone? I set my timezone correctly and the time is 12hrs and 7mins out. The date stamp on my backups are always the same day in 1970. Date and Time are set correctly in ROM. WTF?

The only thing i can think of is that i don't have a SIM in the phone currently. Does anyone know where TWRP gets it's time/date information from? Is there some internal clock i don't know about?

I can set it correctly using Terminal in TWRP but it only works for that session. As soon as i reboot Recovery it's back to being broken.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
The time is gathered from the cellphone network for sure.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Dirk:
Thanks. It seems the likeliest explanation. When my 3T gasps it's last breathe my SIM will be going in my OP5.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Rick0x7:
Thanks for adding the build date in the splash image.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] shadowstep:
I always set the time zone manually in TWRP, but that needs to be done only once and once I've set it, it sticks and shows the correct time. It's always off whenever I clean install (which includes a full format, including wiping of internal storage).
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] str8str:
Do I need to wipe vendor partition when installing a rom? I'm on custom and decrypted
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] strongst:
Please use search function at first: https://xdaforums.com/oneplus-5/dev...2-1-0-oreo-oxygenos-5-0-t3725723/post79036174
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Dirk:
I'll see how it is once i've got a SIM in the phone. Ultimately i guess it doesn't matter if it's correct. Just a niggly thing. :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
I'm sorry if this sounds uninformed, but I can't seem to use any of codeworkx's twrp because I can't get through the password screen.

I've already tried typing my lock screen password, "default_password", and "password" none of them works. I'm currently using the 3.2.1 -0 for Oreo 8.0 (yes, I'm still on 8.0 because I can't get through the password screen without making my file names turn into gibberish). I've tried the latest ones for 8.1 (3.2.3-0) and it doesn't work either.

It would be nice if someone here can point me in the right direction.

Again, I'm sorry if this sounds noob-ish, I very rarely post a comment on xda.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] zizizizz:
It's okay everyone starts off like that! What you might be misinterpreting is that the recovery upgrade is flashed in twrp itself. What you need to do is flash it from ADB and fastboot while connected to your computer.

Once you get ADB and fastboot set up on your computer, go to USB debugging, and turn it on.

While connected to your computer run:

adb devices

And it should list your phone by some ID. If that happens then you can use adb to reboot to your bootloader by typing

adb reboot bootloader

You will now hopefully be at the fastboot screen. While still connected you can now see if your device is still connected by typing

fastboot devices

And if it is still listed then you'll be able to flash an updated recovery.

Let's say that your twrp.img file is in your Downloads folder on your computer and you're in that directory as well.

You can simply flash it by typing

fastboot flash recovery twrp.img

Once complete just type

fastboot reboot bootloader

and then select recovery as the option you want and you should be on the new twrp image.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
Thank you for your response.

What I did was just flashing twrp recoveries through the official twrp app. I'm guessing that it isn't the proper way to do it?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] zizizizz:
In some cases that can work, but as you're locked out, you'll need to update it using a computer and a usb cable. If, after flashing the new recovery, you still can't get in, you could always just remove the pattern/pin from your phone, reboot to recovery to update, do your stuff, and then re-add the lock
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
I've already tried removing the password on my phone, no dice :(

I read somewhere that you can wipe/factory reset the phone in order to gain access to the files and remove the password altogether. I guess that's what I should've done and I'm okay with starting over, but I'm scared that it may brick the phone since it might also wipe the ROM zip in my storage (it sounds stupid really, but it scares the heck out of me).
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Dirk:
If you format Data it will remove all Passwords/PINs and delete all your Data, including everything on your Internal Storage. So backup everything to your PC first. When you Format in TWRP you have to copy everything you need to flash back to Internal Storage.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
How do I properly wipe/format in twrp in order to do this? Can I actually transfer data (OOS 9.0.4 zip file and Magisk 18.1) back to internal storage while in twrp?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Dirk:
Yes, you can. MTP is enabled in TWRP.

You're just doing a Clean Install with Format. So in the Wipe Menu, above the swipe and on the right there is the 'Format' button. That will Format Data. The Button next to it is 'Advanced'. In that submenu you select all Partitions and Wipe.

Now copy everything you need to flash from PC to Internal Storage and Install the zips. If you're not already on the latest TWRP, flash that image first. Have the latest ROM/Gapps/Firmware ready to go. If it's OOS you're installing, then have the full zip ready.

Nandroid your existing setup and backup all of it to PC before you begin.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
Thank you for the info, you've made me more confident in doing this.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
I get "Zip treble compatibility error!" and "Invalid zip file format!" and other things. I can't seem to install the zip file. I'm already using 3.2.3-0 twrp.

I'm kinda scared right now :(
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ngshixuan:
You will need to remove the compatibility zip file using total commander on Android or 7zip on PC. Another alternative would be to flash the latest bluspark twrp.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
I tried flashing the bluspark twrp img via twrp itself, and now it won't boot to recovery :(

I got the bluspark twrp from here
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] zizizizz:
Can you just try doing the method I described please?

What are you updating to and from by the way?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] onafirA:
I apologize, I'm just desperate and frantically trying alternatives that came my way.

I'm updating to Pie (OOS 9.0.4) from Oreo 8.0 (I forgot which OOS it was).

I appreciate your inputs by the way :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] discoweasel:
Thanks!