[Guide] Download and Install stock ROM in Moto G5 Plus and fix Bootloop

So far, we have had the guides for you to unlock the bootloader in Moto G5 Plus or how to install TWRP on Moto G5 Plus and today, we are going to show you how to download and Install stock ROM in Moto G5 Plus. So if you probably have already tried a custom ROM on the Moto G5 Plus, let us tell you how to revert to stock ROM in Moto G5 Plus and fix bootloop.

Now the reason that most of us actually shift back to stock ROM is that the custom ROMs are buggy most of the times and in any case, we recommend sticking to stock ROMs in any device that you use. And while flashing ROMs, most of the time, we make petty mistakes which lead to bootloops. So we are going to share with you, how to Install stock ROM in Moto G5 Plus and fix bootloop.

Install stock ROM in Moto G5 Plus


We are not to be held responsible for any of the damage that occurs to your device during this process. You are yourself responsible for any damage done (if) to your device during this process.


  • Make sure your device is charged above 80%.
  • We recommend creating a backup of all your important files before beginning with this process.


  1. Moto G5 Plus Stock ROM
  2. Motorola Drivers
  3. Minimal ADB Fastboot Drivers

How to Install Stock ROM in Moto G5 Plus:

  1. Download Moto G5 and G5 Plus Stock Firmware from above (in download section).
  2. Install Motorola Driver and ADB Fastboot Driver on your PC.
  3. Now extract stock firmware in ADB Fastboot folder.
  4. Now, turn off your device and boot into bootloader by pressing volume down button +power button simultaneously.
  5. Now, connect your device to your PC via a USB Cable.
  6. Open a command prompt window and type the following commands:

mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash dsp adspso.bin
mfastboot flash oem oem.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot erase clogo
mfastboot oem fb_mode_clear
mfastboot reboot

Congrats, you have completed the process to Install stock ROM in Moto G5 Plus and successfully fixed the bootloop.

About Taha Maknoo

One passion that drives me- blogging. I'm a passionate student and blogger and usually spend most of my time over content writing and getting more information about the new tech launched to keep everybody updated. I'm a self confessed leaner and a tech enthusiast as I've the enthusiasm and the will to make everybody aware of the latest innovations in the world and new softwares released each day.

Leave a Reply!