In this tutorial, we will be guiding you through the process of reinstalling official firmware on 2nd gen Moto G 2014 edition. We will show you how to restore original stock firmware on 2nd generation Moto G as well as lock its bootloader in case you have already unlocked it.

You might want to reinstall official firmware on Moto G for various reasons. For instance, after rooting and trying out few custom ROMs, if you want to unroot your Moto G, or if it stuck at boot loop after flashing a wrong ROM or whatever reasons your Moto G needs stock firmware.

2nd-gen-moto-g

For your information, the new Moto G (2014) has several improvements over its forerunner. Running on the latest Android 4.4.4 KitKat firmware, it now sports a 5-inch (720p x 1280p) 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.

Disclaimer: Follow the guide carefully and at your own risk. We will not take any responsibility if anything went wrong. This guide is intended only for technically talented users.

Requirements:

1. Official firmware for 2nd Generation Moto G (XT1063 / XT1064 / XT1068 / XT1069). Download from the official site.

2. mfastboot kit v.2. Download from here or here

3. Download and install Motorola USB Drivers on your computer.

4. Enable USB Debugging on your Moto G 2014. To do so, go to Settings -> About and tap Build version 7 times. It will unlock the Developer options. Then, go to Settings -> Developer options and enable USB Debugging.

Instruction to Restore Stock Firmware on Moto G 2014

1. Extract the downloaded firmware file to a folder.

2. Extract mfastboot-v2.zip and copy its content to the same folder where the extracted firmware files.

3. Reboot your Moto G into the Bootloader Mode. To do so, turn off your phone and then press and hold the Volume Down & Power buttons simultaneously for a few seconds.

4. Connect your phone to your PC via USB cable.

5. Now, launch a command window from inside the firmware folder (click shift key, right click and select open command window here option).

6. In the command window, issue the following commands one by one:

mfastboot.exe flash partition gpt.bin
mfastboot.exe flash motoboot motoboot.img
mfastboot.exe flash logo logo.bin
mfastboot.exe flash boot boot.img
mfastboot.exe flash recovery recovery.img
mfastboot.exe flash system system.img_sparsechunk.0
mfastboot.exe flash system system.img_sparsechunk.1
mfastboot.exe flash system system.img_sparsechunk.2
mfastboot.exe flash modem NON-HLOS.bin
mfastboot.exe erase modemst1
mfastboot.exe erase modemst2
mfastboot.exe flash fsg fsg.mbn
mfastboot.exe erase cache
mfastboot.exe erase userdata

7. Now, if you also want to lock your Moto G’s bootloader, issue the following command.

mfastboot.exe oem lock

8. And, finally, reboot your device by issuing the below command:

mfastboot.exe reboot

Your Moto G 2014 will reboot now. If not, follow the instruction given below.

Troubleshooting:

If your phone stuck at boot loop or unable to boot, turn off the device, go to Bootloader mode, launch command window and issue below commands:

mfastboot.exe erase cache
mfastboot.exe erase userdata
mfastboot.exe reboot

It will reboot your phone and you will have the stock firmware back on your 2nd Gen Moto G.Leave your views in the comment section below.

Previous articleHow to Put Your Phone into Deep Sleep Mode to Save Battery
Next articleSamsung S Note for Windows Lets You Manage Your Notes on Your PC
Kannan
Kannan is a computer and Android enthusiast, a blogger by passion and a tech freak. His always ready-to-help attitude, knowledge and hard work is what drives him.

89 COMMENTS

  1. Hi after i input the first command line:
    mfastboot.exe flash partition gpt.bin
    the command window reads waiting for device and nothing happens. i have tried unplugging and plugging my phone back in but it seems to make no difference help please Kannan sir..

  2. I have done all procedure successfully but one problem that back camera is not working what should I do now. downgraded from marshmallow to KitKat.

  3. As i have flash moto g 2 and locjed bootloader they say that failed to validate system.image so what’sthe reason behind thia

  4. I had reflash motog3 xt1550 by its not working my moto g3 bootloader is not unlocked plz send mi step step any reflash and custom Ron image how to get and install

      • I had flash ma moto g3 xt1550 from bootloader ma phone is lock and when I write commas fastboot oem unlock den its say not supported or not found den I write all command and last one reboot den ma phone restat and say it phone did not start successfully and get the error message ‘failed to validate system image
        Error – failed to pass validation, backup to fastboot
        Faatboot reason – fail through from normal boot mode plz help

  5. hello mr kannan ! i have followed all the steps as u gave but device is unable to start it becoming blank with bootloader msg then after screens starts blinking like that only, but not restarting. pls suggest me

    • Are you flashed the original firmware? Download correct firmware for your model (search on XDA) and flash it. It will solve your issue

    • I tried rooting my moto g3 device 6.0.1 and it did not work too well. right now my phone is saying “start up failed : your device did not start up successfully.”
      ap fastboot flash mode (secured)
      failed to validate system image
      error: failed to pass validation, backup to fastboot
      fastboot reason: fall through from charger boot mode

      how do i fix this? i do not live in india. Model no. xt1550 plz help kannan ma phone is not starting

      • You will need to reflash your phone back to stock firmware or flash TWRP and install a custom ROM image. Before do anything inside your phone, triple check everything.

  6. I installed everything as per instruction just one problem . no network is detected, even tough the sim card is detected it stays “no service” how to solve it my frnd?

  7. Hello sir, thank you reply. Pls can you send me mail what is the procedure it step by step. Can shop repairer solve this problem by doing software on mobile?

  8. Sir, i tried recovery through fastboot then some happens and restart. it still stuck at logo. never pass it to home screen. again do steps but green guy shows says no command. it still stuck and restart. what i do. can i do something for it or i go to mobile repairer shop. Pls help me.

    • It means you have not use the proper key combination to boot into recovery. Alternatively use the adb command to boot into recovery

  9. my phone has no os says, it has 0% battery, is only enable to open fastboot (but when i select anything it shows the charge screen witch is stuck on 0%) and is not reconized by the pc (the wire works fine my brother uses it everyday)

  10. I have rooted moto g 2 using kingroot. After switch off and when i did on then it show boot image is not verified what we have to do for on the phone.

  11. mr. kannan sir i have indian moto g 2nd generation xt1068.with stock 5.0.2 lollipop on it. and i have rooted my phone and i have twrp custom recovery. i forgot to make backup of stock recovery and i have an ota update of 6.0 marshmallow. it is not installing after downloading it get stuck in recovery mode.. it doesnt update.. what should i do sir..
    should i unroot it??
    nd how to unroot and get stock recovery so i can update to 6.0 marshmallow ota.. sir please help me

    • Simply unrooting and locking bootloader will not let you install OTA update on your Moto G. TYou have to follow other methods to update your Moto G to Marshmallow.

      • hi kannan,
        i need your help on something about moto g 2014 retails version..i have cm13 installed in my phn and want to go back on stock 4.4.4 how can i directly flash the 4.4.4 firmware using twrp. and one more ques. is gapps needed in same ?

        • If you backed up the stock firmware using TWRP, you can restore it via TWRP. To flash the stock recovery, TWRP recovery is not required. You need to flash it via ADB. Gapps is not needed.

  12. Hi after i input the first command line:

    mfastboot.exe flash partition gpt.bin

    the command window reads waiting for device and nothing happens. i have tried unplugging and plugging my phone back in but it seems to make no difference help please

  13. Hola, es que tengo mi cel motog XT1068 roteado con titan prime ROM y me salen las aplicaciones de supersu y otra, es android 5.0.2, quisiera saber si con este vídeo me desrotea MI MOTO G Y me devuelve a la ROM original, como si uno lo compra nuevo.

  14. please i need help, my moto g 2014 xt1063 when i put de commands it just say “waiting for the device” and no more i have tried desintalling and reinstallind the drivers, reboot the cellphone and pc, and i cant enter to my cellphone because it stays in motorola logo, PLEASE HELP ME

  15. Hello Mr.Kannan
    I am very new to this world of rooting my android device and such, so please bear with me.
    I own a moto g2, i intended to install Cyanogen so i unlocked the bootloader. After unlocking it, i decided not to put Cyanogen and keep the original ROM.
    Recently i saw an OTA update for the -Stage fright bug fix (something along those lines)- after the installation of the update my moto g2 intended to restarted as you would expect after updating. But however it has been stuck in the : “WARNING BOOTLOADER UNLOCKED etc…” screen ever since.
    Recovery mode does not work since it just says ‘no command’
    Factory reset does nothing except bring it back to the bootloader unlocked screen.
    Please can you give me some advice and assistance.
    If anyone else knows anything that can help me out i welcome it.
    Thank you for your time.

  16. Brother I have rooted my moto g 2nd gen (xt 1068) and put cyanogen 12.1 in it. But now I want to roll back to android 5.0.2.
    Before flashing cyanogen I made a backup of stock ROM using TWRP Recovery
    Brother I want to ask you that can I restore the stock ROM again or it can brick my phone.
    Please please reply by mail or post here.. Please reply I really needie.
    Thanx..

  17. man the official website is not opening pls tell another site.and if anyone could please tell the name of rom used in indian moto g 2nd gen

  18. help me as i try to flash stock firmware of kitkat on my moto g2. from the first command i fet the massage preflash validiation fail error.

  19. hola como estan ojala puedan ayudarme lo que ocurre es que mi motorola moto g 2014 cuando lo quiero encender me manda al menu fastfood y despues me marca error que dice failed to validate system image por favor ayudenme ya no se que hacer

  20. Hello Mr. Kannan..

    After going through your steps above (without reading the comment) I have come to serious problem of my phone just flushing and not able to boot at all!! Am afraid that it my not work any more!
    Please would you help me how to recover it from that point!!! I tried to switch it off but it does not go off so i cant enter the bootloader

    Urgent help will be appreciated!!

  21. Hello, the official website doesn’t seem to work, non of the links are found.
    can anyone please re-upload the official ROM for the XT1068.

  22. i cant download the firmware from official website , website cant load , i am trying it more then a week, anyone can help?or any other mirror site?

  23. After the stock installation, it seems the phone does not recognize the rear camera. Can anybody verify that or confirm if it is just mine like that?

  24. on giving comand:
    flash partition gpt.bin

    “target max-sparse-size: 256MB
    sending ‘partition’ (32 KB)…
    OKAY [ 0.063s]
    writing ‘partition’…
    (bootloader) Preflash validation failed
    FAILED (remote failure)”

    Pls help me out

  25. not one by one select rule, follow the instruction given below.full command and pressed enter key, automatically your moto g installed

    mfastboot.exe flash partition gpt.bin
    mfastboot.exe flash motoboot motoboot.img
    mfastboot.exe flash logo logo.bin
    mfastboot.exe flash boot boot.img
    mfastboot.exe flash recovery recovery.img
    mfastboot.exe flash system system.img_sparsechunk.0
    mfastboot.exe flash system system.img_sparsechunk.1
    mfastboot.exe flash system system.img_sparsechunk.2
    mfastboot.exe flash system system.img_sparsechunk.3
    mfastboot.exe flash modem NON-HLOS.bin
    mfastboot.exe erase modemst1
    mfastboot.exe erase modemst2
    mfastboot.exe flash fsg fsg.mbn
    mfastboot.exe erase cache
    mfastboot.exe erase userdata
    mfastboot.exe reboot

  26. PLEASE CORRECT THE FOLLOWING
    The firmware includes four ‘system.img_sparsechunk’.
    So continue as following and it will work, otherwise one part is missed and you can’t go beyond boot logo

    mfastboot.exe flash system system.img_sparsechunk.0
    mfastboot.exe flash system system.img_sparsechunk.1
    mfastboot.exe flash system system.img_sparsechunk.2
    mfastboot.exe flash system system.img_sparsechunk.3

  27. plzzz help
    i did all the things in the right oder but its stuck in reboot…its just keep on flashing bootlocker unlocked images back and forth
    pkzz help….fast …its serius

  28. Oye noob add this line also mfastboot.exe flash system system.img_sparsechunk.3 else cmd showing system vailde failed in firmware pachage there 3 img 0,1,2,3.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.