Maybe you’ve gone a little too far with rooting your Moto X or perhaps you need to sell it or send it in for warranty? Regardless of the reasoning, sometimes the fun has to end and you need to just get it back to stock. Thanks to some people offloading the stock firmware files and RSD Lite (the Motorola flashing program) existing, it isn’t that tough. All you need to do is setup the adb drivers (if you haven’t already), download your firmware for your specific Moto X, and use RSD Lite to install it. Here’s a step by step tutorial on how to do unroot the Moto X.
I. Before You Begin
1. This will erase your device and set it back to stock from the factory.
2. This requires using a Windows computer.
3. Make sure the device is at least 70% charged just to be safe it doesn’t die during the process.
II. Setup ADB and the Drivers
2. Download my ADB Package and save it to your Desktop.
3. On the Moto X, head to Settings > About Phone.
4. Keep tapping Build Number until it says you are a developer.
5. Hit back then tap on Developer Options.
6. Turn on USB Debugging.
7. Plug in the Moto X via USB.
8. Right-click the adb package .zip file and click Extract All.
9. In the newly extracted folder, hold shift on the keyboard and right-click in any blank section in that folder and select Open Command Prompt Here.
10. In the command prompt, type the following and hit enter at the end of the line:
adb reboot bootloader
11. The device will boot into bootloader mode.
III. Flash the Stock Firmware and Unroot the Moto X
Download the stock firmware for YOUR SPECIFIC DEVICE from this site here and save it to your Desktop. UPDATE: Unfortunately, the developer of that site has removed the stock file repository. If you can find the stock firmware elsewhere, please let me know so I can update this link for everyone else.
2. Right-click the firmware .zip file and click Extract All.
3. In the newly extracted folder, open the .xml file by right-clicking it and selecting Open With… and choose Notepad.
4. Inside that file, delete the following line and then click File > Save and close the file:
<step operation="getvar" var="max-download-size" />
5. Download RSD Lite and save it to your Desktop (the flashing software for Motorola Devices).
6. Right-click the RSD Lite .zip file and click Extract All.
7. Open RSD Lite by double clicking the .exe file in that new folder.
8. In the RSD Lite program, tap the … button on the right side and then navigate to the Desktop and choose the .xml file that you edited earlier and click OK.
9. Click Start in the RSD Lite program and wait for it to flash your device.
10. Once done, the device will reboot and you are back to stock!