Home > OnePlus

Go Back to Stock: Flash OxygenOS over Custom ROM in OnePlus

In this guide, we will show you two different methods through which you could go back to stock/flash OxygenOS ROM over a custom ROM in OnePlus. Ever since the OEM decided to ditch its in-house OxygenOS in favor of Oppo’s bloated OS skin, we are witnessing a massive influx of users moving toward custom ROMs. Moreover, as of now, the custom ROM support for the OnePlus devices is quite incredible, with users being spoilt for choices.

So if you are among those tech enthusiasts who like to try out numerous ROMs, then you might be aware that directly flashing a custom ROM over another is never a great idea [in some cases, even a factory reset might not work]. Moroever, the lack of custom recovery support from Android 12 onwards only makes the matter worse.

All in all, before you move over to the next custom ROM on your OnePlus device, you should first go back to the stock OxygenOS ROM and then flash the desired ROM. While this might prove to be a slight length process but it is the most fail-safe and risk-free approach. So keeping this in mind, this guide will show you two different methods of getting this job done. Follow along.

How to Flash Stock ROM OxygenOS over Custom ROM in OnePlus

Go Back to Stock ROM OnePlus

You could carry out this task either via MSM Download Tool or via the Fastboot Enhance Tool. Both these methods have their fair share of benefits and drawbacks. If we talk about MSM Tool, then it is sure to give out a successful result, but to make that happen, you will have to carry out a long list of prerequisites.

On the other hand, if we talk about Fastboot Enhance Tool, then it will get the job done in just a couple of clicks. However, this tool was only designed for OnePlus 8T, however, I have personally tested it on OnePlus 7T and 10 Pro and it works well and good, but apart from those devices, the results are yet to be ascertained.

So MSM Tool is the recommended approach and only opt for the Fastboot Tool if the former doesn’t work under any circumstances. With that said, both these methods will wipe off all the data from your device, so take a complete device backup beforehand. 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.

Using MSM Download Tool

STEP 1: Install Android SDK

install adb platform tools windows

First and foremost, you will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform tools folder, which will be used throughout this guide.

STEP 2: Install Qualcomm USB Drivers

Next up, you will have to download and install the Qualcomm USB Drivers. This is needed so that your PC (and the MSM Tool) is able to identify the connected device in EDL Mode. So refer to our guide on Qualcomm HS-USB QDLoader 9008 Drivers: Download & Install

Go Back to Stock ROM OnePlus

STEP 3: Download MSM Download Tool

Now get hold of the MSM Download Tool corresponding to your OnePlus device from this post. Once downloaded, extract it to any convenient location on your PC. This will give you the Tool as well as the OPS Firmware for your device.

NOTE: For many OnePlus devices, the latest MSM Tool available will be based on Android 11. That’s not an issue. Even if you are currently running Android 13 custom ROM, you could easily flash the stock Android 11 and then install the Android 12 update [if required] via the OTA.

Flash Stock ROM OnePlus

STEP 4: Boot OnePlus to EDL Mode

You will now have to boot your OnePlus device to Emergency download mode. For that, please refer to our comprehensive tutorial on How to Boot any OnePlus Device to EDL Mode. Or you could also refer to the below shorter instructions.

Via ADB Commands

If you could access the OS, then use the below steps to boot your device to EDL Mode

  1. Head over to Settings > About Phone and tap on Build Number 7 Times.
  2. Then go to Settings > System > Developer Options and enable USB Debugging
  3. Now launch CMD inside the platform tool folder and type in the below command:
    adb reboot edl

Via Hardware Key Combinations

If you cannot access the OS, then use the below steps to boot your device to EDL Mode:

  1. To begin with, power off your device. Connect one end of the USB cable to your PC.
  2. Then press and hold the Volume Up and Volume Down keys together.
  3. With both these keys pressed, connect the other end of the USB cable to your device.
    Flash Stock ROM OnePlus
  4. That’s it. Your device is now booted to EDL Mode. To verify the same, press Windows+X and select Device Manager.
  5. Then expand the Other Device or Ports section and your device will be listed as Qualcomm HS-USB QDLoader 9008.

If your device is still being shown as QHUSB_BULK, then reverify driver installation, use USB 2.0 Port, or try using a different USB cable. Any one of these tweaks could fix the EDL connection error.

STEP 5: Disable Driver Signature Verification

You will now have to disable the driver signature verification on your Windows PC so that Windows doesn’t conflict with the Qualcomm drivers as well as the EDL Mode. So refer to our guide on How to Disable Driver Signature Verification on Windows 10/11. [Make sure that your phone remains connected to your PC in EDL Mode during the entire process].

Go Back to Stock ROM OnePlus

STEP 6: Flash Stock OxygenOS on OnePlus via MSM Download Tool

  1. To begin with, launch the MSM Tool by double-clicking on the MsmDownloadTool V4.0.exe file.
    Go Back to Stock ROM OnePlus
  2. In the Login screen, select Others under User Type. Leave the Username and Password blank and click Next.
  3. The tool will now load and it should detect the connected device.
  4. You could verify the same from the COM/Status of Connection section.
    Go Back to Stock ROM OnePlus
  5. If that’s well and good, then press Start to initiate the flashing process. It could take a few minutes for the process to complete.
  6. Once done, you will be notified of the same and your device will automatically boot to stock OxygenOS.

That’s it. These were the steps to go back to stock ROM by flashing OxygenOS over a custom ROM on OnePlus using the MSM Download Tool. let’s now show you how this could be done using the Fastboot Enhance Tool.

Using Fastboot Enhance Tool

This is a tool created by XDA Senior Member xzr467706992 and beholds a slew of intriguing features, including the ability to directly flash the payload.bin file, without the need to even manually extract it first. Do note that even though this tool was created for OnePlus 8T, however, I have personally tested it on OnePlus 7T and it works well and good [but still, could prove to be a risky bet if you try it out on any other device except for the 8T].

STEP 1: Download Fastboot Enhance Tool

Download the Fastboot Enhance Tool from GitHub [direct link]. Once downloaded, extract it to any convenient location on your PC. The biggest advantage of this tool is that you could directory flash the payload.bin file, there is no need to extract it and get the resultant IMG files!

Go Back to Stock ROM OnePlus

STEP 2: Download OnePlus Stock ROM

  1. Next up, get hold of the firmware for your device from below:
    OnePlus Stock Firmware
  2. Once downloaded, extract it and transfer the resultant payload.bin file to the Fastboot Enhance Tool folder.

STEP 3: Install Android SDK

Next up, install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform tools folder, which will be used throughout this guide.

install adb platform tools windows

STEP 4: Install Fastboot Drivers

The tool doesn’t come with the Fastboot Drivers, so you will manually have to install it on your PC. For that, please refer to our guide on How to Install Fastboot Drivers in Windows 11. Likewise, make sure to install the OnePlus USB Drivers as well [they are usually automatically installed as soon as you connect your device to the Windows PC for the first time].

STEP 5: Boot to Fastboot Mode

  1. Connect your device to the PC via a USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. After that, type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader

  4. To verify the Fastboot connection, type in the below command and you should get back the device ID.
    fastboot devices

    oneplus 7 pro android 13

STEP 6: Flash Stock Firmware on OnePlus via Fastboot

  1. To begin with, launch the Fastboot Enhance Tool via its EXE file.
    Go Back to Stock ROM OnePlus
  2. Your device should be listed under the Fastboot Virtualization tab,  select it.
  3. After that, click on the Reboot to FastbootD button.Go Back to Stock ROM OnePlus
  4. Your device will boot to FastbootD Mode.

    downgrade oneplus 7 android 12 to android 11
    FastbootD in LineageOS. This screen might vary depending on your ROM
  5. Now go to the Payload Dumper tab and click on Browse.
    Go Back to Stock ROM OnePlus
  6. Navigate to the payload.bin file, select it and click Open.
  7. The file will now be loaded in the tool, displaying the resultant information.
    Go Back to Stock ROM OnePlus
  8. Now go to the Fastboot Virtualization tab and click on Flash payload.bin. If the flashing starts, well and good.
    Go Back to Stock ROM OnePlus
  9. However, if you get the ‘Virtual A/B temporary partitions exist’ popup, then click on No.
    Go Back to Stock ROM OnePlus
  10. After that, go to the Partitions tab and type in cow in the Filter by name box.
  11. Select all the partitions from the results that have cow in their name and hit the Delete button.
  12. Once done, click on Flash payload.bin. This time the flashing will start without any issues.
    Go Back to Stock ROM OnePlus
  13. Once complete, you will be notified of the same. You may now boot to the OS by clicking on Reboot to System.
    Go Back to Stock ROM OnePlus

That’s it. These were the two different methods to go back to stock ROM by flashing the OxygenOS over a custom ROM on OnePlus. 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:
  • Vipin nair

    hi bro,
    your tutorials are on mark and very clear ,i have a query about how to unroot and lock bootloader of my oneplus 11 running on oos14 stock rom. Do i need to reflash the complete stock rom again or can it be done just by flashing the stock init_boot image and then lock the bootloader.
    Expecting your early reply thanks.

    • Sadique Hassan

      Don’t simply flash the stock init_boot. Instead, first uninstall Magisk [from within the Magisk app] and then flash the stock ROM. After that, install the open source Ruru app to verify if you have any rooted binaries installed or not. If it’s all well and good, then go ahead and lock the bootloader.

  • Antonio Oliveira

    Hello! Your tutorial is very good and complete, congratulations to you. When doing the process, my oneplus 10t continues with unlocked bootloader, is there any method that I can block it again?