How to Restore Moto G to Stock and Downgrade Firmware (All Models)

47

Some time ago, we shared the multi-purpose MotoTool that could not only root but also install CWM/TWRP recovery and restore Moto G to stock firmware. While the rooting and recovery functions of the MotoTool work fine for all Moto G variants, its firmware restore feature is meant only for a specific model.

If you own Google’s Moto G and you wish to downgrade its firmware to a lesser version of Android, you will have to flash the stock firmware manually. In case you want to restore your Moto G back to stock firmware because it is stuck in a bootloop or for some other reason, you can use our tutorial and return your Moto G to working state.

Warning:

Please note that the method described below has been tested and found working, still we do not hold any responsibility. In most cases, the success and failure depend on how the users follows a tutorial. If you wish to proceed, do it at your own risk.

Download Moto G Firmware:

(XT1031, XT1032, XT1033, XT1034)

Click to Download

More Firmwares Here

Note:

Please note that the firmwares with ‘_umtsds’ in their names are meant for the Dual-SIM variants of the Moto G. If you flash the dual-SIM firmware on single SIM model, you might encounter network connectivity issues. So, be careful in choosing the correct firmware to ensure that you do not get into an inconvenient situation after flashing it.

Getting Prepared:

In order that we can install the stock firmware on the Moto G, we need to do some things before hand.

  • Download the official firmware, corresponding to your Moto G model from above.
  • After the firmware file with .tar.gz or .xml.zip extension has been downloaded, extract/unzip it to your desktop.
  • In case the firmware you downloaded has .xml.zip extension download mfastboot-v2.zip [mirror] file and extract its contents to the same folder where you have the extracted firmware files with .bin and .img extensions.
  • Unlock the bootloader of your Moto G. To do so, follow the instructions given here.
  • Download and install the latest MotoCast for Motorola USB Drivers on your computer: Download Here
  • Download and setup ADB/Fastboot on your computer. We recommend downloading Minimal ADB and Fastboot Tool for the purpose: Download Here  [source]
  • Enable USB Debugging in device Settings. Find the method here.

Restore Moto G to Stock Firmware

Having taken care of the prerequisites, follow the steps given below to restore Moto G to stock firmware.

  1. Reboot your Moto G to Bootloader mode. Here is how you can do it: turn off your phone and then press and hold the Volume Down + Power buttons simultaneously for a few seconds. You can also boot your Moto G in Bootloader mode using ADB command. Make sure USB Debugging is enabled on your device, connect it to computer, launch Minimal ADB and Fastboot Tool,  type the following command in the cmd window and hit the Enter key:
    adb reboot-bootloader
  2. The Moto G Bootloader screen looks like this:moto-g-bootloader-mode
  3. Now open the folder that contains the extracted firmware files and launch the cmd prompt. you can do so by pressing the Shift key + Right-click on mouse and selecting “Open command window here” option.
  4. If the firmware you downloaded has .tar.gz extension,
    1. Type the following command in the cmd window (eu stands for ‘erase userdata’):
      flashall.bat /eu
    2. If you are a Linux/Mac user, type the following command in terminal window:
      chmod +x flashall.sh
      ./flashall.sh
    3. Wait till the firmware files are flashed to your Moto G. At the end of the installation procedure, your phone will reboot automatically.
  5. If you downloaded a firmware with .xml.zip extension, follow these steps:
    1. Type the following commands in the cmd window one by one and press Enter key after each command line. Make sure that you see OKAY message on cmd after executing each command:
      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_sparsechunk1
      mfastboot flash system system.img_sparsechunk2
      mfastboot flash system system.img_sparsechunk3
      mfastboot flash modem NON-HLOS.bin
      mfastboot erase modemst1 
      mfastboot erase modemst2 
      mfastboot flash fsg fsg.mbn
      mfastboot erase cache 
      mfastboot erase userdata 
      mfastboot reboot
    2. Your phone will reboot automatically.
  6. Wait till your device boots up. Go through the initial setup and enjoy!

By the time you read these words, you might have already restored stock firmware on your Moto G. If you have any doubts or you want to share your experience with us, do not forget to drop a comment below. Cheers!

Also See:

How to Root and Install CWM/TWRP Recovery on Moto G

source