Sanity Check on Flashing Stock 5.1.4 - OnePlus 5 Questions & Answers

Ok, so I am not new to flashing rom but for some reason I am having huge issues trying to install clean stock OOS 5.1.4 rom. Just want to double check I am not doing anything stupid since I mainly been flashing custom roms (xXx rom mainly).
So I simply wipe dalvik/ART cache, cache, system and data (want to start off completely clan) then flashed the OnePlus5Oxygen_23_OTA_037_all_1807181258_7b4b6.zip file in TWRP.
I am currently on the latest blue TWRP and after flashing, it will try to boot but reboots back into TWRP. I have tried the zip file from a number of sources and they all do the same. Am I missing something here?
UPDATE: I did do something stupid after all. I forgot that my Oneplus was decrypted. So all I had to do was go into TWRP and go to Wipe and format data to re-encrypt it.

Z-Blade said:
Ok, so I am not new to flashing rom but for some reason I am having huge issues trying to install clean stock OOS 5.1.4 rom. Just want to double check I am not doing anything stupid since I mainly been flashing custom roms (xXx rom mainly).
So I simply wipe dalvik/ART cache, cache, system and data (want to start off completely clan) then flashed the OnePlus5Oxygen_23_OTA_037_all_1807181258_7b4b6.zip file in TWRP.
I am currently on the latest blue TWRP and after flashing, it will try to boot but reboots back into TWRP. I have tried the zip file from a number of sources and they all do the same. Am I missing something here?
Click to expand...
Click to collapse
When starting fresh, wiping of internal storage should be considered. I recommended 2 guides here https://forum.xda-developers.com/on...nos-beta-1-android-oreo-t3710003/post77205633

Related

Cannot update to 4.5.14

Hi,
I have a rooted OP5 with 4.5.13.
I tried to install the flashable zip (from here) via TWRP without wipe, but ended up in a bootloop.
I've restored to the nandroid backup, wiped data, and tried again. This time the OP5 managed to boot only to recovery.
I've verified the md5 of the file I've used.
Do you know why this is happening? Do you know how I can upgrade to 4.5.14?
Thanks.
Did you download the full ROM or just the update?
I tried both. I didn't succeeded to install the update (as it is not intended for rooted devices).
The full rom is what caused the bootloop.
If you are doing a dirty flash you wipe cache and system. If you are doing a clean flash you wipe cache, system and data. It doesn't sound like you wiped the correct partitions when doing your flash. You also need to flash Magisk or SU after the ROM flash and before booting up or you will lose TWRP and root. If your phone is decrypted for some reason you also need to flash a no verify zip or your phone will boot loop because OOS is made for encrypted phones.

Problem installing omnirom android 9 on oneplus 5

i follow the instructions as per omnirom thread... flash the vendor/firmware, wipe data , reboot recovery, and flash the rom, but the omni rom does not boot at all and just shows the OMNI sign on/off. How should i proceed?
Which ROM were you on? What Firmware were you on? Were you Encrypted? Did you only Wipe /Data or did you wipe everything?
Dirk said:
Which ROM were you on? What Firmware were you on? Were you Encrypted? Did you only Wipe /Data or did you wipe everything?
Click to expand...
Click to collapse
Lineageos 15.1 (android 8.1)
I first flashed OOS stock firmware, then OOS, then LOS.
I format data and then wipe dalvik cache, cache, data, system.
datg said:
Lineageos 15.1 (android 8.1)
I first flashed OOS stock firmware, then OOS, then LOS.
I format data and then wipe dalvik cache, cache, data, system.
Click to expand...
Click to collapse
Is your Recovery up to date? I'd recommend the latest Codeworkx TWRP. Did you already have the Vendor partition on your device before attempting to flash Omnirom?
If in doubt flash full OOS 5.1.3 and OTA all the way up to and including 9.0.1. Then reinstall TWRP by fastboot, wipe and format everything and then flash Omni.
Dirk said:
Is your Recovery up to date? I'd recommend the latest Codeworkx TWRP. Did you already have the Vendor partition on your device before attempting to flash Omnirom?
If in doubt flash full OOS 5.1.3 and OTA all the way up to and including 9.0.1. Then reinstall TWRP by fastboot, wipe and format everything and then flash Omni.
Click to expand...
Click to collapse
I still tried, it does not work. My phone got bricked, so I used MSM tool to unbrick and after that I got Nougat 7.1.1. I upgrade my Android to 8.0 (OOS 5.1.3) from system update, and after that update another one came, Android 8.1.1 ( OOS 5.1.7). I then unlock bootloader, flash twrp, flash vendor/firmware, wipe data, flash Omnirom but I get stuck into the omni loading screen. The phone does not load.
datg said:
I still tried, it does not work. My phone got bricked, so I used MSM tool to unbrick and after that I got Nougat 7.1.1. I upgrade my Android to 8.0 (OOS 5.1.3) from system update, and after that update another one came, Android 8.1.1 ( OOS 5.1.7). I then unlock bootloader, flash twrp, flash vendor/firmware, wipe data, flash Omnirom but I get stuck into the omni loading screen. The phone does not load.
Click to expand...
Click to collapse
Okay, i'm not seeing anything about a Format operation there. Wipe does not equal Format. I've just finished setting up Omnirom 9 on my own OP5, so it does work. (Great ROM btw)
Backup everything from Internal Storage to your PC, including all the installation files. The following will wipe your storage!
1) Boot into TWRP
2) Wipe Menu, Advanced, Select all Partitions manually and Wipe
3) Wipe Menu, Format. (Type Yes when prompted)
4) Reboot Menu, Reboot Recovery
5) Copy Installation files from PC to Internal Storage
6) Install Menu, Queue up and install zips in the following order:
i) Vendor/Firmware
ii) ROM
iii) Gapps
7) Wipe Dalvik/Cache when prompted
8) Reboot
9) Set up and done.
Dirk said:
Okay, i'm not seeing anything about a Format operation there. Wipe does not equal Format. I've just finished setting up Omnirom 9 on my own OP5, so it does work. (Great ROM btw)
Backup everything from Internal Storage to your PC, including all the installation files. The following will wipe your storage!
1) Boot into TWRP
2) Wipe Menu, Advanced, Select all Partitions manually and Wipe
3) Wipe Menu, Format. (Type Yes when prompted)
4) Reboot Menu, Reboot Recovery
5) Copy Installation files from PC to Internal Storage
6) Install Menu, Queue up and install zips in the following order:
i) Vendor/Firmware
ii) ROM
iii) Gapps
7) Wipe Dalvik/Cache when prompted
8) Reboot
9) Set up and done.
Click to expand...
Click to collapse
I did it, but I get a bootloop. Omnirom does not boot, it just shows the OMNI logo lights.
datg said:
I did it, but I get a bootloop. Omnirom does not boot, it just shows the OMNI logo lights.
Click to expand...
Click to collapse
The only difference between the two of us that i can see is that i flashed OOS 9.0.1 and booted into it once before doing the steps above.
Don't know if it's relevant but the Vendor/Firmware that i used was 9.0.1 also:
https://drive.google.com/drive/folders/11o0FxZ_rw5lhthGz8_iyYEXBt0dwiv3x
Make sure you nuke everything before starting. Wipe and Format everything. Move installation files across and follow steps.
Dirk said:
The only difference between the two of us that i can see is that i flashed OOS 9.0.1 and booted into it once before doing the steps above.
Don't know if it's relevant but the Vendor/Firmware that i used was 9.0.1 also:
https://drive.google.com/drive/folders/11o0FxZ_rw5lhthGz8_iyYEXBt0dwiv3x
Make sure you nuke everything before starting. Wipe and Format everything. Move installation files across and follow steps.
Click to expand...
Click to collapse
I flashed OOS first and booted everything and I followed the steps and got everything right, but still I get stuck with a bootloop that does not load OmniROM.
Works fine for me;
Flashed the latest OxygenOS. Now you dont need to worry about flashing firmware later in the process.
Enabled unlocking the bootloader in developer menu.
Rebooted into bootloader and flashed the recovery image from clockworkx and booted into twrp recovery.
Wiped everything and formatted data as well.
Reboot recovery.
Flashed rom. I always use sideload but that should not matter. Dont flash anything else; first reboot into your working system.

Techincal Question About Wiping System with Custom ROM

So I've seen with installing custom ROMs that there are steps that basically say, "Do not wipe system" in TWRP. I have noticed in doing things the dumb way that I can wipe every partition but the only way it becomes unrecoverable is if system is wiped, this is even if I install a custom ROM in its place. Can someone help me understand what has changed with A/B partition or OnePlus security settings where OOS system partition must be intact to allow one to run a custom ROM?
The reason I ask is that unless it is a byte for byte overwrite then we leave OOS files on parts of the custom ROM storage partition and if it is bit for bit write why would erasing the partition matter?
What seems more important for custom ROM is to not wipe data before rebooting in TWRP to flash magisk. So a clean flash is now flashing the ROM, flashing TWRP then reboot in TWRP and then only wiping data and art. Then flashing magisk. This is important to keep decryption working. That means not using factory reset feature either, always wiping with manually selected partitions.
Anyway wiping system is useless as the flashing script wipes it anyway.

Actual custom rom flashing instructions ??

This is my first Oneplus device and I just realized that in this device, in order to flash Custom Roms, you need to have a OOS installed beforehand plus not wiping /System partition.
So I was wondering which one is the best and quickest way to do a clean and fresh install from scratch, with the less amount of stuff from previous roms since wiping /System will end up on a bootloop.
Would it be something like this:
Starting from fresh and clean OOS latest version:
-Wipe /Data /Cache /Internal
-Flash Rom + kernel (optional) + TWRP
-Reboot recovery
-Flash Gapps + Magisk.
-Reboot System.
Is this the cleanest way to do it ?
I've seen @Koogly 's video but I dont know if theres a better way to do it.
Thank you all.
dirtyl0lharry said:
This is my first Oneplus device and I just realized that in this device, in order to flash Custom Roms, you need to have a OOS installed beforehand plus not wiping /System partition.
So I was wondering which one is the best and quickest way to do a clean and fresh install from scratch, with the less amount of stuff from previous roms since wiping /System will end up on a bootloop.
Would it be something like this:
Starting from fresh and clean OOS latest version:
-Wipe /Data /Cache /Internal
-Flash Rom + kernel (optional) + TWRP
-Reboot recovery
-Flash Gapps + Magisk.
-Reboot System.
Is this the cleanest way to do it ?
I've seen @Koogly 's video but I dont know if theres a better way to do it.
Thank you all.
Click to expand...
Click to collapse
First time from oos zip
Flash latest stock rom oos
Flash twrp zip
Wipe data and cache
Reboot to recovery
Flash latest stock rom oos zip
Flash twrp zip
Wipe data and cache
Flash custom rom zip
Flash twrp zip
Flash gapps zip
Flash magisk zip if you want root
Reboot to system
If you are already on custom
Flash lastest stock oos zip
Wipe data and cache
Flash custom rom zip
Flash twrp zip
Flash gapps zip
Flash magisk zip if you want root
Reboot to system
If going from custom to oos
Back up all your internal storage pictures videos music etc
Wipe data internal storage and cache
Flash latest stock oos zip
Flash twrp zip if you still want to customize
Reboot to recovery
Flash latest stock oos zip
Flash twrp zip if you still want to customize
Flash magisk zip if you want root
Reboot to system
If you want a custom kernel on any of these methods I would recommend booting the rim first and going through setup process the rebooting back to to twrp after and flashing the kernel
Also you will want a USB c otg port bc after the first flash your data will be encoded. You can select the otg storage via twrp to make the process easier.
If you don't have an otg cable you will need to sideload each zip via cmd prompt with fastboot tools and sideload in twrp
After all flashes are complete and you boot the rom the encrypted data will no longer be encrypted on custom rom flashing if going back to stock oos rom you lose all internal data
Most ROMs threads have instructions in main thread and those should be followed first. Some ROMs may require some bits and pieces from original oxygen rom prior to custom install
Asoip for example
Is flashing oos necessary if we unlock bootloader?
I see instructions for lineage os dont mention flashing of oos bit they have the first step as unlocking the bootloader
mustafabakrolwala said:
Is flashing oos necessary if we unlock bootloader?
I see instructions for lineage os dont mention flashing of oos bit they have the first step as unlocking the bootloader
Click to expand...
Click to collapse
You flash oos first so you have the correct vender and up to date files etc before flashing. Some ROMs require you to flash old oos versions bc their rom was based on that oos vender

Vendor Partition is missing in Wipe menu in TWRP

I flashed TWRP recovery I used last week, to install SparkOS and I do remember following a tutorial that said wipe Dalvik, Cache, Data, System and Vendor, which I did successfully and installed the custom rom. I didn't last much and reverted to Stock Rom.
Cut to yesterday I flashed the same recovery as last time, and when I went to wipe the partitions I didn't find Vendor. Checked Mount menu clicked on Vendor it didn't show up under Wipe.
Should I ignore this and continue with installing my custom rom after wiping (Dalvik, Cache, Data and system only) or this is a problem and I am not able to install any custom rom until I wipe Vendor Partition?
It may cause problem or maybe not. Try Orange Fox recovery or any other recovery which supports to wipe vendor data and then flash your Custom Rom correctly as in tutorial.
ai.Sanaul said:
It may cause problem or maybe not. Try Orange Fox recovery or any other recovery which supports to wipe vendor data and then flash your Custom Rom correctly as in tutorial.
Click to expand...
Click to collapse
I followed it step by step, but I'm gonna try different versions and see if shows up. Otherwise I'll revert back to stock and hang my hat.
ai.Sanaul said:
It may cause problem or maybe not. Try Orange Fox recovery or any other recovery which supports to wipe vendor data and then flash your Custom Rom correctly as in tutorial.
Click to expand...
Click to collapse
Updating the TWRP version from 3.3.1 to 3.6 fixed the problem. Thank you for the help.
Ikarisdruig said:
Updating the TWRP version from 3.3.1 to 3.6 fixed the problem. Thank you for the help.
Click to expand...
Click to collapse
welcome

Categories

Resources