If you’ve landed on this page, we assume that you’ve already unlocked your bootloader and enjoying the full power of root permissions on your device. However, sometimes you might want to restore your device back to complete stock for many reasons. One of the reason might be either you’ve bricked your device out of enthusiasm or you want to regain the warranty by completely removing the traces of any unauthorized tampering. We have already published a tutorial on how to flash stock firmware on your OnePlus One. If you have missed it, follow it from the below link:
Unfortunately, even though you’ve re-locked the bootloader on your device, the unlock and tamper flags remain set. Luckily, Mnt-XDA of XDA forums has provided a simple mod which will reset the tamper flag on your device. Another interesting feature of this mod is that you can unlock the bootloader on your device without wiping the internal storage. The mod is available in a flashable zip format and can be flashed using any custom recovery.
However, if you don’t want to install any custom recovery on your device, you can simply boot the custom recovery from PC without overwriting the existing stock recovery. Some of the XDA members have reported that the “fastboot boot recovery.img” command has worked on locked bootloaders as well but we doubt it. So, we recommend you to unlock your bootloader before proceeding with the guide. Once the mod is flashed, it will reset the tampered flag and unlocks the bootloader (if it’s not already unlocked) and then we can re-lock it to reset the unlock flag. So, let’s proceed with the simple tutorial.
Since the tutorial involves flashing the “aboot” on your device, there is a chance of bricking your device. So, proceed at your own risk and we shall not be responsible for any damage to your device. In case of a brick, follow the above mentioned tutorial for restoring your device to stock.
- Charge your device above 60% to make sure it doesn’t die in the middle of the process which may be fatal sometimes.
- Install proper drivers on your PC. If you haven’t installed them already, you can follow our detailed USB driver installation guide.
- Setup ADB and Fastboot files on your PC. If you don’t know how, follow our detailed guide on how to setup ADB and Fastboot on your PC.
- Prepare your device:
- Enable developer options: Go to your device’s Settings » About phone » Scroll to the bottom and tap on “Build number” seven times to enable developer options.
- Enable USB Debugging: Go to your device’s Settings » Developer options » tick the “USB debugging” check-box (sometimes listed as Android Debugging)
- Mod file → OnePlusOne-BootUnlocker.zip
Reset Unlock & Tamper Bit On OnePlus One
- Download the TWRP recovery and place it in the same folder where you have installed the fastboot files. Rename the TWRP file to recovery.img for convenience.
- Download the OnePlus One boot unlocked zip and transfer it to the root of the internal storage on your device.
- Boot your device into fastboot mode. To do this:
- Switch off your OnePlus One.
- Now press and hold the Power + Volume Up buttons simultaneously until you see the Fastboot text on your device.
- Once you see the fastboot text, you can let go of the two buttons.
- Connect your device to the PC using a USB cable and make sure the device is detected and you have fastboot installed on your PC.
- Navigate to the folder where you have installed the Fastboot files and open a command prompt inside the folder by pressing Shift key + Right click in the empty space inside the folder, and select Open command window here option from the Windows context menu.
- Assuming you have an unlocked bootloader, execute the below command to temporarily boot theTWRP recovery on your device.
fastboot boot recovery.img
- Now you will boot into TWRP recovery, click on the Install button and select the OnePlusOne-BootUnlocker.zip and flash it.
- This will reset the tamper flag on your device. Reboot the device into fastboot mode again and execute the below command to re-lock the bootloader on your device.
fastboot oem lock
- You can check the unlock and tamper flag status by executing the below command in fastboot mode (works on locked devices as well):
fastboot oem device-info
That’s it. Now you re-locked the bootloader on your device and also reset the unlock & tamper bit on your OnePlus One.
That’s all! Reach us in the comments section below for any queries or assistance regarding the process in the tutorial. Also, do suggest any modifications or additions to this simple guide, your feedback is important to improve our content and services.
If you find our tutorial useful, kindly share this tutorial with others using the share buttons below. Remember, Sharing is Caring!