How to Restore Moto G 2015 to Stock and Lock the Bootloader

25

Following the great success of the original Moto G and the 2nd Gen. Moto G, the best-seller for Motorola, the company has now released the 3rd generation of the phone. The Moto G is known for offering outstanding features and performance at incredible price and this factor is the greatest reason behind its success. Moreover, Moto G has already been updated to the latesd firmware 5.1.1 and its users are waiting for the next update.

The new Moto G brings exciting improvements over its predecessor and sports a 5.0-inch Corning Gorilla Glass 3 screen. It has a 720 x 1280 HD display and comes in both 1GB and 2GB RAM. Moto G 3rd Gen  comes with 1.4 GHz Qualcomm MSM8916 Snapdragon 410 processor and possesses an Adreno 306 GPU.

It supports microSD slot expandable up to 32GB with 8/16 GB Internal memory. Primary camera of 13 MP secondary camera of 5 MP is an advantage over its predecessors and 2070 mAh battery makes it last longer. The phone comes with the latest Android 5.1.1 version and will be updated to Android M.

If you have for any reason flashed a custom ROM, unlocked the bootloader or have made changes to the system and want to restore your Moto G 3rd Gen to stock firmware then this detailed guide will help you do just that.

The Moto G 2015 is already available and if you have already got hold of it, bookmark this tutorial for future reference. Suppose you have a rooted Moto G and you have also installed a custom recovery, you might get into a situation at some point of time when you’ll have to flash the official firmware to recover your phone.

If you have for any reason flashed a custom ROM, unlocked the bootloader or have made changes to the system and want to restore the stock firmware and lock the bootloader then this guide will help you do just that. By installing the stock firmware, you can unroot your device and return to stock recovery.

Downloads

XT1540 [5.1.1]

XT1541 [5.1.1]

XT1542 [5.1.1]

XT1543 (DUAL SIM) [5.1.1]

XT1544 (DUAL SIM with HDTV)[5.1.1]

XT1548 (CDMA)

XT1550 (DUAL SIM) [5.1.1]

Disclaimer

The method described below has been tested. However, we do not hold any responsibility for a happy ending in all cases. Just follow the guide carefully and at your own risk.

Getting Prepared

  • Download the specific 3 rd Gen. Moto G 2015 firmware from the above Downloads section for your variant.
  • Download mini fastboot kit:  mfastboot-v2.zip  |  mirror
  • Download and install Motorola USB Drivers (alternate link) your computer.
  • Enable USB Debugging on your Moto G 2015: go to Settings> About and tab Build version 7 times to unlock Developer options. The go to Settings> Developeroptions and enable USB Debugging.
  • Backup your apps and data as flashing the firmware would wipe them all. Use these apps to backup your data.
  • Last but not the least, charge your phone to ensure at least 70% battery.

Restore Moto G 2015 to Stock

  1. Download the firmware file and extract it to a folder.
  2. Extract mfastboot-v2.zip and copy its content to the same folder where the extracted firmware files exist.
  3. Reboot your Moto G into the Bootloader Mode. You can do it using either of the methods given below:
    • Turn off your phone and then press and hold the Volume Down + Power buttons simultaneously for a few seconds.
    • Connect your Moto G to computer using the USB cable. Open the firmware folder where you have copied the mfastboot files. Launch a command window, type the following command and press the Enter key:
      adb reboot-bootloader
  4. Now here is how to flash the stock firmware. Make sure the device is connected via USB cable and launch a command window from inside the firmware folder and type the following commands one by one:
    mfastboot flash partition gpt.bin
    mfastboot flash motoboot motoboot.img
    mfastboot flash logo logo.bin
    mfastboot flash boot boot.img
    mfastboot flash recovery recovery.img
    mfastboot flash system system.img_sparsechunk.1
    mfastboot flash system system.img_sparsechunk.2
    mfastboot flash system system.img_sparsechunk.3
    mfastboot flash modem NON-HLOS.bin
    mfastboot erase modemst1 
    mfastboot erase modemst2 
    mfastboot flash fsg fsg.mbn
    mfastboot erase cache 
    mfastboot erase userdata
  5. If you also want to lock your phone’s bootloader, type the following command and hit the Enter key:
    mfastboot oem lock
  6. Finally, reboot your device by typing:
    mfastboot reboot
  7. Your Moto G will reboot now but if it is unable to pass the boot screen, try this: turn off the device, go to Bootloader mode, launch command window wipe cache and userdata by issuing these commands:
    mfastboot erase cache 
    mfastboot erase userdata
    
    mfastboot reboot
  8. To re-lock the bootloader on your Moto G 2015, type the following command and hit the Enter key:
    mfastboot oem lock

Wait till your phone boots up. Done! You have successfully restored your Moto G 2015 to stock! If you have any queries the get to us via comments section.

  • Ramprasad R

    I have flashed the stock firmware of moto g3 XT1550.
    After reboot command, The device starts with unlocked boot loader warning then shows only erasing screen. It is not going any further.Struck with the erasing screen itself forever.
    Now pls tell me what to do
    pls pls pls

  • dheerajgupta

    Boot into bootloader, connect phone to pc, and type this”mfastboot oem fb_mode_clear” or “fastboot oem fb_mode_clear” in cmd

  • sriharsha

    i have installed lineage Os on my Moto G3 and it is running fine. But whenever I restart my fone it opens up in bootloader mode. From there I have select the start option using power button. only then it starts. How can I get rid of this bootloa
    der mode every time I start my phone. please help me

  • Majid Lotfi

    Hi,
    I downloaded all the software, but I got :

    C:UsersalotfiDesktopmyToolsMotorolaMotoG3_XT1540_OSPREY_RETUS_5.1.1>adb re
    boot-bootloader
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    error: device ‘(null)’ not found

    Please your help is appreciated.
    Thanks.

  • Manjunath Damam

    Helllo my fone still not rooted but the bootloader is unlocked.. I want to relock it. What should I do.. Sry for bad English but plz help me. My fone is Moto G3 XT 1550

  • Siddhartha Mani

    I believe that adb is also installed otherwise it wouldn’t have shown that list of commands…

  • Siddhartha Mani

    see I’ve tried every damn thing and I’m always getting this error.
    plz help…

  • SAMYAJIT MAJUMDER

    I have done all the coding works but the bootloader is still unlocked. What to do ??

  • Raghav Maheshwari

    there is no file named motoboot.img

  • Rahul Potluri

    Hey! Can I get Motorola OTA updates after restoring the stock ROM you provided?

  • Param Talia

    Thanks man it worked!

  • Sabarish

    Hey Sarang!.Everything was fine i flashed all those above things and finally i can’t relock the bootloader using tat command.It says error command.

  • Mirza Sam

    hi sarang thank you for posting this it helps a lot, i want to ask i am using motorola moto g XT1550 2015 india with rooted and unlocked bootloader build number LP123.72-65 can i relock my bootloader with this command ‘

    mfastboot oem lock’ that you post ?

    thanks in advance

  • viki

    Can i downgrade to lollipop from marshmallow using this method??? or do u know any method to downgrade from android 6.0 to lollipop????

  • tarun goyal

    this will also change our twrp recovery to stock recovery???

  • Harshit SinGh

    Will it be able to install the OTAs?
    *I’ve completely flashed the signed build*

  • Sarang

    Hi Harshit, you can just issue this command instead, through the terminal: adb reboot recovery

  • Hi Harshit, you can just issue this command instead, through the terminal: adb reboot recovery

  • Harshit SinGh

    Hey Sarang! When I try to get into the recovery (stock) , It says “No Command.”
    What should I do?

  • Fábio Miguell

    I do miss something ?

  • Fábio Miguell

    hello someone help me , I’m trying to restore my Moto G 2015 stock , follow step by step instructions posted on the site , the first since the error command !!!!! days do is I’m trying to restore my bike g stock in 2015 and I can not.

  • abhishek saini

    If i directly use the command “fastboot OEM unlock” is there any chance of getting my device bricked..???

  • Sarang

    New generation phones require an “unlock code” to unlock bootloader and require you to accept the unlocking agreement on motorola’s official site. Using this code may void warranty and you can get this information when you login. As reported by some Moto users, relocking the bootloader will still void warranty. If you want to know about unlocking bootloader, refer to this tutorial: http://www.droidviews.com/how-to-unlock-bootloader-on-moto-x-style-pure-edition/

  • abhishek saini

    Hey sarang am already on stock but I only want to unlock my boot loader. So what should I do?? And will my warranty be back after relocking it

  • bovoro

    hi man, locking the bootloader and restoring to stock, its appearing the unlocked bootloader warning ?