Home > OnePlus

How to Flash OxygenOS Firmware on any OnePlus [Video]

In this guide, we will show you the steps to flash the OxygenOS firmware on your OnePlus device. Most custom ROMs nowadays require you to be on the latest firmware [apart from the obvious latest OS build]. For instance, if you own a OnePlus 8T and are planning to flash the Nameless AOSP ROM’s latest build, then apart from being on OxygenOS 13.1, it is also recommended that you be on the latest F.67 firmware version as well. But what happens if you don’t flash the firmware?

Well, in such cases, your device will end up in a bootloop, and you will then have to use either Fastboot Enhance or MSM Tool to unbrick it. So to avoid that from happening, you could take two approaches: either take a longer route and manually flash the custom ROM to both slots, which would take quite a lot of time and could end up further complicating the matter, or simply flash the OxygenOS firmware on your OnePlus device. In this guide, we will be taking the latter approach. Follow along.

Flash OnePlus Firmware via Fastboot Firmware Flasher Tool [New]

Flash OnePlus Firmware via Fastboot Firmware Flasher Tool

It had been a rough few months for the OnePlus device owners. Due to the absence of a Fastboot ROM, users were left with no choice but to take the EDL approach for flashing stock firmware. In this regard, the MSM Tool only works till the 9 series. So for newer devices, we had to use the Oppo Flash Tool, which unfortunately got patched. Then came the OPlus Flash Tool, which seems to be going the same route as its counterpart.

While going from custom back to stock shouldn’t even require EDL in the first place because that is used in case of bricking device, but we didn’t have any other option either [read: Fastboot ROM]. And now, that the EDL Tool also got patched, we were all stuck in the limbo, frightened to even flash a custom ROM. Likewise, users who were on a custom ROM were unable to go back to stock.

Well, all that is about to change now, thanks to the Fastboot Firmware Flasher Tool which will allow you to flash the entire firmware [the payload.bin file] to your device across both the Fastboot and FastbootD Modes without any manual intervention from your end. So without any further ado, let’s list out the benefits of its tool, after which we will make you aware of its usage instructions as well.

Features of this Tool

  • It is an automated flashing of the firmware files, no need to enter any Fastboot Commands.
  • It can flash the entire payload.bin in just a few clicks.
  • It does not require EDL Mode, everything will be carried out in the Fastboot/FastbootD Modes only.
  • The tool also beholds a slew of other useful features as well, including the ability to install drivers, execute ADB Fastboot Commands, open Terminal Window inside platform-tools, obtain root via KernelSU, flash image im thr boot, init_boot, and recovery partitions, firmware unpacked to extract payload.bin, and finally the option to flash the extracted payload.bin to their respective partitions.

Flashing Instructions

YouTube video

If you are currently booted to a custom ROM, then take a backup of all the data on your device. However, if your device is currently in the softbrick or bootloop, then you’ll have to force reboot to Fastboot Mode and start from STEP 5. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

  1. First off, download and extract the Android SDK Platform Tools.
  2. Then enable USB Debugging and OEM Unlocking on your device.OxygenOS 15 Android 15 OnePlus 9R
  3. Once done, unlock the bootloader on your device using our tutorial.
  4. Now open Command Prompt inside the platform-tools and type in:
    adb reboot bootloader
  5. Then type in the below command to verify the Fastboot Connection
    fastboot devices
  6. If you are not getting any serial ID, then install the Fastboot Driver.
  7. Now download the firmware for your device via Oxygen Updater or using any third-party site.
  8. Next up, download and extract the Fastboot Firmware Flasher Tool. [Credits – NeFeroN]
  9. Then install it via its EXE file. Now launch it and go to the Firmware Unpacker tab [the second last option].OnePlus Fastboot Firmware Flasher Tool
  10. Click on File Picker and select the entire firmware ZIP. Then select Full under Mode.OnePlus Fastboot Firmware Flasher Tool
  11. Now click Press to Unpack. It will extract the payload.bin file.OnePlus Fastboot Firmware Flasher Tool
  12. Once done, you’ll be notified of the same.OnePlus Fastboot Firmware Flasher Tool
  13. Now go to the Flashing tab and click Press to Flash. The flashing will now start in Fastboot Mode.OnePlus Fastboot Firmware Flasher Tool
  14. You’ll then get a prompt that the tool wants to boot the device to FastbootD Mode. Click OK and your device will boot to FastbootD.OnePlus Fastboot Firmware Flasher Tool
  15. It will warn you not to interact with the device while flashing, click OK. The flashing will then start in FastbootD Mode.OnePlus Fastboot Firmware Flasher Tool
  16. Once done, you’ll be notified of the same. Hit Reboot Device and your device will boot to the OS.OnePlus Fastboot Firmware Flasher Tool

That’s it. These were the steps to flash the OxygenOS firmware on your OnePlus device using Fastboot Firmware Flasher Tool.

How to Auto Flash OxygenOS Firmware on any OnePlus [Recommended]

YouTube video

While the process will not wipe off any data, but still take a backup just to be on the safer side. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

  1. To begin with, download and extract Android SDK Platform Tools on your PC.
    install adb platform tools windows
  2. Then enable USB Debugging and OEM Unlocking on your device.
    flash firmware oneplus
  3. Now unlock the bootloader on your device [it will wipe off all the data].
    flash firmware oneplus
  4. Once done, boot your device to Fastboot Mode via the below command
    adb reboot bootloader

    flash firmware oneplus

  5. Then type in the below command and make sure that you are getting a serial ID. If not, then please install Fastboot Drivers.
    fastboot devices

    flash firmware oneplus

  6. Now download the firmware ZIP File [Source: GitHub] and transfer it to your device.
  7. Then install a custom recovery like TWRP or temporary boot to it using the below command:
    fastboot boot twrp.img

    flash firmware oneplus

  8. From TWRP, go to Install, select the firmware ZIP file and perform a right swipe to flash it.
  9. It will list out the firmware details, press the Vol Up key to Continue.flash firmware oneplus
  10. Then it will ask for a modem update, again press the Vol Up key to Continue.
  11. The flashing will now start and would take a few seconds. Once done, select Reboot > System.flash firmware oneplus

That’s it. These were the steps to flash the OxygenOS firmware on your OnePlus device. You may now proceed ahead and flash the desired custom ROM without any issues. Moreover, for flashing, it is highly recommended that you use TWRP or OrangeFox and do not opt for sideloading via an AOSP Recovery like Lineage Recovery. With that said, if you still have any doubts, then do let us know in the comments section below.

How to “Manually” Flash OxygenOS Firmware on OnePlus

If for some reason you wish to manually flash the firmware [note: it is way more complicated, difficult, and lengthier than the automated method discussed above], then here’s what you need to do:

  1. First off, check the DDR version for your device: How to Check DDR Version on OnePlus.
    Flash xbl xbl_lp5 OnePlus
  2. Then download the Fastboot ROM corresponding to your device’s Build Number
  3. Now extract it and you’ll get payload.bin. Extract that file via Fastboot Enhance Tool.
    Flash xbl xbl_lp5 OnePlus
  4. This will give you the required files. Transfer them to the platform-tools folder.
  5. Now boot your device to FastbootD Mode and type in the commands corresponding to the DDR type:
    Flash xbl xbl_lp5 OnePlus

For DDR Type 0 (DDR4)

fastboot flash --slot=all xbl_config xbl_config.img
fastboot flash --slot=all xbl xbl.img

For DDR Type 1 (DDR5)

fastboot flash --slot=all xbl_config xbl_config_lp5.img
fastboot flash --slot=all xbl xbl_lp5.img

Flashing the Rest of the Firmware Files

Once you have flashed the required DDR4 or DDR5 XBL file, it is also recommended that you flash the rest of the partition files. All these files should be flashed in FastbootD Mode itself. I have listed the commands for OnePlus 8/8 Pro/8T/9R, you should verify the files for your OnePlus firmware, and modify it accordingly, if needed:

OnePlus 8 Firmware Flashing Commands

fastboot flash --slot=all abl abl.img
fastboot flash --slot=all aop aop.img
fastboot flash --slot=all bluetooth bluetooth.img
fastboot flash --slot=all cmnlib64 cmnlib64.img
fastboot flash --slot=all cmnlib cmnlib.img
fastboot flash --slot=all devcfg devcfg.img
fastboot flash --slot=all dsp dsp.img
fastboot flash --slot=all featenabler featenabler.img
fastboot flash --slot=all hyp hyp.img
fastboot flash --slot=all imagefv imagefv.img
fastboot flash --slot=all keymaster keymaster.img
fastboot flash --slot=all logo logo.img
fastboot flash --slot=all mdm_oem_stanvbk mdm_oem_stanvbk.img
fastboot flash --slot=all modem modem.img
fastboot flash --slot=all multiimgoem multiimgoem.img
fastboot flash --slot=all qupfw qupfw.img
fastboot flash --slot=all spunvm spunvm.img
fastboot flash --slot=all storsec storsec.img
fastboot flash --slot=all tz tz.img
fastboot flash --slot=all uefisecapp uefisecapp.img

OnePlus 8 Pro Firmware Flashing Commands

fastboot flash --slot=all abl abl.img
fastboot flash --slot=all aop aop.img
fastboot flash --slot=all bluetooth bluetooth.img
fastboot flash --slot=all cmnlib64 cmnlib64.img
fastboot flash --slot=all cmnlib cmnlib.img
fastboot flash --slot=all devcfg devcfg.img
fastboot flash --slot=all dsp dsp.img
fastboot flash --slot=all featenabler featenabler.img
fastboot flash --slot=all hyp hyp.img
fastboot flash --slot=all imagefv imagefv.img
fastboot flash --slot=all keymaster keymaster.img
fastboot flash --slot=all logo logo.img
fastboot flash --slot=all mdm_oem_stanvbk mdm_oem_stanvbk.img
fastboot flash --slot=all modem modem.img
fastboot flash --slot=all multiimgoem multiimgoem.img
fastboot flash --slot=all qupfw qupfw.img
fastboot flash --slot=all spunvm spunvm.img
fastboot flash --slot=all storsec storsec.img
fastboot flash --slot=all tz tz.img
fastboot flash --slot=all uefisecapp uefisecapp.img

OnePlus 8T Firmware Flashing Commands

fastboot flash --slot=all abl abl.img
fastboot flash --slot=all aop aop.img
fastboot flash --slot=all bluetooth bluetooth.img
fastboot flash --slot=all cmnlib64 cmnlib64.img
fastboot flash --slot=all cmnlib cmnlib.img
fastboot flash --slot=all devcfg devcfg.img
fastboot flash --slot=all dsp dsp.img
fastboot flash --slot=all featenabler featenabler.img
fastboot flash --slot=all hyp hyp.img
fastboot flash --slot=all imagefv imagefv.img
fastboot flash --slot=all keymaster keymaster.img
fastboot flash --slot=all logo logo.img
fastboot flash --slot=all mdm_oem_stanvbk mdm_oem_stanvbk.img
fastboot flash --slot=all modem modem.img
fastboot flash --slot=all multiimgoem multiimgoem.img
fastboot flash --slot=all qupfw qupfw.img
fastboot flash --slot=all spunvm spunvm.img
fastboot flash --slot=all storsec storsec.img
fastboot flash --slot=all tz tz.img
fastboot flash --slot=all uefisecapp uefisecapp.img

OnePlus 9R Firmware Flashing Commands

fastboot flash --slot=all abl abl.img
fastboot flash --slot=all aop aop.img
fastboot flash --slot=all bluetooth bluetooth.img
fastboot flash --slot=all cmnlib64 cmnlib64.img
fastboot flash --slot=all cmnlib cmnlib.img
fastboot flash --slot=all devcfg devcfg.img
fastboot flash --slot=all dsp dsp.img
fastboot flash --slot=all featenabler featenabler.img
fastboot flash --slot=all hyp hyp.img
fastboot flash --slot=all imagefv imagefv.img
fastboot flash --slot=all keymaster keymaster.img
fastboot flash --slot=all logo logo.img
fastboot flash --slot=all mdm_oem_stanvbk mdm_oem_stanvbk.img
fastboot flash --slot=all modem modem.img
fastboot flash --slot=all multiimgoem multiimgoem.img
fastboot flash --slot=all qupfw qupfw.img
fastboot flash --slot=all spunvm spunvm.img
fastboot flash --slot=all storsec storsec.img
fastboot flash --slot=all tz tz.img
fastboot flash --slot=all uefisecapp uefisecapp.img

These were the steps to manually flash the firmware file on your OnePlus device. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: