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

277

Following the great success of the original Moto G, the best-seller for Motorola, the company has now released the 2nd generation of the phone. The Moto G is known for offering outstanding features and performance at an incredible price and this factor is the greatest reason behind its success.

The new Moto G brings exciting improvements over its predecessor and sports a 5.0-inch (720 x 1280) HD display, 1GB RAM, 1.2 GHz Qualcomm Snapdragon 400 Quad-core processor, microSD slot, 8MP primary and 2MP secondary camera and 2070 mAh battery. The phone comes with the latest Android 4.4.4 out of the box.

The Moto G 2014 is already available and if you have already got hold of it, bookmark this tutorial for future reference. Today, we’ll give a detailed guide about how you can restore Moto G 2014 to stock firmware and lock its bootloader in case you have already unlocked it. 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. By installing the stock firmware, you can unroot your device and return to stock recovery.

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 2nd Gen. Moto G (XT1063 / XT1064 / XT1068 / XT1069) firmware from here.
  • Download mini fastboot kit:  mfastboot-v2.zip 
  • Download and install Motorola USB Drivers (alternate link) your computer.
  • Enable USB Debugging on your Moto G 2014: go to Settings> About and tab Build version 7 times to unlock Developer options. The go to Settings> Developer options and enable USB Debugging.
  • Backup your apps and data as flashing the firmware would wipe them all. Use these apps backup your data.
  • Last but not the least, charge your phone to ensure at least 70% battery.

Restore Moto G 2014 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 oem lock begin 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.0 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 own the Indian Moto G 2014 XT1068, try the following command instead:
    mfastboot.exe oem lock begin
    mfastboot flash logo logo.bin mfastboot flash boot boot.img mfastboot flash recovery recovery.img mfastboot flash system system.img_sparsechunk.0 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
    mfastboot oem lock
    mfastboot reboot
  6. If you also want to lock your phone’s bootloader, type the following command and hit the Enter key:
    mfastboot oem lock
  7. Finally, reboot your device by typing:
    mfastboot reboot
  8. You 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 cacahe and userdata by issuing these commands:
    mfastboot erase cache mfastboot erase userdata 
    mfastboot reboot
  9. To relock the bootloader on your Moto G 2014, 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 2014 to stock!