How to flash Xiaomi Mi A3: official and custom firmware

Why Xiaomi Mi A3 firmware requires a special approach

Xiaomi Mi A3 is a unique smartphone in the company’s lineup, released in 2019 under the program Android One. Unlike most Xiaomi devices, this model ran on β€œpure” Android without the proprietary shell MIUI. However, after the end of official support in 2022, many users faced the need for independent firmware – whether it is updating to fresh versions of Android or installing custom builds.

Mi's firmware process A3 It has several key features: firstly, due to participation in the program Android One unlocking the bootloader is easier than on standard Xiaomi devices (no binding to the Mi Account). GSI-Third, because of the specific architecture of the Snapdragon 665 processor, some custom firmware may not work smoothly, which is important to consider when choosing software.

In this guide, we will analyze all the current ways to install the Mi A3 firmware in 2026: from official updates via fastboot to install custom recovers and alternative OSes. Particular attention will be paid to typical errors such as ERROR: 7 in TWRP or hanging on the logo after firmware, as well as give recommendations for choosing stable assemblies for everyday use.

Preparation for firmware: what to do before the start

Before you start firmware, you have to do a number of things, and neglecting preparation can lead to a device being "bricked" or data loss, and first, backup.

Create a full copy of all the data from your phone, and even if you plan to flash the official version of the software, there is a risk of resetting.

  • πŸ“± Local backup: in the Mi settings A3 Go to the System β†’ Backup and save data to a memory card or Google cloud.
  • πŸ–₯️ Copying on PC: connect the phone to USB (in file transfer mode) and copy folders DCIM, Downloads, Documents and other important data.
  • ☁️ Cloud Services: sync your contacts, photos, and notes with your Google Account or Mi Cloud (if you’ve used it before).

Next, check the current firmware version and the status of the bootloader.

  1. Open Settings β†’ About the phone and write down the Android version and build number.
  2. Turn off the phone, then press Power + Volume down to log into Fastboot Mode.
  3. Connect the device to your PC and type in the command: fastboot getvar anti If you see anti: 0 in the answer, the bootloader is already unlocked. If anti: 1 or anti: 3, you need to unlock it.

A critical feature of the Mi A3 is that if you have previously upgraded to Android 11 or 12 via OTA, unlocking the bootloader can result in a data reset even when you install the official firmware.This is due to a change in Google's security policy for Android One devices.

πŸ“Š What kind of firmware do you plan to install on Mi? A3?
Official (stock)
LineageOS (Pixel Experience)
GSI-firmware
I don't know, looking for advice.

Unlocking the loader: step-by-step instructions

Unlocking the bootloader on the Xiaomi Mi A3 is easier than on most of the brand’s devices, but it still requires care. Unlike standard Xiaomi smartphones, you don’t need to link your Mi Account here, just use Google’s fastboot utility.

If your device was upgraded via OTA to Android 11/12, unlocking it will result in a complete Wipe reset of all data, including internal memory, due to the security requirements of Android One, if the phone was purchased with Android 10 or lower, you will not lose data.

To unlock, follow the following steps:

Install ADB and Fastboot on PC|Enable debugging on USB customized|Download the official firmware for Mi A3|Prepare the cable. USB (preferably original)|Charge your phone at least 50 times%-->

  1. Activate Developer Mode: Go to Settings β†’ About Phone and 7 times click on Build Number. Then go back to Settings β†’ System β†’ Developer Tools and turn on USB Debugging and OEM Unlock.
  2. Connect your phone to your PC: Use quality USB-Type the command: Adb devices If the device is displayed, proceed to the next step.
  3. Reboot to fastboot: Follow the command: adb reboot bootloader Or turn off the phone and pinch Power + Volume down.
  4. Unlock the bootloader: Enter the command: fastboot flashing unlock On the phone screen will appear a warning - confirm unlocking the volume and power buttons.

Once unlocked, the phone will automatically reset to factory settings. If that doesn't happen, do it manually via fastboot:

fastboot -w

This command will clear the data and cache partitions, which is necessary for the correct installation of the new firmware.

What if fastboot doesn’t see the device?
If the fastboot device command doesn’t show your Mi A3, check this: 1. Are Google USB Driver installed (you can download it in Android SDK). 2. Are you using a USB 2.0 port (some PCs have problems with USB 3.0 in fastboot). 3. Try another cable – cheap cables often don’t support fastboot data transfer. 4. Disable driver signatures in Windows (if you use this OS). 5. Reinstall Platform Tools from the latest Android SDK.

Installation of official firmware through Fastboot

The official firmware for Xiaomi Mi A3 is distributed as a fastboot archive (with the extension.tgz or.zip). Its installation is recommended if you want to return the phone to factory status or upgrade to the latest supported version of Android. The latest official firmware for the Mi A3 is Android 12 (released in 2022).

Download the official software from the sites:

  • 🌍 Xiaomi Firmware Updater – Firmware archive for all models.
  • πŸ”— Xiaomi official website – choose the Mi model A3 (laurel_sprout).

To install the official firmware via fastboot:

  1. Unpack the firmware archive into a separate folder, and inside you'll find files with.img extensions and a script. flash_all.bat (for Windows or flash_all.sh (for Linux/Mac).
  2. Connect your phone to fastboot (as described earlier).
  3. Start the firmware script: - For Windows: double click on flash_all.bat. - For Linux/Mac: At the terminal, perform: chmod +x flash_all.sh./flash_all.sh

It takes 5 to 10 minutes, and when it's done, it automatically reboots, and the first time it's turned on can take up to 15 minutes, which is normal.

πŸ’‘

If after firmware the phone is stuck on the Xiaomi logo for more than 20 minutes, try to force it to restart with the power + volume up for 10-15 seconds. If this does not help, repeat the firmware, after executing the command fastboot -w to clean the data.

Installation of custom firmware: TWRP and alternative OS

If the official firmware does not suit you, you can install custom β€” for example, LineageOS, Pixel Experience or ArrowOS. TWRP). Important: not all builds work on Mi stable A3 Due to the features of the Snapdragon 665 processor and camera drivers.

The most tested options for the Mi A3 in 2026 are:

FirmwareAndroid versionStabilityFeatures
LineageOS 20Android 13β­β­β­β­β˜†Good performance, but camera issues (no HDR).
Pixel ExperienceAndroid 13β­β­β­β˜†β˜†The interface is similar to the Pixel, but lags are possible when multitasking.
ArrowOSAndroid 13β­β­β­β­β˜†Balance between stability and functionality.
Havent OS (GSI)Android 14β­β­β˜†β˜†β˜†Experimental, a lot of bugs, but a fresh version of Android.

For custom firmware installation:

  1. Install. TWRP: Download the latest version TWRP for Mi A3 (codename β€” laurel_sprout) From twrp.me, fastboot: fastboot flash recovery. twrp-3.7.0_9-0-laurel_sprout.img Next Next post: Fastboot Reboot Recovery
  2. Backup: In TWRP, select Backup and save the Boot, System, Data, and Vendor partitions to the memory card.
  3. Clear the sections: Go to Wipe β†’ Advanced Wipe and mark Dalvik, Cache, System, Data, Vendor. Confirm the cleanup.
  4. Install firmware: Copy ZIP-file-file on the phone, in TWRP Select Install and specify the file. After installing the firmware, repeat the process for Gapps (if you need Google services).

⚠️ Attention: On Mi A3 Some custom firmware may not work properly with the module NFC Check the forum reviews before installing them. XDA Developers for a specific build.

Solving common errors in firmware

The Xiaomi Mi A3 firmware is often accompanied by errors, especially when working with custom builds.

1. Error "ERROR: 7" in TWRP

This error occurs when you try to install firmware that is incompatible with the current vendor or firmware version.

  • πŸ”§ Install the latest version of firmware for your model (you can download it on Xiaomi Firmware Updater).
  • πŸ”„ Try to flash OrangeFox Recovery instead TWRP β€” It works better with some custom firmware.
  • πŸ“ Edit the updater-script file in ZIP-Firmware archive by removing the line with version verification (for experienced users only!).

2. the phone does not turn on after firmware (brick)

If the device doesn’t respond to buttons and doesn’t load even in fastboot, try:

  • πŸ”Œ Connect your phone to charge for 30 minutes – sometimes helps with a discharged battery.
  • πŸ”§ Use the Mi Flash Tool to force the official firmware (select Clean All and Lock mode).
  • πŸ› οΈ If the phone is defined as Qualcomm HS-USB QDLoader 9008 will be required. EDL-Firmware (for experienced users only!).

3.The camera or mobile network is not working

Camera or modem problems are often due to vendor incompatibility.

  • πŸ“± Make it official. vendor.img last-stack firmware.
  • πŸ”„ Try firmware with a different core (e.g. ArrowOS instead of Pixel Experience).
  • πŸ”§ Install a patch for the camera (for example, ANX Camera for GSI-firmware).

⚠️ Note: If after firmware stopped working sensors (gyroscope, accelerometer), most likely, was installed firmware for another model (for example, for Mi). A2 instead of Mi A3). In this case, you need to return the official software via fastboot.

Firmware through EDL: the last measure in brique

EDL-Emergency Download Mode is a Qualcomm service mode that allows you to flash your phone even if it does not load into fastboot. A3 entrance EDL possible in two ways:

  • πŸ”Œ Hardware method: closing contacts on the board (requires disassembly of the phone).
  • πŸ’» Software method: via the command fastboot oem edl (does not work on all versions of the bootloader).

For firmware in EDL you will need:

  1. The Mi Flash Tool (download from the official website)
  2. Firmware in.mbn or.elf format (usually bundled with official archives).
  3. Qualcomm QDLoader Driver (sets automatically when you connect your phone to EDL).

Firmware instructions:

  1. Connect your phone in EDL mode (it should be defined as Qualcomm HS-USB QDLoader 9008).
  2. Start the Mi Flash Tool, select the folder with the firmware.
  3. At the bottom of the window, select Clean All (if you want to save data, clean all and lock!).
  4. Press Flash and wait until it is completed (the process will take 5-15 minutes).

Important: Firmware via EDL will reset IMEI and serial number if you choose clean all and lock mode. You can restore them only with the help of engineering menus or specialized utilities (for example, SN Write Tool).

FAQ: Answers to Frequent Questions

Can I flash the Mi A3 without unlocking the bootloader?
No, installing any unofficial firmware requires an unlocked bootloader, but official updates via fastboot or OTA can also be installed with a locked bootloader if they are signed by Xiaomi.
Which firmware is best for the Mi A3 in 2026?
For stable work, we recommend: the official Android 12 - if you want maximum stability. LineageOS 20 - if you want Android 13 with minimal bugs. Pixel Experience - for the interface as on Google Pixel (but possible lags). Avoid firmware on Android 14 - they are still raw for this model.
How to return the official firmware after custom?
To get back to stock firmware: Download the official fastboot archive for Mi A3. Unpack it and launch it. flash_all.bat (Windows or flash_all.sh (Linux/Mac). If your phone doesn't load, use the Mi Flash Tool in clean all mode. After you run the firmware, the bootloader will remain unlocked. To lock it back, do: fastboot flashing lock!
Why is the mobile network not working after the firmware?
The problem is usually related to incompatibility of modem or vendor partitions. Solutions: Sweep the official vendor.img and modem.img from stock firmware. Check the APN settings (sometimes they are reset after firmware). Install firmware that supports your region (e.g. EEA for Europe).
Can I use Mi A3 without a computer?
Theoretically yes, but with serious limitations: OTA-Updates are installed without PC through Settings β†’ System system β†’ System updates. Custom firmware can be stitched through TWRP, If it's already installed, but you still need a PC to install the backs first. There are applications like Flashify, but they require root rights and they don't always work on Mi. A3. For reliability, we recommend using a computer.