How to: Moto X Pure Edition 2015 unroot and restore to stock (XT1575)

Motorola continues to support the new Moto X 2015 to be unlocked (bootloader) via the official way. It harnessed by the a lot of users, since no one knows until when Motorola will support it. The TWRP recovery has also been available, you can utilize it to flash SuperSU and then gain root access. On top of that, we think you also have to know how to restore to stock and unroot Moto X Pure Edition 2015, which might be useful someday.


There are many reasons why someone wants to restore their smartphone back to stock, one of which is to get the official OTA update from Motorola. The other reason is to deal with software problems, such as bootloop, stuck at boot logo or even soft-bricked device. In some cases, this procedure is performed when the device factory reset is not useful to clear up the situation.

Moto X 3rd Gen Related Mods

We can unroot and back to stock in the Moto X 2015 Pure Edition manually by flashing a stock firmware by running multiple fastboot commands. The good thing is, some firmware even provide bat firmware file that contains all the required commands to properly flash the firmware, so we no longer need to type it by hand.

back to stock moto x 2015 unroot

Device image: Moto Maker / Motorola

Back to stock and unroot Motorola Moto X 2015 Pure Edition

Actually, there has been a tool known as RSD Lite that has the same function, flash a firmware. This GUI tool has been used by several Motorola devices, including the Droid Turbo, however, not all stock firmware can be used with this tool. So, to be used with this tool, a firmware must be rebuilt to comply with the RSD Lite standards.
The following is a guide to restore to stock based on shawn5162’s thread on xda:

  1. Download the stock firmware for Moto X 2015.
  2. Install the latest Motorola USB drivers, if you do not have it already.
  3. Extract / unzip the firmware to a new and easy to find folder, you will see lots of files there.
  4. Connect the phone to the PC, and make sure your device can be recognized and not get ‘Unknow Device’ notification.
  5. Inside stock firmware folder, find a Windows batch file called ‘FLASH-ALL.bat’.
  6. Double-click the bat file and a Command window will be shown up.
  7. Follow any on-screen instructions carefully. Your device might restart several times, and it should done in less than 10 minutes.


Filled Under:Unroot and Relock
Related Tags:
Related Mods

14 Responses

  1. Jeff
    December 6, 2015 at 4:21 PMReply

    What do you do if it says “error: device not found”?

  2. james
    December 10, 2015 at 7:11 AMReply

    this don’t work. all it does is erase all data and stays rooted

  3. Dexter
    December 11, 2015 at 9:33 AMReply

    i am getting an error:device not found…. what gives

  4. Derek
    December 11, 2015 at 1:00 PMReply

    I have the same issue. I haven’t had a chance to try it yet but I think you would have to go to your bootloader. Turn off your phone, hold the power and volume down button for 10 seconds. Then proceed from step 5.

  5. Juan
    January 4, 2016 at 1:32 PMReply

    Tried it but now i dont have wifi…

    • kyle
      January 22, 2016 at 2:12 AMReply

      Mine too. Any fox for this WiFi issue?

      • Angel
        February 29, 2016 at 12:22 PMReply

        To fix wifi you need to flash a file named ‘NON-HLOS.bin’

        1. Download the file from here:

        2. Copy non-hlos.bin that you have downloaded from above link and paste it in your adb folder.
        3. Go to the location where your adb folder is located.
        4. Hold shift key + right click on your adb folder and choose “Open command window here” option.
        5. Now type the below code in command prompt and hit enter.

        fastboot flash modem non-hlos.bin

        6. Now restart your phone by entering the coder below and your wifi should work.

        fastboot reboot

        • Juan Martin
          July 1, 2016 at 1:24 PMReply

          Hi Angel, sorry if I bother you,I from Argentina, I can you explain how I copy non….en the adb folder? etc…thanks!
          Juan Martin

        • Brandon W
          September 15, 2016 at 12:25 PMReply

          Thank you so much i have been looking for different roms for a couple days bcuz the wifi wouldnt work.

        • Angel
          September 21, 2016 at 1:52 PMReply

          Of course before executing the “fastboot flash modem non-hlos.bin” command; make sure you turn off your device, now we will enter into bootloader mode by Pressing and holding the volume down button, then the power button for a few seconds till you see the bootloader screen.

          Once you see the bootloader screen do Step 5

          Hope this helps…

  6. Saahaj
    March 4, 2017 at 6:31 AMReply

    I seem to have a problem updating to the newest firmware version… any suggestions?

  7. Jay
    March 26, 2017 at 6:40 AMReply

    I tried this, but these are the issues still having :
    1- I had no WiFi at first, but that was solved following the added instructions.
    2- Whenever it reboots, it always starts out in the bootloader screen.
    3- When I try to do a factory reset on it, it just goes back to the bootloader screen, and once it powers up it goes to the home screen without erasing anything.
    4- It still won’t install any OTA updates.
    Thanks for any help that can be offered.

  8. Zaphod
    July 1, 2017 at 10:18 PMReply

    I had problem flash back to stock 5.1.1 where Wifi would not stay on.
    I followed the instructions from Angel and wifi works again! SO easy! Thanks!

Leave a Reply