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.

Advertisement

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 try dat minimal adb fastboot command and Motorola say your phone is not qualify for unlock what to do bro plz help
    3A55940086118341#5A593232323537524D54004D6F746F4733000000#B9C186669FF7645C14AB7AF79B6DE31C572F0986#1B9EC40E00000000000000000

  5. You need a unlock key from Motorola, which require your device id and imei number to unlock the bootloader.

  6. 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

  7. 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

  8. 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.

  9. 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

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

  11. 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

  12. 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?

  13. hi i followed the above procedure..same like you i have struck at logo..is there any solution.. please tell me

  14. Hi kannan, i go to mobile repairer they says flash cannot be done because your phone is locked. firstly unlock then it will be flash. what i do?, I think i done wrong combination of keys. then i select recovery. on home screen load image ‘starting apps’. then restart and stuck at logo. again doing combination then recovery then dead green guy says ‘no command’. phone restart again and again. What is axact problem recovery or flash file or other?.

  15. Just Google it, you will definitely get a solution. Otherwise mail me with exact problems

  16. 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?

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

  18. 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.

  19. 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.

  20. 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 ?

  21. please tell the link where i can download the official firmware.it says error when i press the link in the steps

  22. 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)

  23. 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.

  24. 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.

  25. 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

  26. You cannot run these commands from your mobile. You need a computer with working ADB and fastboot driver installed

  27. 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

  28. 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.

  29. 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

  30. 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.

  31. My Moto G2 is stuck at logo and does not boot up. Phone is rooted and I tried to upgrade s/w using OTA. Any solution for this?

  32. Thanks brother for your reply…
    Let, After i recover my stock recovery by TWRP recovery. Can I unroot it by SuperSu’ s Full unroot option in settings and get android OTA features.

  33. 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..

  34. Once you unlock your Moto G 2014 officially, the command will not lock again (that was my experience)

  35. Thanks a lot my friend, you saved me.. And BTW the firmware had sparsechunk.0, 1, 2, 3, 4… and it works .. thnx

  36. If I unroot my moto g 2nd gen after rooting. does my warranty still gets void? please do let me know.

  37. 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

  38. 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.

  39. 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

  40. Mr. Kannan, I am unable to download the firmware from any of the above like. Can you please upload to Google drive ?

  41. 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!!

  42. Even that link is also not working. So please can you upload it to some google drive and give us the link over here?

    Thanks in advance,

  43. 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.

  44. Yes even my rear camera is not being recognized after flashing the stock firmware..pls can somebody find a solution for this.?

  45. 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?

  46. 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?

  47. 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

  48. 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

  49. I have an issue; my signal bar is empty and it says “no service”, have no phone either, any suggestions?

  50. 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

  51. I have gone through the process again and when I enter mfastboot.exe flash boot boot.img cmd line I am getting the message ‘hab check failed for boot’. Any ideas??

  52. as with above, I am getting the ‘unlocked’ page loading then flashing on/off ect. Do you have any ideas??

  53. 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

  54. 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.

Comments are closed.