[Guide] How to Flash Stock Firmware of Moto G 3rd Gen 2015 [All Variants]

Today I will tell you how can you flash Stock Rom or Firmware of Motorola Moto G 3rd Gen 2015 that comes with android lollipop 5.1.1. in 1GB ram ,8GB internal and 2GB ram ,16GB internal variants.You can download stock Factory image of all variants of Moto G 3rd Generation.Thanks to lost101 XDA member for uploading Stock Firmware of All variants of Moto g3 gen 2015.
how-to-flash-stock-firmware-of-Moto-g-3rd-gen

Stock firmware is very useful in many case like if you want to revert back to Stock Rom from any custom roms Like CM 12,Pac rom,Resurrection remix  remix,Slim Lp and many more or is you faced any bootloop while flashing any custom roms or if you forget to take that stock nandroid backup while flashing any rom.

This will also help in unbricking your Moto G 3rd gen easily if you bricked it by flashing any wrong thing.So lets start the step by step guide to Flash Stock rom in Moto G 3rd gen.

Warning The author is not responsible, if you damage or brick your device. Do it at your own risk and follow the instructions properly.

Note:Only flash The Stock Rom of your device Variant.

►Included stock Firwmares are of XT1540  , XT1541 , XT1542 , XT1543 , XT1544 , XT1548 , XT1550 Motorola Moto G 3rd generation .
►Included both for 1GB and 2 GB variants.

 

#How to Install Stock Firmware of Moto G 3rd gen

1.Download Motorola Drivers ,minimal Adb fastboot Drivers and Download Moto G 3rd gen Stock Firmware from bottom of this page.
2.Now install Motorola Driver and ADb Fastboot driver on the desktop.Then extract stock firmware in the ADB fastboot folder.
3.Now Press Shift and Right click any where in the ADB fastboot folder and Click on open command prompt here.
4.Now Turn Of your device and turn on by pressing volume down button and Power button simultaneously until you boots into Bootloader as like below image.

 

5.Then Connect your device with your computer via usb cable.

6. Now Type the following command One by one in the command prompt.

NOTE: system.img_sparsechunks may differ in number + name – Always check contents of folder you’re working with.

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 reboot

7.Done! you have successfully Flash Stock firmware in your Moto G 3rd gen.

See also:

#Download

1.Download Stock Firmware of Moto G 3rd gen [All variants]

93 thoughts on “[Guide] How to Flash Stock Firmware of Moto G 3rd Gen 2015 [All Variants]”

  1. i was followed your commadns but it was comming like that on my motog3 device due to bootloupe after an update
    .
    .

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash partition gpt.bin
    target reported max download size of 268435456 bytes
    error: cannot load 'gpt.bin': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash motoboot motoboot.img
    target reported max download size of 268435456 bytes
    error: cannot load 'motoboot.img': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash logo logo.bin
    target reported max download size of 268435456 bytes
    error: cannot load 'logo.bin': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash boot boot.img
    target reported max download size of 268435456 bytes
    error: cannot load 'boot.img': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash recovery recovery.img
    target reported max download size of 268435456 bytes
    error: cannot load 'recovery.img': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash system system.img_spar
    sechunk1
    target reported max download size of 268435456 bytes
    error: cannot load 'system.img_sparsechunk1': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash system system.img_spar
    echunk2
    target reported max download size of 268435456 bytes
    error: cannot load 'system.img_sparechunk2': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash system system.img_spar
    sechunk3
    target reported max download size of 268435456 bytes
    error: cannot load 'system.img_sparsechunk3': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash modem NON-HLOS.bin
    target reported max download size of 268435456 bytes
    error: cannot load 'NON-HLOS.bin': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot erase modemst1
    erasing 'modemst1'…
    OKAY [ 0.062s]
    finished. total time: 0.085s

    C:UsersAdminDesktopMfastbootMfastboot>fastboot erase modemst2
    erasing 'modemst2'…
    OKAY [ 0.021s]
    finished. total time: 0.022s

    C:UsersAdminDesktopMfastbootMfastboot>fastboot flash fsg fsg.mbn
    target reported max download size of 268435456 bytes
    error: cannot load 'fsg.mbn': No error

    C:UsersAdminDesktopMfastbootMfastboot>fastboot erase cache
    erasing 'cache'…
    OKAY [ 0.119s]
    finished. total time: 0.120s

    C:UsersAdminDesktopMfastbootMfastboot>fastboot erase userdata
    erasing 'userdata'…
    OKAY [ 0.975s]
    finished. total time: 0.976s

    C:UsersAdminDesktopMfastbootMfastboot>fastboot reboot
    < waiting for device >
    rebooting…

    finished. total time: 0.007s

    C:UsersAdminDesktopMfastbootMfastboot>
    .
    .please help what should i do now

    Reply
  2. com dia amigo eu estou tendo problemas pra instalar a rom do xt1543 pois ja baixei 4 rons do site que voçe indicou e nenhuma deu certo todas da erro …..'failed to validate system image' sera que vc pode mi ajudar ….obrigado …

    Reply
  3. eaí cara, o que acontece é o seguinte, eu perdi a senha do meu e-mail e ta pedindo o meu e-mail cadastrado da primeira vez, como proceder?
    Tem que desbloquear o bootloader? Porque como não tenho acesso as opções do celular, não da pra ativar a opção lá de desenvolvedor e tal…

    Reply
  4. eu tentei normalmente deu isso:
    C:UserstutuoDownloadsCompressedNova pastaadb-fastboot-latest_win_linux>fas
    tboot flash boot boot.img
    target reported max download size of 268435456 bytes
    sending 'boot' (16384 KB)…
    OKAY [ 0.542s]
    writing 'boot'…
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 1.108s

    Reply
  5. Thank you so much!!! My US Cellular Moto 3 3rd gen couldn't connect to the LTE network so I had to re-flash. This post worked great!
    One observation: The first line is wrapped on my screen, resulting in:
    fastboot flash partition gpt.bin fastboot flash bootloader bootloader.img
    Also, if you're confident the lines can be pasted in multiples 🙂

    Reply
    • fastboot flash partition gpt.bin
      target reported max download size of 268435456 bytes
      sending 'partition' (32 KB)…
      OKAY [ 0.006s]
      writing 'partition'…
      (bootloader) Preflash validation failed
      FAILED (remote failure)
      finished. total time: 0.432s

      I have same problem product variant osprey XT1550 16GB P2B
      Locked boot loader, can't unlock due to "Allow OEM Unlock" not being checked. Now can't flash any gpt partition files or system images.

      Pls Help me if the problem is resolved..

      Reply
  6. Man, I just unlocked the bookloader and my phone got on normally and bootloader is unlocked.
    Now i installed TWRP.

    Til here everything is okay, but as soon as i tried to reboot in system through TWRP it asked me to root my device, so i swiped and rooted it and from that moment my phone is hanged on that bootleader screen which says "WARNING BOOTLOADER UNLOCKED".

    Please let me know if by flashing stock firmware will my problem be solved?
    BTW I'm having Indian XT1550 model of G3.

    Reply
  7. C:adb>fastboot flash system system.img_sparsechunk.0
    sending 'system' (232264 KB)…
    OKAY [ 7.288s]
    writing 'system'…
    (bootloader) Invalid signed image
    (bootloader) Preflash validation failed
    FAILED (remote failure)

    Reply
  8. I rooted my moto g 2015 xt1550(osprey) and tried few Custom ROM's.
    Then I switched back to stock rom to marshmallow with the help of the file which was provided by lost101 . I did exactly how it was written every thing went well, my cell booted normally. Then I replaced the recovery by TWRP file. After that I installed SuperSU file from TWRP and when i restarted in system it got stuck on boot loop.
    1. I tried installing ROM again and TWRP that time it started well but as i install SuperSU it gets stuck
    2. When i install TWRP and just boot after some time wen i try switching to TWRP it says no command.

    PLZ help i really want my root privileges back. I am unable to understand how to resolve this.

    Reply
  9. I min a bootloop or my device is bricked.
    When I flash commands it says
    Preflash validation failed
    FAILED .
    I ignored and started putting next command at the end my device powered off but not rebooted.
    Please help me to prevent preflash validation… Please help me I am in a really bad situation.
    Thanks .

    Reply
  10. This is what I got. please help
    C:UsersKarlDesktopMfastboot>fastboot flash partition gpt.bin
    target reported max download size of 268435456 bytes
    sending 'partition' (32 KB)…
    OKAY [ 0.007s]
    writing 'partition'…
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 0.412s
    C:UsersKarlDesktopMfastboot>fastboot flash bootloader bootloader.img
    target reported max download size of 268435456 bytes
    sending 'bootloader' (2546 KB)…
    OKAY [ 0.087s]
    writing 'bootloader'…
    (bootloader) flashing sbl1 …
    (bootloader) flashing aboot …
    (bootloader) flashing tz …
    (bootloader) flashing hyp …
    (bootloader) flashing rpm …
    OKAY [ 1.502s]
    finished. total time: 1.595s
    C:UsersKarlDesktopMfastboot>fastboot flash logo logo.bin
    target reported max download size of 268435456 bytes
    sending 'logo' (917 KB)…
    OKAY [ 0.036s]
    writing 'logo'…
    OKAY [ 0.054s]
    finished. total time: 0.094s
    C:UsersKarlDesktopMfastboot>fastboot flash boot boot.img
    target reported max download size of 268435456 bytes
    sending 'boot' (16384 KB)…
    OKAY [ 0.540s]
    writing 'boot'…
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 1.073s
    C:UsersKarlDesktopMfastboot>fastboot flash recovery recovery.img
    target reported max download size of 268435456 bytes
    sending 'recovery' (16484 KB)…
    OKAY [ 0.539s]
    writing 'recovery'…
    OKAY [ 0.770s]
    finished. total time: 1.315s
    C:UsersKarlDesktopMfastboot>fastboot flash system system.img_sparsechunk.0
    target reported max download size of 268435456 bytes
    sending 'system' (262141 KB)…
    OKAY [ 8.346s]
    writing 'system'…
    (bootloader) Invalid signed image
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 8.799s
    C:UsersKarlDesktopMfastboot>fastboot flash system system.img_sparsechunk.1
    target reported max download size of 268435456 bytes
    sending 'system' (260366 KB)…
    OKAY [ 8.293s]
    writing 'system'…
    (bootloader) Invalid signed image
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 8.336s
    C:UsersKarlDesktopMfastboot>fastboot flash system system.img_sparsechunk.2
    target reported max download size of 268435456 bytes
    sending 'system' (262143 KB)…
    OKAY [ 8.311s]
    writing 'system'…
    (bootloader) Invalid signed image
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 8.385s

    Reply
  11. Can you please help me i did everything right but my phone doesn't boot anymore, it hangs at the warning bootloader unlocked screen. Please help it's my personal phone…….

    Reply
  12. I allready solved the problem, I looked up an other tutorial earlier which sad motoboot instead of just boot. I feel very dump now……. thanks it worked for me after all

    Reply
  13. Ok I did this twice downgrading to 511 and it restarted in 60… I got the prevalidation error and then a couple other comands said OKAY but mentioned the preflash validation fail… 1540 Moto g 3

    Reply
    • C:UsersKarlDesktopmotog_firmware>fastboot flash modem NON-HLOS.bin
      target reported max download size of 268435456 bytes
      sending 'modem' (36940 KB)…
      OKAY [ 1.187s]
      writing 'modem'…
      OKAY [ 0.585s]
      finished. total time: 1.777s

      C:UsersKarlDesktopmotog_firmware>fastboot erase modemst1
      erasing 'modemst1'…
      OKAY [ 0.020s]
      finished. total time: 0.022s

      C:UsersKarlDesktopmotog_firmware>fastboot erase modemst2
      erasing 'modemst2'…
      OKAY [ 0.015s]
      finished. total time: 0.017s

      C:UsersKarlDesktopmotog_firmware>fastboot flash fsg fsg.mbn
      target reported max download size of 268435456 bytes
      sending 'fsg' (2031 KB)…
      OKAY [ 0.074s]
      writing 'fsg'…
      OKAY [ 0.056s]
      finished. total time: 0.135s

      C:UsersKarlDesktopmotog_firmware>fastboot erase cache
      erasing 'cache'…
      OKAY [ 0.019s]
      finished. total time: 0.021s

      C:UsersKarlDesktopmotog_firmware>fastboot erase userdata
      erasing 'userdata'…
      OKAY [ 0.061s]
      finished. total time: 0.064s

      C:UsersKarlDesktopmotog_firmware>fastboot erase customize
      erasing 'customize'…
      OKAY [ 0.017s]
      finished. total time: 0.019s

      C:UsersKarlDesktopmotog_firmware>fastboot erase clogo
      erasing 'clogo'…
      OKAY [ 0.027s]
      finished. total time: 0.029s

      C:UsersKarlDesktopmotog_firmware>fastboot oem fb_mode_clear

      OKAY [ 0.006s]
      finished. total time: 0.008s

      C:UsersKarlDesktopmotog_firmware>fastboot reboot
      rebooting…

      finished. total time: 0.007s

      C:UsersKarlDesktopmotog_firmware>

      What am I doing wrong?

      Reply
  14. I'm facing some different problem, i got OTA update for android 6.0 on moto g3 (xt1550) i installed it and my phone is stuck in bootloop, then i tried your method, again and again i'm flashing android 6.0 but everytime it stuck in bootloop.
    I cant even unlock bootloader because usb debugging is disabled so can you tell me is there any other way to flash stock rom without getting into bootloop. THANK-YOU…

    Reply
  15. Right now I am using cm12.1, thinking of switching to stock 6.0 Now, i wanted to know 1) whether i will get future OTAs after flashing stock 6.0 and 2)which recovery it will be after flashing stock twrp or stock ?

    Reply
  16. Right now I am using cm12.1, thinking of switching to stock 6.0 Now, i wanted to know 1) whether i will get future OTAs after flashing stock 6.0 and 2)which recovery it will be after flashing stock twrp or stock ?

    Reply
  17. I DID ALL THE STEP U SAID NO ERROR FOUND IN ANY STEP BUT STILL MY MOBILE IS NOT BOOTING. ERROR IS "FAILED TO VALIDATE SYSTEM IMAGE, ERRROR FAILED TO PASS VALIDATON, BACKUP TO FASTBOOT"
    FASTBOOT REASON: FALL-THROUGH FROM NORMAL BOOT MODE

    Reply
    • It's weird to say but, yesterday I was using "kingroot", after an hour of doing some processes, my Moto G 2015 with 1gb ram, 16gb and dual-sim started to restart. Few minutes before that, I could see that the phone was to slow, so I decided to restart it. Due to that as I said my Moto G3 started to restart but there were two problems. My net and my wi-fi are not working. This morning I decided to hard reset, everything was okay. No bootloop or brick, but my net and wi-fi still not working.
      I don't know what to do. I'll try to install stock rom lollipop and see what happens

      Reply
  18. Awesome! Worked perfectly. Although i had to change the commands to lowercase as it didn’t recognize them in uppercase. Thanks 🙂

    Reply
  19. Hey there, my phone still looking better with these steps, but hen it boots its still stock on the “warning bootloader unlocked” and then it says “erasing…” and it loops these two messages?

    do you know what should I do?

    Thank you very much for any help!!

    Reply
  20. I’m having trouble unlocking my bike g3 xt1541 8g rom because I found all pack are not 2016 and can enable developer mode
    I need to find the rom that is to pack 2015

    Reply
  21. Thank you!

    The gpt.bin step didn’t work. But the rest of your steps got me out of bootloader loop and back to the way my Moto G 3rd Gen was when I bought it.

    I had to tried to root it. I unlocked the phone and installed TWRP successfully but SuperSU broke my phone somehow.

    Reply
  22. bro u are like god to me my phone was stuch at bootloop and i tried it in your way and it worked and please tell can we install OTA updates now

    Reply
  23. fastboot flash partition gpt.bin
    target reported max download size of 268435456 bytes
    sending ‘partition’ (32 KB)…
    OKAY [ 0.006s]
    writing ‘partition’…
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 0.432s

    Reply
  24. after all the steps the phone reboot and just doing the erasing. then again bootloader restarts and again it starts erasing. please help me

    Reply
  25. i did everything in the procedure
    After reboot it shows
    Start Up Failed:
    Your device didn’t start up successfully.
    Use the Software Repair Assistant on computer to repair your device.
    Connect your device to your computer to get the Software Repair Assistant.

    And it shows an error:
    Fastboot reason: UTAG “bootmode” configured as fastboot
    usb connected
    failed to validate system image
    Error :Failed to pass validation. backup to fastboot.
    boot up failed

    Reply

Leave a Comment

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