How to Restore OnePlus Nord Back to Stock OxygenOS Software – A Complete Guide

How to Restore OnePlus Nord Back to Stock OxygenOS Software

In this guide, we will show you how to restore the stock OxygenOS software on the OnePlus Nord by flashing the factory image/Fastboot ROM.

Things like custom ROMs, TWRP, and Magisk root are pretty solid ways of gaining complete control over your phone’s software and tune it to your own taste and liking. We have already covered tutorials on unlocking the bootloader and installing TWRP on the OnePlus Nord, and another one on rooting the OnePlus Nord without TWRP.

Why would you want to do it?

As good as these things may sound, there are times you would want to revert back and restore your OnePlus Nord back to the stock OxygenOS software.

For instance, you might want to sell your phone or submit it for an RMA claim (repair under official warranty). Or, you would want to receive official OxygenOS OTA updates again, without having to perform any additional instructions. Or maybe, the custom ROM experience wasn’t that satisfactory as you initially thought.

Further, rooting your phone may also trigger SafetyNet warnings and prevent you from using certain applications. While Magisk is pretty accomplished in hiding root from such apps, but Google’s latest hardware-based attestation for SafetyNet makes it impossible to achieve the same results, as it did earlier. So, might want to unroot your phone.

Restoring the OnePlus Nord back to Stock OxygenOS Software with Fastboot

In any of the above scenarios, simply performing a factory reset will not help. A factory reset only formats the /data partition. And since modifications like custom ROMs, TWRP, and root are applied to the device partitions (including the system, vendor, or boot partitions), a factory reset will be of no use.

And that’s when you’d need to manually restore your OnePlus Nord back to the stock OxygenOS software. Luckily, XDA Recognized Developer mauronofrio has compiled and provided fastboot ROMs for the OnePlus Nord on the XDA forums. These are essentially factory images that you could flash using fastboot and easily restore the stock firmware.

It’s worth noting that the fastboot ROMs provided by mauronofrio only include a flashing script for Windows computers. If you are operating on a Linux or Mac computer, you will need to manually flash each device partition using fastboot commands. We have the instructions laid down for that as well.

Tip: If you have just rooted your OnePlus Nord using Magisk and are sure that you have not applied any other sort of modifications, you could simply unroot by using the built-in option in the Magisk Manager app.

Additionally, you could also download the stock boot image for the installed OxygenOS version and flash it to your phone using the fastboot flash boot boot.img command.

If you’re unsure, you’d be better off by performing the instructions in this guide. This will make sure that no single trace of root (or any other modification) is left over.

Table of Contents

Before You Begin

In order to restore the stock firmware, there are a couple of things you’d need to do first.

1. Take a Backup

This is something I have always greatly emphasized. Take a backup of all your important data on the phone.

While not mandatory, it is advised to wipe your OnePlus clean when flashing the fastboot ROM. This should reduce the scope of any unusual errors from popping up later on. It’s also a valid choice if you wish to start afresh.

Data like installed apps, configured settings, documents, music, photos, contacts, messages, etc will be erased when you opt for a factory reset during the flash. If you’re looking for a resource to help you backup all the different kinds of files/data, you could refer to our tutorial.

2. Install Required USB Drivers

If you’re operating on a Windows computer, it will most probably install the required USB drivers for your phone. But that is not always the case. If you face issues with the flashing script not detecting your OnePlus Nord, you’d want to download and manually install the latest OnePlus USB drivers on your computer.

On the other hand, if you’re using a macOS/Linux PC, you shouldn’t need any additional drivers at all.

3. Charge your OnePlus phone

Charge your phone to a minimum of 40-50% battery level. This will ensure that your OnePlus Nord device doesn’t power off suddenly while performing the software restoration due to a low battery level.

How to Restore Stock OxygenOS Software on OnePlus Nord

The process of flashing the fastboot ROM (Factory image) on your OnePlus Nord and restoring the stock OxygenOS software is quite easy. We have broken down the instructions into four major steps so that it’s easy for you to understand how it works.

Requirements

The only things you’ll need to perform this procedure are:

  • Your OnePlus Nord with an unlocked bootloader.
  • A Windows, macOS, or Linux computer
  • A compatible USB-C cable
  • Android Platform-tools installed on your computer (only for Linux/macOS)

Now without any further ado, follow the instructions below.

Step 1: Download the OxygenOS Factory Image

The first step is to download the OxygenOS factory image (fastboot ROM) for your OnePlus Nord to the computer. In the table below, you will find the direct download links of fastboot ROMs for all the variants/models of the OnePlus Nord.

Global (AC01AA) OxygenOS 10.5.5.AC01AA
OxygenOS 10.5.4.AC01AA
OxygenOS 10.5.3.AC01AA
OxygenOS 10.5.5.AC01AA
Europe (AC01BA) OxygenOS 10.5.5.AC01BA
  OxygenOS 10.5.4.AC01BA
  OxygenOS 10.5.3.AC01BA
  OxygenOS 10.5.2.AC01BA
India (AC01DA) OxygenOS 10.5.5.AC01DA
  OxygenOS 10.5.4.AC01DA
  OxygenOS 10.5.3.AC01DA
  OxygenOS 10.5.2.AC01DA

Step 2: Extract the Factory Image on your Computer

The factory image/fastboot ROM you have downloaded should be in .zip file format (e.g. 10.5.5-GLOBAL-NordOxygen_14_OTA_007_all_2008180221_c45e1d5febd1f-FASTBOOT.zip).

Once the download is complete, you will need to extract the contents of the ZIP package to your computer. To do this, go to the folder where the ROM was downloaded, right-click on it, and select the ‘Extract All’ option to extract the factory image to a folder.

Extract OxygenOS Factory Image on the computer

The extracted folder should contain the individual device partition images (like abl.img, boot.img, system.img, etc), a few DLLs, and the ‘flash-all.bat’ flashing script.

Tip: To make it easier, we suggest that you rename the extracted factory image folder to something less convoluted, like “factory-image”, “fastboot-rom”, or anything else you may like.

Extracted OxygenOS Factory Image Files

Step 3: Boot your phone into Fastboot Mode

Flashing your phone’s partitions can only be done over a special interface known as Fastboot Mode (also otherwise mentioned as “Bootloader Mode”). So now that you have the required firmware, the next step is to boot your OnePlus Nord into Fastboot Mode.

To do this, hold the Power key of your phone to bring up the Power menu. Then select ‘Power off’ to completely turn off your phone. While the phone is turned off, hold the Volume Up, Volume Down, and Power keys together until you see the Fastboot screen (refer to the image below).

Boot OnePlus Nord into Fastboot Mode

With your phone in Fastboot Mode, connect it to the computer using the USB cable.

Tip: If you’re using OxygenOS, you could also utilize the Advanced Reboot Menu to get your OnePlus Nord into Fastboot Mode. To know more, refer to this tutorial.

Step 4: Flash the Factory Image on your OnePlus Nord

With everything ready, the last step is to flash the factory image to your OnePlus Nord using Fastboot. So depending upon if you have a Windows or a macOS/Linux computer, follow the instructions below.

On a Windows Computer

Flashing the factory image is the easiest on a Windows PC since there’s a flashing script available that will automate the whole process for you. To begin flashing, open the folder on your computer where the Factory Image was extracted and double-click the ‘flash-all.bat’ file.

Open the flash script to flash the factory image on OnePlus Nord

This should bring up the command prompt on the screen, prompting you to choose if you wish to perform a factory reset whilst flashing, or not. Simply input “Y” or “N” depending on what you want to do and hit Enter to finally install the factory image to your OnePlus Nord.

Perform a data wipe when prompted

The script will basically flash the individual partitions of your device and the progress for the same could be viewed in the command prompt. During this time, your phone will also reboot and enter userspace fastboot mode (what is referenced to as “fastbootd“). So be patient and sit back for a while.

OnePlus Nord factory image successfully flashed

After the flash is complete, your phone will reboot automatically and should enter the newly flash stock OxygenOS software.

On a macOS/Linux Computer

If you’re using a macOS and Linux computer, you will need to manually flash the partition images from the factory image to your OnePlus Nord. This is pretty easy as well.

Before you can flash, you will need to open the Terminal inside the working directory, that is the folder where the factory image was extracted. To do this, launch the Terminal on your macOS/Linux computer and change its directory using the cd command. For example, if the extracted folder is placed inside the ‘Documents’ directory, then the command should look like:

cd Documents/factory-image

Of course, “factory-image” in the above command should be replaced with the actual name of the folder in your case.

Once you have successfully opened the Terminal in the right directory, verify that your computer can identify your OnePlus Nord over fastboot mode using:

./fastboot devices

The command should return your phone’s unique identifier, like so.

Verify device-PC connection with 'fastboot devices' command

You’re now ready for flashing!

First, perform a data wipe by issuing the following command through the Terminal (again, this is not mandatory):

./fastboot -w

Now enter the following commands one-after-the-other to flash the individual device partitions:

./fastboot flash boot boot.img
./fastboot flash dtbo dtbo.img
./fastboot flash modem modem.img
./fastboot flash recovery recovery.img
./fastboot --disable-verity flash vbmeta vbmeta.img
./fastboot --disable-verity flash vbmeta_system vbmeta_system.img
./fastboot reboot fastboot
./fastboot flash abl abl.img
./fastboot flash aop aop.img
./fastboot flash bluetooth bluetooth.img
./fastboot flash devcfg devcfg.img
./fastboot flash dsp dsp.img
./fastboot flash featenabler featenabler.img
./fastboot flash hyp hyp.img
./fastboot flash imagefv imagefv.img
./fastboot flash keymaster keymaster.img
./fastboot flash logo logo.img
./fastboot flash oem_stanvbk oem_stanvbk.img
./fastboot flash odm odm.img
./fastboot flash qupfw qupfw.img
./fastboot flash storsec storsec.img
./fastboot flash tz tz.img
./fastboot flash uefisecapp uefisecapp.img
./fastboot flash xbl xbl.img
./fastboot flash xbl_config xbl_config.img
./fastboot flash system system.img
./fastboot flash vendor vendor.img
./fastboot flash product product.img
./fastboot reboot

Once you’re finished executing the commands, your OnePlus Nord will reboot into the restored stock OxygenOS software.

A Few Important Things to Note

  1. If you see a message that reads “Invalid sparse file format at header magic” during the flash, simply ignore it. It’s not an error, but a normal part of the flashing process.
  2. If your OnePlus 8 boots into a screen that looks very similar to the stock recovery, do not power it off or reboot it forcibly. The screen is called userspace fastboot mode as we explained during the instructions.
  3. If your phone enters a bootloop after the flash is complete, perform a factory reset via the stock OxygenOS recovery. This was the reason we recommended performing a wipe during the instructions.

Wrapping Up

There you go! By now, you have learned how to restore the OnePlus Nord back to the stock OxygenOS software by flashing the factory image. This should allow you to completely unroot your phone, get rid of custom ROMs, and should also be very useful for unbricking the phone in case you flashed a wrong file.

It is worth noting that a factory image can only be used for unbricking as long as your phone could enter Fastboot Mode, which is generally only possible in the case of a soft-brick. If it’s a hard-brick, you will need to use the MSMDownload Tool to unbrick your OnePlus Nord.

Did you know that you can also self-create a factory image for any OnePlus phone? – If you’re interested in knowing more, refer to this article.

That’s all for this tutorial. If you have any questions regarding the instructions or find yourself in a difficult situation, feel free to let us know.

// A huge thanks to mauronofrio for generously providing the fastboot ROMs.