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. Now, power off your Xiaomi Mi A3 completely.
  7. 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
  8. Connect the phone to the PC while it is in Fastboot Mode.
  9. 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
  10. 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.


  1. Hello I believe everything was successful however I am stuck on the Android One screen and when I tried the command to switch to slot a I get a message that fastboot is not a recognized as an internal or external command

    1. Jeremy, you need to open the command-line window inside the same directory where the fastboot.exe binary is present. I have covered a tutorial to open Fastboot/ADB command window. Please follow the instructions in the tutorial and then execute the .\fastboot set_active a command while your Mi A3 is in Fastboot mode (and not on the Android One screen).

  2. Hi, Greetings..

    I just came here searching a better simpler way to flash my Mi A3 with a stock ROM.
    This post helps me a lot. Thanks for your works.
    But, i have some doubts, for which reason I’m wanting to “downgrade my Android 10″ to Pie.

    I’ve noticed a consistent battery drain after I’ve updated to 10 just recently (which i hadn’t given permission to install, but accidently updated, seeing a message stating to Install May security patch)

    But, i strongly believe the battery drains a lot faster now.
    Is there any work around..?

    It was like the battery percentage was almost frozen when i was on Pie, and made me wonder to the extent that the phone might never deplete on battery…

    But now I’m very much worried.

    I’ve read above, reflashing to Android 9 would break the sensors etc.
    I don’t want to get into that trouble also..

    Hence, kindly suggest an idea for my battery drain issue.

    Because i have another device and ” i had taken this solely for the CAMERA “

    1. Hi Amal. Thank you for being in touch and for those kind words, you’re very welcome.

      Battery drain on Android 10 isn’t a known bug, which means it could be just specific to your unit. Have you tried performing a factory reset? A factory reset could fix the most unusual software problems like lags, or battery drains like in your case here.

      Before you attempt to downgrade, I think it would be wise to consider a factory reset as an option. Of course, this would erase all the data on your phone, so, make sure that you take a backup of all your important data like photos, videos, music, documents, and everything stored on the phone’s internal storage.

      Instructions for performing a factory reset on your Mi A3 could be found on this page.

      As for the issue with sensors, I recently covered an article on how to fix it. However, that issue is primarily caused only when if you have installed and used TWRP custom recovery in the past. If not, then I don’t think downgrading should pose any problems to the sensors in normal cases.

      Please do let me know how if goes.

    2. Hi Dhananjay,

      Thank you so much for your reply. As of now i have a huge data of photos and videos mostly 4k on my device and a reset need to transfer those to my PC.
      I’m a part Photographer, so i mainly depend on this device.
      And i really appreciate how it handles every shots perfectly.
      Added to that, i noticed recently the stock camera has been updated with more PRO features like, focus peaking etc.. and there’s an ev control with others.
      Overall I’m satisfied with the camera performance with this update.
      My only concern being the battery drain.

      Let me see in future, if the case worsens, I’d consider a master reset and if that doesn’t work, I’ll try downgrading to Android 9.

      Thanks for your time and help 😊👍

    3. You’re welcome Amal. I hope it resolves on its own. Please keep me posted if you try any of those things. Good luck!

  3. Thank you! All the others tutorials were confusing and yours clarified every doubt I had. The crucial thing for me was when you said that we had to extract the ROM, and then extract again, before copying it to the platform-tools. I was stuck on it, because no one explained step by step as you did. So again, thanks for helping the beginners, and for taking your time answering the comments!


    1. Hi Rodrigo. It makes me so happy reading your comment! I believe the small details always matter because people are often new to some things.

      I am glad you had it working! Thanks for such kind words.

  4. Hi Dhananjay
    This guide is different from the other where we install the latest stock firmware (3 methods), isn’t? Here I wonder, is there any need to update with the latest stock as well or not?

    1. Hi Fanis. Yes, it’s different because we are only using the official fastboot images. Unlike some unofficial fastboot ROMs, the official ones include a flashing script which makes the job a whole lot easier, as shown in the instructions.

      As far as I know, Xiaomi’s Anti-Rollback protection doesn’t apply to the phone, you can flash any fastboot ROM of your choice. But, it’s still recommended to install the latest one.

  5. Can I use this same set of instructions, merely change out the boot image or recovery image, and load a custom OS instead of the stock version?

    1. Hi Mathew. If you want to do that, please start here instead.

      Follow the instructions to install TWRP recovery on the phone. Once you have that, you can easily install a custom ROM and further root your phone.

  6. Hello,
    First, thanks for your free training. I have downgraded from Android 10 to Android 9, but those aforementioned sensors have stopped working. How can I fix that?

    1. Hi Hamid. This is primarily caused if your had TWRP installed on your phone in the past. Please check out the fix here.

  7. Your last important note means that we must reinstall the stock image in the slot a, or simply execute the command above and the phone will automatically reboot into the system (OS)?

    1. Hi Fanis. No, you do not have to flash the stock image, it has already been flashed. You just have to execute that command only if your phone fails to enter the OS after the flashing is complete.

Leave a Reply

Comment Policy: We welcome relevant and respectable comments. Only input your real first name and valid email address if you want your comment to appear. Read our comment policy fully before posting a comment.