Goal
Going back to a fully working OxygenOS ROM on a OnePlus 6T after an installation went really wrong (brick / fastboot loop / Qualcomm crash dump mode)
Disclaimer
- THIS IS A LAST RESORT “HOW TO”
- During this “how to”, you will be performing dangerous actions on and for your phone that could make it as useful as a paperweight. I can’t take any responsibility if this doesn’t work.
But since your phone is already stuck in fastboot loop / already bricked… Well, that’s your choice! - I performed this operation on a Manjaro Linux laptop, but they should be working on Mac and Windows too
Pre-requisites
- DO NOT PANIC
- Know how to go in fastboot and recovery modes (if you aren’t already) and how to hard reboot your phone (dangerous):
- Fastboot: Hold volume up + power until the “fastboot” screen appears
- Recovery: Hold volume down + power until the “OnePlus Logo” screen appears
- Hard reboot: Hold volume down + volume up + power until your phone shut down
- Download an official ROM from here (mauronofrio is one of TWRP developer)
- Download adb and fastboot tools (they are included in the zipped ROM for Windows, and you can get them from an official Google link)
- On Linux and Mac: add them to your shell $PATH and know if you need to perform the operations as sudo
-
On Windows:
- perform the operations from the unzipped folder if you use those binaries, or make sure you added them to your environment PATH variable
- download the Windows OnePlus drivers
- DO NOT PANIC
Steps
-
Unzip the downloaded stock ROM in a new folder (let’s name it
stock
for this tutorial) -
Go inside this unzipped folder named
stock
-
Unzip “images.zip” inside a new folder (let’s name it
images
for this tutorial) -
Open a command line inside
stock
- Go in fastboot mode on your phone
-
Check if your device is visible from your computer with
fasboot devices
(as sudo/Administrator if required by your OS) - Perform the following operations as sudo/Administrator, if required by your OS, one by one, waiting for the previous to finish before executing the next:
fastboot flash aop_a images/aop.img
fastboot flash aop_b images/aop.img
fastboot flash bluetooth_a images/bluetooth.img
fastboot flash bluetooth_b images/bluetooth.img
fastboot flash boot_a images/boot.img
fastboot flash boot_b images/boot.img
fastboot flash dsp_a images/dsp.img
fastboot flash dsp_b images/dsp.img
fastboot flash dtbo_a images/dtbo.img
fastboot flash dtbo_b images/dtbo.img
fastboot flash fw_4j1ed_a images/fw_4j1ed.img
fastboot flash fw_4j1ed_b images/fw_4j1ed.img
fastboot flash fw_4u1ea_a images/fw_4u1ea.img
fastboot flash fw_4u1ea_b images/fw_4u1ea.img
fastboot flash modem_a images/modem.img
fastboot flash modem_b images/modem.img
fastboot flash oem_stanvbk images/oem_stanvbk.img
fastboot flash qupfw_a images/qupfw.img
fastboot flash qupfw_b images/qupfw.img
fastboot flash storsec_a images/storsec.img
fastboot flash storsec_b images/storsec.img
fastboot flash system_a images/system.img
fastboot flash system_b images/system.img
fastboot flash vbmeta_a images/vbmeta.img
fastboot flash vbmeta_b images/vbmeta.img
fastboot flash vendor_a images/vendor.img
fastboot flash vendor_b images/vendor.img
fastboot flash LOGO_a images/LOGO.img
fastboot flash LOGO_b images/LOGO.img
fastboot flash persist persist.img
Notes
- Invalid sparce file format at header magic is not an error
- Some image flashing will take more time than others (depending on images size)
- Last .img file to flash is in the
stock
folder, not theimages
folder - If you named your folders differently, don’t forget to modify them in the script
Finally
Use volume buttons to navigate in the fastboot mode, go on the “reboot to system” action and press the power button to validate.
Your phone should take some time to reboot, like if it was a first boot.
Remaining issues troubleshooting
- if you plug your device to a computer, and it can’t access the phone internal storage, try downloading anything from your OnePlus (for example, an image from Google Images in Google Chrome). If it says that an error occured, and that the file can’t be saved on your device internal storage, go in Settings > System, and factory reset your phone
- If you still have issues on your phone (mine had emojis missing…), copy the downloaded stock ROM ZIP on your phone internal storage root, go in Settings > System > System updates, touch the settings icon in the top-right corner, and perform a local update. Select the stock ROM ZIP and apply update.
Helpful links
- https://forum.xda-developers.com/oneplus-6t/how-to/rom-stock-fastboot-roms-oneplus-6t-t3862516
- https://forums.oneplus.com/threads/guide-oneplus-6t-fajita-unlock-bootloader-flash-twrp-root-nandroid-efs-backup.931719
- https://sourceforge.net/projects/fastbootroms/files/OnePlus%206T/
At this point, all my troubles were gone. If you still have issues, do not hesitate to reply in this thread, and I’ll do what I can to try and help you!
Thanks!