Download and Install Xiaomi Mi A3 Stock Firmware to Unbrick, Unroot, and Fix Software Issues

Download and Install Xiaomi Mi A3 Stock Firmware

Through this post, you can download Xiaomi Mi A3 stock firmware fastboot images. We will also guide you on how to install Xiaomi Mi A3 stock firmware to unbrick, unroot, and fix software-related issues. This guide is compliant with both, the Global and European variants of the Mi A3.

Restoring the stock firmware (Also referred to as “Stock ROM”) on your Xiaomi Mi A3 could come in handy in various situations. First and foremost, it is the most important thing to do when selling your phone or submitting it for a warranty claim (Also known as “RMA”). In the case of the Mi A3, Xiaomi will not cover the device under warranty if it has third-party firmware or mods (like Magisk Root, TWRP, Xposed, etc) installed. This is why you must always make sure to restore the stock firmware on your Mi A3 before you submit it for a warranty claim.

Apart from that, there are several other situations where you might find the need to roll back your Xiaomi Mi A3 to stock firmware. For instance, you don’t like the custom ROM that you installed and want to go back to the stock firmware. Or you rooted your Mi A3 and installed TWRP on it to flash mods. Not to forget, if you want to receive official OTA updates (monthly security updates or major Android version updates) from the Xiaomi, then you must have the stock firmware installed on your Mi A3 (with or without root, that is another matter).

In either of the above situations, simply performing a factory reset wouldn’t do the job and you will need to manually install stock firmware on your Xiaomi Mi A3. Installing the stock firmware (fastboot image) is quite easy and doesn’t require any special tools like the Mi Flash Tool (although you can use it), as in the case on other Xiaomi/Redmi devices running MIUI. The instructions in this guide will take you through the steps in detail.

Table of Contents

Before You Begin

Before you begin following the instructions below, there are a couple of things that you should do to ensure that safety of your data, as well as for

Make sure that you fulfill all the requirements stated below before you head to instructions to restore/install Xiaomi Mi A3 stock firmware.

  • Take a backup first! Restoring the stock firmware will erase all downloaded apps, along with their associated data, system settings and more. Although the procedure mentioned below will allow you to optionally save the data stored on the internal storage. However, if you’re planning on performing a full restore, all the data on the internal storage will be wiped too. In either case, we strongly recommend you to take a full backup of all the data stored on your Mi A3.
  • Charge your Xiaomi Mi A3 to a sufficient battery level to avoid any sudden shutdowns during the firmware restoring instructions.
  • Download the latest USB drivers for your Xiaomi device and install them on your PC.
  • Install an archive utility on your PC like 7Zip or WinRAR.
  • The process of restoring the stock firmware involves using ADB and fastboot. So, download the latest Android SDK platform-tools package and extract it to a suitable location on the PC (example: ‘C:\platform-tools‘).

Download Xiaomi Mi A3 Stock Firmware (Fastboot Images)

The stock firmware for Mi A3 (codename: laurel_sprout) is available as “fastboot images”, which includes image (.img) files of various partitions of the device. We strongly recommend that you download the latest version of the fastboot image linked below for your specific variant.

For Global Variant

For European Variant

Instructions to Install Stock Firmware on Xiaomi Mi A3

  1. Download the stock firmware fastboot image for Xiaomi Mi A3.
  2. Extract the downloaded package (.tgz) to a suitable location on your PC.
  3. Next, extract the resultant tar package on the PC.
  4. You shall now have a folder containing the firmware’s partition image files and flashing scripts.
    Extract Xiaomi Mi A3 Stock Firmware on the PC
  5. Move all these files to the folder on the PC where the Android SDK platform-tools are installed (Example: “C:\platform-tools”).
    Move Mi A3 Stock Firmware Files to Android Platform-tools Folder
  6. Hold the SHIFT key of your keyboard and right-click on any empty space inside the folder.
  7. Select the ‘Open PowerShell window here’ option from the contextual menu that appears on the screen.
    Install Xiaomi Mi A3 Stock Firmware - Open PowerShell in Windows
  8. Now, power off your Xiaomi Mi A3 completely.
  9. Hold the Volume Down and Power buttons together to boot your phone into Fastboot Mode.
    Enter Fastboot Mode on Xiaomi Mi A3 to Install Stock Firmware
  10. Connect the phone to the PC while it is in Fastboot Mode.
  11. Now, there are three different types of flashing scripts available, which are as follows:
    1. flash_all.bat/sh: This will flash the stock firmware and erase the internal storage
    2. flash_all_except_data_storage.bat/sh: This will flash the stock firmware while preserving the data on the internal storage
    3. flash_all_lock.bat/sh: This will flash the stock firmware, erase the internal storage, and relock the phone’s bootloader
  12. Simply double-click on the desired flashing script to install/restore stock firmware on Xiaomi Mi A3.
    Installing Xiaomi Mi A3 Stock Firmware

The flashing process could take a few minutes to complete and the progress will be shown in the PowerShell windows. During this time, make sure that you do not disconnect the phone from the PC or disturb the USB connection.

Once the flashing process finishes, your Xiaomi Mi A3 will automatically reboot into the system (OS). You can now close the PowerShell window on the PC. The stock firmware has now successfully been restored on your phone. Once your phone boots, you can set it up by following the on-screen instructions.

Important Note:

If the device fails to boot into the OS and keeps bootlooping, connect it to the PC while in fastboot mode, and execute the following command:

.\fastboot set_active a

The reason is that when you flash the stock firmware, the “system.img” installed to the “b” slot/partition is actually a dummy image. And so the device fails to boot. To fix this you need to set the phone’s active slot to “a” (see the command above), where the actual system.img has been installed.

That’s it! This was our guide on how to install Xiaomi Mi A3 stock firmware and restore it to unbrick, unroot, or fix software related issues. If you have any questions regarding the instructions or the process on a whole, feel free to let us know via the comments.