OnePlus 2 recently received Oxygen OS 2.2.1 update for its amazing ROM. Even though it’s based on Android 5.1.1 Lollipop, the update brings many new bug fixes and features that OnePlus 2 lacked. For instance, the RAW support for the OnePlus Camera and much more.

However, if you have rooted your device or installed a custom recovery, then chances are you won’t receive further updates over the air. You will need a stock recovery for that. Here in this tutorial, we will show you how you can unroot and revert back to the full stock firmware on your OnePlus 2. Moreover, if you have bricked your OnePlus 2 and have access to Fastboot mode then you can restore it or unbrick it using the Fastboot file listed below. So hit the download section below and follow the instructions below. Now, the factory image file in the download section is the is the Oxygen OS 2.1.1 version and then you will need to update it manually to get to the latest one.

Method 1: How to Restore OnePlus 2 to Full Stock Firmware

This procedure will flash factory image on the OnePlus device. It will perform a clean firmware installation and hence all your data and apps will be lost. So make sure you backup everything on your PC. Go through the prerequisites mentioned and then proceed with the instructions from below.

Prerequisites

1. Verify your device for compatibility. The Firmware is compatible with the OnePlus 2 devices only.

2. Enable USB Debugging on your device. To do so, go to Settings>About Phone> Tap on the Build Number several times until you get a new Developer Options in theSettings. Open Developer Options and enable USB Debugging from there. Trust the connection by allowing it when you connect it to your PC for the first time.

3. Make sure you have latest device drivers setup on your PC for a better connection. Get it from the official page of your device manufacturer.

Installation Instructions

Step 1:Download the Factory image from above and transfer it to your PC.

Step 2: Make sure you have setup ADB and Fastboot on your PC. Also, accept Always allow from this computer when you plug in the device for the first time to enable USB Debugging. It’s better to use the quick ADB installer for Windows.

Step 3: Now keep your device plugged in and reboot your device into bootloader or Fastboot mode. You can issue the following code while connected to the PC, to boot into the bootloader; provided your device is turned and connected to PC. Ope explorer, hold the shift key on the keyboard, right click and select Open command window here. Once into the command prompt, issue the command:

adb reboot-bootloader

Alternatively, try the button combinations while the phone is turned off- press and hold volume down and the power button simultaneously for a few seconds. When you see the bootloader screen, connect your device to the PC using a USB cable.(Choose fastboot if an option is available)

Step 4: Once done, navigate to the location where you have placed the factory image file on PC and extract it to get all the files like system, bootloader, etc along with the flashall.bat file as well. (The image is just for correspondence. So the firmware files may not look like the image.)

Step 5: While the folder with the extracted factory image is open, run the flash-all.bat file on Windows PC and confirm the flashing process. Wait for the process to complete. If you use Linux or Mac OS, then run the flash-all.sh file and follow the instructions. But first, open the flash-all.sh file and verify if the files start with “./” prefix for Mac and “sudo” for Linux. If not, then add a prefix to every file.

Step 6: Once done, reboot the device into system either manually or using the command:

fastboot reboot

Once you see the boot logo, that means the system has successfully been installed. First boot may take a while, so be patient. If necessary, you may sometimes need to unlock the bootloader on your OnePlus 2 device before you flash the factory image. Issue the following command for that. [It will wipe all the user data.]

fastboot oem unlock

Method 2: Install Stock Recovery on OnePlus 2 Devices

Alternatively, if you just want to flash the stock recovery imagge, then download the recovery from above and flash the file manually by rebooting into bootloader or fastboot mode and issue the following commands through the terminal. Check out the Method 1 before you proceed to know the proper setting and commands for the Windows, Mac and Linux users. To open the command prompt on Windows, install ADB quick installer and hold the shift key on the keyboard and right-click on the mouse and select Open cmd here. Open the cmd or terminal where you have extracted the recovery package.

fastboot flash recovery optstockrecovery.img

Now here, optstockrecovery.img is the name of the recovery. Hence, use the name of the recovery image as it is with the proper extension.