OnePlus became the first non-Google smartphone manufacturer to release the latest Android 7.1.1 Nougat firmware update with Open Beta 12. The flagships OnePlus 3 and the OnePlus 3T are currently running the official Oxygen OS 4.1. We have already shown you how to root these two devices on stock firmware be it Marshmallow or the latest 7.1.1 Nougat. If you are already looking forward to unrooting the latest firmware completely and restoring OnePlus 3 or 3T to complete stock, then look no further.
Here in this tutorial, we are going to reverse the rooting and TWRP installation procedure. Restoring to stock basically means removing root, custom TWRP recovery, and re-locking the bootloader. While unrooting, the first thing you need to do is reflash the stock recovery onto your OnePlus 3. Once that is done, flash the full stock firmware to remove all or any traces of the SuperSU from the system. The last this is to lock the bootloader. However, locking the bootloader is completely optional. It will factory reset the Android system, thus leading to loss of data and apps. Hence, backup.
Download OnePlus 3 unrooting files from here:
- Stock recovery for OnePlus 3 | Download | recovery_op3.img
- Stock recovery for OnePlus 3T | Download | File: recovery_op3t.img
- Latest Oxygen OS 4.1 for OnePlus 3 and 3T | Download | Mirror | Full Firmware zips only!
How to restore OnePlus 3/3T to stock firmware and completely unroot the device?
Prerequisites to unroot OnePlus 3/3T
- Stock recovery is required in order to restore OnePlus 3 or 3T to complete stock.
- Download and transfer the latest Oxygen OS full firmware files to PC and phone’s internal storage.
- Keep OEM unlocking, Advanced Reboot, and USB Debugging option enables from Developer Options. Enable Developer Options from Settings>About Phone> and Tap on the Build Number several times.
- Install latest device drivers to PC for a better connection.
- Make sure ADB and Fastboot environment is setup on PC. Install the quick ADB and Fastboot Installer from here to setup fastboot everywhere o PC. You may also like Universal ADB drivers.
Restore to stock: OnePlus 3 and OnePlus 3T
- Download the latest Oxygen OS (based on Nougat) full firmware file and transfer it to phone’s internal storage.
- If your OnePlus 3 device is not already on the Nougat firmware, then flash the latest Oxygen OS 4.1 based on Android 7.1.1 via TWRP.
- Once your device is on Nougat, reboot into bootloader mode. To do so, hold the Power key, and select Reboot and select Bootloader.
- Now, connect your device to PC while in Fastboot/Bootloader mode.
- Open a command prompt or terminal where the stock recovery file is present. Now test the fastboot connection by issuing the following code:
Note: It should return a string with device info. That means the Fastboot connection is working properly.
- It’s time to flash the stock recovery. Issue the following command:
fastboot flash recovery recovery_op3.img
Note: Flash only the recovery for your phone. OnePlus 3 and 3T have different recovery files as well as firmware.
- Reboot the phone to the system either manually or using the command:
- From the system, install the stock firmware again. To do so, download the full firmware file and transfer it to the phone’s storage. Install it via Local Upgrade option in Settings>System Updates>Tap on the Settings icon on top right corner>Select the firmware file.
- Let the upgrade do it’s thing and reboot to system.
- Locking the bootloader is completely optional. You can still update the phone to latest Oxygen OS firmware via OTA even with an unlocked bootloader. Still, if you need to lock the bootloader, issue the following command via Fastboot or Bootloader mode:
fastboot oem lock
That’s it. Now your device is completely unrooted with no traces of SuperSU or TWRP. You can perform the local upgrade again after you relock the bootloader.