Stock firmware is very useful in many case like if you want to revert back to Stock Rom from any custom roms Like CM 13,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 4th 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 4th gen and Moto G4 plus 2016 all variants.
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 both for 2GB and 3GB variants.
#How to Install Stock Firmware of Moto G4 and G4 Plus
5.Then Connect your device with your computer via usb cable.
6. Now Type the following command One by one in the command prompt.
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
7.One done you have succesfully installed Stock rom in your moto G4 plus or unbrick your device