Home Motorola How To Flash Motorola Phones Firmware Using mFastboot

How To Flash Motorola Phones Firmware Using mFastboot

install firmware on Motorola phones Via Fastboot:

Hello everyone, today we are going to teach you how to install the firmware for Motorola devices.

If you have the locked bootloader then you can only install the firmware with a version equal to or higher than the version that is already on the device, for example, if your device has Android 8.0 installed you can only install Android 8.0 or higher than 8.1, 9.0 in that case If you have the bootloader locked if you want to install a previous version or a downgrade, it is necessary to unlock the bootloader because if you try to install a previous version with the bootloader locked, there is a high chance of soft bricking.

Pre Requirements:

After downloading the files you should have these files in the folder.

You must now be wondering what this platform-tools file is, this file is a component that is part of the Android SDL and it includes the Android Debug Bridge (ADB) and Fastboot tools, so in a basic way, the platform-tools is ADB because ADB is a platform-tools tool.

Now with the files downloaded, let’s extract the firmware in the folder of your choice in our example let’s extract it to the same directory then extract the platform tools it will look like this:

Installing Motorola Phone Drivers:

Now let’s install the Motorola drivers, and here we have a note to make if you have the drivers already installed you don’t need to install them again and if you don’t have them you need to install them.


Now if you are not sure if you already have the drivers installed, a simple way to find out is, to double-click on the MotorolaDeviceManager_2.5.4.exe file to run it or right-click on the file and click on the menu that will appear click open, a window “User Account Control” will appear.

Asking if you want to give permission for the application to make changes to your computer, choose the “Yes” option.

Where you will get two options “Repair” and “Remove”. This indicates that you already have the drivers installed, so just click on the “cancel” button, now if a different screen appears then you need to install the drivers.

Move Firmware File To ADB Folder:

After installing the drivers, let’s get all the files that are inside the platform-tools folder and move or copy them to the folder where the firmware is.

After copying the files from the platform-tools folder, paste everything into the folder where the firmware is.

Ready, your computer is ready to perform the procedure, let’s prepare the cell phone now.

Reboot into Fastboot mode:

On your device, you will turn it on in fastboot mode so that you turn off the device if it is on and when it is off you will turn on the cell phone as follows, press the “Volume down” button and keep this button pressed and then press on the “Power” button (On/Off) and keep both buttons pressed for about 5 seconds and first release the “Power” button and then release the “Volume down” button and your device should be on the fastboot screen this screen can change from model to model, but here are some screen examples:


Installing Firmware:

Now with the cell phone in fastboot mode, connect the USB cable first to the computer and then connect the other end to the cell phone.

If you see on the screen of your device it should have among the information displayed on the screen a line with the following text “Connect USB Data Cable” After you connect the cable it should change to “Transfer Mode: USB Connected” This indicates that your computer has recognized your mobile phone.

Now we need the installation commands compatible with the firmware you downloaded, each firmware has its own commands and these commands are located in the flashfile.xml file, if you go to the folder where the firmware files are you will find this flashfile.xml file

If you open the file you will find the commands inside XML tags.

But to perform the installation we cannot use the commands like this inside the XML tags, we have to remove the tegs and leave only the commands it is possible to do this manually,

To use the tool, it is very simple, just copy the entire content of the flashfile.xml file and paste it into the flashfile.xml field and then click on the generate commands button, and the commands will be extracted from the tags, if you have doubts on the page a video tutorial explaining step by step how to use the tool.


Now that we have the commands, let’s open the Windows command prompt to do this process, go to the folder where the firmware is, and in the address bar of the folder type “cmd” and press the enter key.

When the command prompt opens, type the following command to make sure the cell phone is well connected to the computer, type “fastboot devices”, and you should get a return similar to this:

This number is the cell phone’s serial number, a sequence of numbers and letters may appear, so if a sequence of numbers and fastboot appears in front of the numbers, this means that your cell phone is well connected with the computer and ready to receive commands of installation.

Now just copy the commands from the flash file tool and paste them into the command prompt and the installation starts automatically.

Now, just wait for the process to finish, in terms of the time it will depend on some factors such as firmware size, the bigger the firmware the longer it will take to install, and also your computer if it is a little slow mark, it will take longer to finish, but At the end, the following message will appear “Press any key to continue”


When this message appears, just press any key, when you press a key your cell phone is to restart, but it may happen that the cell phone does not restart in this case type the following command at the command prompt “fastboot reboot” and press the enter key, ready now your phone will restart.

Now you can remove the USB cable from the cell phone and wait, as it is the first time it starts after installation, it may take a while, but if more than 10 minutes pass and the cell phone still shows the Motorola logo then press the “Power” button on the phone and keep it pressed until it restarts, now it should turn on normally just with a little delay if again it gets stuck for more than 10 minutes on the Motorola logo then it will be necessary to do a hard reset, it is common for the phone to need a hard reset after installation.

Alternative Methode:

Flash Motorola Phones Firmware Using mFastboot

Motorola Phones Firmware Using mFastboot

1. Download mfastboot.zip file.


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



Must Read:

5. In the mfastboot folder, open the ADB command file or command prompt.

6. Enter the 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, the tar.gz extension, you can flash it by using this command in your cmd flashall.bat /EU

Now, just enjoy your device, thank you very much for reading my article, I hope it was clear how to do the procedure, but if you have any issues with this try to Flash Motorola Stock Firmware With RSD Lite Tool

Previous articleHow To Flash Motorola Stock Firmware With RSD Lite Tool
Next articleMotorola One XT1941-3 Firmware File – Android 10 Q
Born as techie and was always focused on Android, ever since the HTC Dream was introduced. The abundance of options at his disposal in the open-source environment always seemed to pique his interest. "Blogger by choice, MBA by trade."