1. Download mfastboot.zip file.
BEFORE ANYTHING ELSE, MAKE SURE YOU PROPERLY INSTALL THE MOTOROLA USB DRIVERS TO YOUR PC.
2. Extract ‘Stock Firmware’ and mfastboot to the same folder you can easily locate. The firmware file comes in an xml.zip
3. Power off your phone Motorola phone.
4. Reboot your phone to bootloader or use this command to boot to bootloader
ADB REBOOT-BOOTLOADER
Must Read:
5. In the mfastboot folder, open the ADB command file or command prompt.
6. Enter these below commands one after the other to flash the firmware.
fastboot oem lock begin 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 system system.img_sparsechunk.6 fastboot flash system system.img_sparsechunk.7 fastboot flash system system.img_sparsechunk.8 fastboot flash modem NON-HLOS.bin fastboot erase modemst1 fastboot erase modemst2 fastboot flash fsg fsg.mbn fastboot flash bluetooth BTFM.bin fastboot erase cache fastboot erase userdata fastboot oem lock fastboot reboot
The command-line system.img_sparsechunks may differ. Confirm by checking the firmware folder. And at the last command, your phone will reboot.
The first booting may take time to boot. If the firmware is in, tar.gz extension, you can flash it by using this command in your cmd flashall.bat /EU