Video: How to Unroot the OnePlus X
You’ve rooted your phone maybe you’ve been tinkering a bit too much with your OnePlus X? Maybe you need to send it to OnePlus for warranty reasons but with root access you’re worried they’ll refuse to do the warranty repairs? If you find yourself in either of these situations, it’s probably best to unroot the OnePlus X before you do anything else.
Unrooting the phone is the process of flashing the device’s stock firmware and getting it back to the way it was when you first received it. Besides reinstating your warranty in most cases, this will also solve any weird issues you are having with the phone (whether self-inflicted or not).
If you need to get it back to the way it was when you first bought it, here’s how to unroot the OnePlus X.
Before You Begin
- This is going to erase the phone so make sure to backup anything you think you need to keep.
Unroot the OnePlus X
- First up we need to download the necessary files including the stock ROM that contains the ColorOS version of Android that normally comes on the phone and the stock recovery image (that we will use to flash the stock ROM). Download each and save them to the desktop of your computer.
Installing ADB Drivers on Your PC
If you haven’t rooted the phone or haven’t done my tutorial on it, please do the following to get the drivers installed as well as ADB/Fastboot so we can use them to flash the recovery.
- Download the OnePlus ABD Drivers and then run the exe to install the drivers.
- To get ADB and Fastboot working (things we need to be able to communicate with the phone from our computer), head to my new How To Setup ADB/Fastboot Tutorial. This will show you how to set it all up on Windows or Mac (don’t worry it’s quick and easy). Once done with that, return here to this tutorial to continue.
Flash the Stock Recovery
- On the phone, head to Menu > Settings > About phone and tap on Build number for 7-8 times and it’ll say you’re a developer. The developer options menu should now be unlocked on your device (if it wasn’t already there from rooting).
- Head to Menu > Settings > Developer options on your device and turn on USB debugging.
- Plug the phone in via USB.
- In the command prompt from before on the computer, type in the following command and hit enter:
adb push recovery.img /sdcard/recovery.img
adb push update.zip /sdcard/update.zip
- adb reboot bootloader
- Once it reboots into bootloader mode, type in the following command and hit enter:
fastboot flash recovery recovery.img
- Wait for it to flash the stock recovery on your device then type the following command into command prompt and hit enter:
Flash the Stock ROM
Those keen eyed readers might have noticed that we sent the stock ROM to the phone’s storage when we sent the recovery (adb push stockrom.zip /sdcard/stockrom.zip) so now we need to flash it.
- Turn off the phone.
- Turn it back on by holding down Volume Down and Power and keep holding them until we get to the Android with his stomach open screen.
- Tap power a few times to get the menu to come up.
- Using the volume buttons to navigate and power to select choose Update and wait for it to flash.
- When it’s done it should reboot and you’re now all stock. Go through the normal setup process to get back to the home screen. Lastly, we can relock the bootloader to make sure that we are completely back to the way the phone was when we took it out of the box.
Relock the Bootloader
- Turn the phone off.
- Turn it back on by holding down Volume Up and Power at the same time until it boots into bootloader mode.
- Plug it in via USB to the computer.
- In command prompt, type the following with hitting enter at the end of the line:
fastboot oem lock
- After that the phone will relock the bootloader and to reboot it type the following with hitting enter at the end of the line:
- All done!
Let me know if this worked for you in the comments below!