How to Restore Stock Firmware on Moto G (All Models)

Restore Moto G to stock firmware

Follow this guide to restore stock firmware on Moto G. The instructions will work for Moto G 1st Gen, 2nd Gen, 3rd Gen, 4th Gen, Moto G5/Moto G5 Plus, and Moto G5S/Moto G5S Plus.

The Moto G series is the OEM’s most prominent handsets that do well with the hardware, design, as well as on the software. But if you have accidentally messed up your phone, removed the OS, don’t feel right on custom ROMs, or want to turn in your Moto G smartphone for servicing? Then this guide will assist you on how to restore Moto G stock firmware. The process is easy and only requires you to flash the stock firmware/factory image via fastboot commands.

Restore Stock Firmware on Moto G

Table of Contents

Guide to Restore Moto G Stock Firmware

Unlike many other OEMs, Motorola pushes fastboot flashable firmware in form of zips. You can use the image files in the zip and flash them in order to restore stock firmware on Moto G devices. The supported device list includes the following. In simple words, only the following could be restored using this tutorial.

  • Moto G (1st Gen)
  • Moto G (2nd Gen)
  • Moto G (3rd Gen)
  • Moto G4 (4th Gen)
  • Moto G5 and G5 Plus
  • Moto G5S and G5S Plus

All you will need to restore stock firmware on Moto G is the factory image for your model and variant. Be careful while searching for this, flashing the wrong files may permanently damage your phone. The procedure is nearly same for all the devices and could be followed correctly with a little awareness.

Download Moto G Stock Firmware

You can grab the full factory image for your Moto G model and variant directly from www.stockrom.net. Just visit the link and press Ctrl + F on your keyboard. Then search for your device, example – “moto g”.

Prerequisites

Make sure to fulfill all the listed requirements before you go ahead and follow the instructions to restore stock firmware on Moto G.

Restore Stock Firmware on Moto G

  1. Download the factory image corresponding to your Moto G variant and model. Extract the downloaded firmware to the platform-tools folder.
  2. On an empty space inside the folder, press SHIFT key and right-click on an empty space. Select Open PowerShell window here from the pop-up that appears.
    Open PowerShell on Windows
  3. Connect your phone to the PC, and make sure it is unlocked. Enter the following command in the command-line window:
    adb reboot bootloader
  4. Your Moto G smartphone will now enter bootloader mode. This is where we will flash the factory image.
    Restore Stock Firmware on Moto G - Bootloader Mode
  5. Once it has, make sure that fastboot detects your device by entering the following command:
    fastboot devices
  6. The above command will return an output with the device ID. If it doesn’t, make sure that you have installed the drivers and reboot your machine.
    Restore Stock Firmware on Moto G - Fastboot devices command
  7. Enter the following commands now to flash the factory image and restore stock firmware on Moto G device. There may be a chance that your device or variant has an extra or a less number of system.img_sparsechunk file, so make sure to flash accordingly. If you are downgrading your Moto G’s firmware, do not flash gpt.bin and bootloader.img/motoboot.img files.
    fastboot oem fb_mode_set
    
    fastboot flash partition gpt.bin 
    
    fastboot flash bootloader bootloader.img 
    
    fastboot flash logo logo.bin 
    
    fastboot flash boot boot.img 
    
    fastboot flash recovery recovery.img 
    
    fastboot flash system system.img_sparsechunk.0 
    
    fastboot flash system system.img_sparsechunk.1 
    
    fastboot flash system system.img_sparsechunk.2 
    
    fastboot flash system system.img_sparsechunk.3 
    
    fastboot flash system system.img_sparsechunk.4 
    
    fastboot flash system system.img_sparsechunk.5 
    
    fastboot flash modem NON-HLOS.bin 
    
    fastboot erase modemst1
    fastboot erase modemst2 
    
    fastboot flash fsg fsg.mbn 
    
    fastboot erase cache 
    
    fastboot erase userdata 
    
    fastboot erase customize 
    
    fastboot oem fb_mode_clear
  8. Once everything is done, reboot the phone:
    fastboot reboot

Once your device boots, you will see the initial setup instructions. Now, this is how you can restore stock firmware on Moto G and it’s pretty easy for anyone to follow. If you have any queries or feel stuck, let us know via the comments below.