How to Reinstall Official Firmware on 2nd Gen Moto G (2014)

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.


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.


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


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.

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.


  1. naseer

    Aug 3, 2016 at 10:10 am

    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.

  2. suyash oswal

    Aug 2, 2016 at 7:12 pm

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

  3. prathamesh

    Jul 8, 2016 at 9:38 pm

    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

    • Kannan

      Jul 9, 2016 at 10:48 am

      Without unlocking the bootloader, it is not possible to flash firmware manually.

      • prathamesh

        Jul 10, 2016 at 12:23 am

        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

        • Kannan

          Jul 10, 2016 at 10:07 am

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

          • prathamesh

            Jul 10, 2016 at 11:07 am

            I try dat minimal adb fastboot command and Motorola say your phone is not qualify for unlock what to do bro plz help

          • Kannan

            Jul 11, 2016 at 10:33 am

            Not all Moto G2 support bootloader unlock. Check your device for that (

  4. prasad

    Jun 24, 2016 at 4:59 pm

    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

    • Kannan

      Jun 26, 2016 at 1:13 pm

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

    • prathamesh

      Jul 8, 2016 at 3:36 am

      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

      • Kannan

        Jul 8, 2016 at 7:34 am

        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.

  5. Sulthan A

    Jun 7, 2016 at 5:08 pm

    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?

  6. vikas

    May 7, 2016 at 4:22 pm

    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?

    • Kannan

      May 8, 2016 at 9:56 am

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

      • vikas

        May 10, 2016 at 5:30 pm

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

  7. vikas

    May 7, 2016 at 2:59 pm

    my phone is moto g2 xt1068 kitkat 4.4.4

  8. vikas

    May 7, 2016 at 2:52 pm

    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.

    • Kannan

      May 7, 2016 at 3:11 pm

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

    • ram

      May 20, 2016 at 5:28 pm

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

  9. Anand

    Apr 20, 2016 at 6:35 pm

    please tell the link where i can download the official says error when i press the link in the steps

    • Kannan

      Apr 21, 2016 at 11:33 am

      You may search on XDA

  10. TijmenV

    Mar 21, 2016 at 1:49 am

    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)

    • TijmenV

      Mar 21, 2016 at 1:50 am

      Has anyone an idea how to repair this?

  11. devendra

    Mar 12, 2016 at 9:04 pm

    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.

    • tribal head

      Apr 23, 2016 at 4:48 pm

      same thing happnd to me

  12. Imran Saifi

    Feb 18, 2016 at 1:30 am

    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

    • Kannan

      Feb 19, 2016 at 4:43 pm

      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.

      • Sahil

        Apr 21, 2016 at 11:24 am

        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 ?

        • Kannan

          Apr 21, 2016 at 11:32 am

          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.

  13. James

    Nov 28, 2015 at 6:38 am

    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

  14. Star

    Oct 16, 2015 at 9:58 pm

    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.

  15. galo

    Oct 9, 2015 at 10:40 am

    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

  16. Joshua.F

    Sep 24, 2015 at 7:54 am

    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.

  17. Shirish

    Sep 16, 2015 at 4:32 pm

    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?

  18. Gopal

    Aug 16, 2015 at 3:00 pm

    Thanks Bro, I will go through the processes and tell you the result.

  19. Gopal

    Aug 13, 2015 at 1:02 am

    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.

    • Kannan

      Aug 13, 2015 at 8:30 pm

      You can use Backup & Restore option to restore your stock ROM.

      • Gopal

        Aug 16, 2015 at 12:18 am

        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.

        • Kannan

          Aug 16, 2015 at 11:51 am

          To get OTA update you need to relock your bootloader.

  20. Neo

    Jun 8, 2015 at 8:44 am

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

    • Kannan

      Jun 8, 2015 at 1:26 pm

      Most probably, because you cannot lock its bootloader once it is unlocked

      • Siddharth

        Jul 16, 2015 at 5:06 pm

        Sir, I think there is a command to lock it.

        mfastboot.exe oem lock

        Won’t that work?

        • Kannan

          Jul 16, 2015 at 8:42 pm

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

        • kishan kaushik

          Jan 18, 2016 at 4:16 pm


          • Kannan

            Jan 19, 2016 at 8:11 am

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

  21. aryan

    Jun 5, 2015 at 3:41 pm

    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

  22. Vicky

    May 30, 2015 at 11:31 am

    Official site is not opening


    May 11, 2015 at 11:07 pm

    what i have to do in case of

    fail to validate sistem image
    boot up failed

    thanks regards

  24. thangadurai

    Apr 28, 2015 at 6:47 pm

    help me,the above links doesn’t seem to work,pls upload another link

  25. kartik

    Mar 29, 2015 at 8:25 pm

    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.

    • Kannan

      Mar 30, 2015 at 12:11 pm

      downloaded the correct firmware for your region and try

  26. Ayush

    Mar 26, 2015 at 10:06 pm

    How to lock bootloader in moto g2 in lollipop
    plezzz help

    • BenG

      Sep 13, 2015 at 5:40 am

      fastboot oem lock

      It’s that simple 😛

  27. alejandro

    Mar 22, 2015 at 1:43 am

    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

    • Kannan

      Mar 22, 2015 at 8:09 pm

      Use correct firmware. If not helped, restore your firmware

  28. Joseph

    Jan 29, 2015 at 5:13 pm

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

    • Kannan

      Jan 30, 2015 at 7:56 pm

      Explain the real issue. You should be able to boot into recovery mode.

      • MANALAN

        Feb 11, 2015 at 11:18 am

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

  29. boniface pereira

    Jan 10, 2015 at 11:05 am

    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.

  30. Yogendra Singh

    Dec 24, 2014 at 9:02 am

    the upper link for offical binary is not working.. pleae share another link

  31. nill

    Dec 2, 2014 at 11:00 am

    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?

  32. Romulo Silva

    Nov 21, 2014 at 12:13 pm

    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?

    • Ronnie

      Dec 20, 2014 at 11:34 pm

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

      • silver2301

        Feb 4, 2016 at 2:13 am

        Mine too the rear camera is not working.

  33. Bijay

    Nov 20, 2014 at 1:25 am

    Thanks! I recovered my device.!

  34. Madhavan

    Nov 17, 2014 at 8:34 pm

    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

  35. Alonzo

    Nov 13, 2014 at 7:39 am

    Can someone please do a video

  36. hashir

    Nov 12, 2014 at 12:38 am

    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

  37. Eduardo

    Nov 1, 2014 at 7:56 pm

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

  38. Ashly

    Oct 25, 2014 at 12:04 pm

    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

    • Kannan

      Oct 25, 2014 at 12:10 pm

      Thanks for the correction!

  39. vansh thakur

    Oct 18, 2014 at 2:04 pm

    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

    • barry

      Oct 23, 2014 at 9:40 pm

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

      • barry

        Oct 23, 2014 at 9:51 pm

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

        • barry

          Oct 23, 2014 at 9:53 pm

          and also the same message for recovery cmd line

  40. Archies

    Sep 20, 2014 at 11:15 am

    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.

    • Kannan

      Oct 25, 2014 at 12:09 pm

      Thanks for the correction

      • Lakshya

        Jun 24, 2015 at 5:29 pm

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

Leave a Reply

Your email address will not be published. Required fields are marked *