Xiaomi Mi A3 firmware via Fastboot: a detailed guide with unlocking the bootloader

Xiaomi Mi A3 is one of the few smartphones of the brand that runs on β€œclean” Android One instead of the proprietary shell MIUI. This gives users a unique opportunity to receive updates directly from Google, but at the same time complicates the process of flashing. If you are faced with freezes, system errors or just want to install custom firmware, firmware through Fastboot will be a reliable solution.

Unlike MIUI devices, where the process is often automated via the Mi Flash Tool, the Mi A3 requires manual preparation: unlocking the bootloader, selecting a compatible firmware and executing commands accurately. In this article, we will discuss the entire process from A to Z - taking into account the nuances of Android One, the characteristics of drivers and the typical errors that can occur, you will learn how to avoid "brick" (turning the phone into a "brick"), what tools you will need, and where to download official / unofficial firmware.

Important: Mi A3 It has a unique architecture – Snapdragon chipset 665 section dynamic_partitions, What's going on with the firmware? MIUI, Be prepared for the difference!

Why Fastboot and not Recovery?

Xiaomi Mi A3 users have two main ways to flash the device: through Recovery (like TWRP) or Fastboot.The first method seems easier, but for the Mi A3, it is often impossible because of:

  • πŸ”’ Blocked bootloader – by default on Android One it is closed and unlocking requires official permission from Xiaomi.
  • 🚫 Lack of stability TWRP β€” Most of the assemblies of custom recavΓ©rie for Mi A3 They are error-proof or do not support data encryption.
  • πŸ“¦ Firmware restrictions – official updates for Android One are unpacked in.zip format, but you can install them only through Fastboot.

Fastboot in this case becomes a universal solution, because:

  • βœ… It works even with a blocked bootloader (after unlocking).
  • βœ… Allows you to flash both official and custom firmware (for example, LineageOS or Pixel Experience).
  • βœ… Minimizes the risk of errors by directly accessing memory.

However, the method has disadvantages: requires a PC, knowledge of the command line and accuracy – one error in the command can lead to data loss or β€œbrick”.

πŸ“Š What kind of firmware you used before?
Through Recovery (TWRP/CWM)
Through Fastboot.
Through the Mi Flash Tool
Never stitched.

Preparation for firmware: what will be needed

Before you start, gather everything you need. A3 critically use firmware compatible with bootloader version and partitions dynamic_partitions β€” If you don't, it won't boot. Here's a complete list of tools and files:

  • πŸ’» Computer on Windows 10/11, Linux or macOS (Windows will require drivers).
  • πŸ“± Xiaomi Mi A3 with a battery charge of at least 70% (to avoid shutdown during the process).
  • πŸ”Œ Original. USB-cable (cheap cables can cause data transmission errors).
  • πŸ”§ Tools: ADB & Fastboot (part of Android) SDK Platform-Tools. Mi Unlock Tool (to unlock the bootloader, download from the official Xiaomi website). 7-Zip or WinRAR for unpacking firmware.
  • πŸ“ Firmware: Official (stock) – download from Xiaomi Firmware Updater (select the version for the app). laurel_sprout). Custom (e.g. LineageOS) – check compatibility with laurel_sprout forum XDA Developers.

Attention! If you install custom firmware, make sure it supports dynamic_partitions β€” Otherwise, the phone won't boot up after the firmware is installed. A3 always compatible.

β˜‘οΈ Checklist before firmware

Done: 0 / 5

Unlock the bootloader on Xiaomi Mi A3

The bootloader on the Mi A3 is locked by default, and unlocking it is a must before you run through Fastboot. Unlike devices on MIUI, where the process takes 7-30 days to wait, for Android One, unlocking is almost instantaneous, but requires you to link your Xiaomi account.

Step-by-step:

  1. Turn on USB debugging: Go to Settings β†’ About Phone β†’ Build Number and tap 7 times to activate Developer Mode. Go back to Settings β†’ System β†’ For Developers and turn on USB Debugging and OEM Unlock.
  2. Link your Xiaomi account: In Settings β†’ Accounts, add a Xiaomi account (required!). In Settings β†’ For developers, link this account to your device (Mi Unlock Status option).
  3. Install Mi Unlock Tool: Download the utility from the official website and install it on your PC. Launch the program, log in to the same Xiaomi account as on your phone.
  4. Connect your phone in Fastboot mode: Turn off the Mi A3, then press Volume Down + Power to log in to Fastboot. Connect your phone to your PC and in Mi Unlock Tool press Unlock.

If it's a success, you'll see a message called Unlocked successfully. Now the bootloader is unlocked, and you can start the firmware.

What to do if the Mi Unlock Tool is in error?
If the utility shows an error "Couldn't unlock" or "Account not bound", check: 1. Xiaomi account is tied to the device in the developer settings. 2. You use the original cable and USB 2.0 port (USB 3.0 can cause problems). 3. The phone is enabled debugging by USB and unlocking OEM. 4. You downloaded the latest version of the Mi Unlock Tool from the official website (not from third-party sources).

Selection of firmware: official vs custom

The firmware choice determines the stability of the Mi A3 after flashing. Consider the pros and cons of each option:

Type of firmwareAdvantagesDeficienciesWhere to download
Official (stock)Maximum stability support OTA-Updates Compatible with Google ServicesRestricted Customization Dependence on Xiaomi UpdatesXiaomi Firmware Updater
LineageOS (Pixel Experience)More features and settings Updates directly from the community Opportunity to install new versions of AndroidRisk of bugs (camera, sensors) No guarantee of stability dynamic_partitionsXDA Developers
Port MIUIMIUI features on Android One Best optimization for ironLoss of Android One Updates Possible Problems with Google ServicesXiaomi.eu

For most users, the best choice will be the official firmware - it guarantees stability and compatibility. Custom firmware is suitable for enthusiasts ready for possible bugs.

πŸ’‘

Before downloading the firmware, check its version for Mi. A3 (codename laurel_sprout). Install firmware for another model (for example, Mi) A2) lead to "brick"!

Step-by-step: Firmware via Fastboot

Now, to the most critical stage, follow the instructions carefully, because a step or error in the command can cause the device to fail.

Step 1 Unpack the firmware

Downloaded firmware (e.g, fw_laurel_sprout_miui_LAURELSPROUTGlobal_V12.0.1.0.QFQMIXM_...) It's in the archive. Unpack it in a folder with a platform-tools (where adb.exe and fastboot.exe are located:

  • flash_all.bat β€” Automatic Firmware Script (Windows Only).
  • Images – folder with firmware files (boot.img, system.img, etc.).
  • flash_all.sh β€” script Linux/macOS.

Step 2: Connect your phone in Fastboot mode

Turn off the Mi A3, then press Volume Down + Power until the screen with the hare in the hat-eared (Fastboot logo) appears. Connect the phone to the PC.

Step 3. Check the connection.

Open the command line (or terminal) in the platform-tools folder and type:

fastboot devices

If the device is determined (the serial number will appear), you can continue. If not, check the drivers or cable.

Step 4. Launch the firmware

For Windows:

flash_all.bat

For Linux/macOS:

chmod +x flash_all.sh


./flash_all.sh

It takes 5-10 minutes. Don't turn off the phone or interrupt the script! When it's done, the device will automatically restart.

πŸ’‘

If the script flash_all.bat Issue an error, manually run files with commands like fastboot flash boot boot.img For each section, a list of sections for Mi A3: boot, dtbo, system, vendor, recovery.

Typical errors and their solutions

Even with the exact instructions, there can be problems, and here are the most common Mi A3 firmware errors and ways to fix them:

  • ❌ Mistake. FAILED (remote: 'Flashing is not allowed in Lock State') Reason: bootloader is not unlocked Solution: unlock via Mi Unlock Tool (see section above).
  • ❌ Invalid sparse file format at header Error Cause: corrupted firmware file or incompatible version Solution: download the firmware again and verify its integrity (for example, through the use of a firmware file). MD5-sum).
  • ❌ Phone doesn't turn on after firmware (black screen) Reason: incompatible firmware or interrupted process Solution: Try going to Fastboot. + Power, and re-sweeten. If it doesn't work, run the official firmware through the Mi Flash Tool).

No such file or directory

Reason: The script is running from the wrong folder or there are no rights.

Solution: Check the path to platform-tools and execution rights (for Linux/macOS).

If neither of these methods worked, go to the 4PDA or XDA Developers forums, which have themes for Mi A3 specific bug solutions.

πŸ’‘

If the phone boots after the firmware, but the sensor or camera doesn't work, it's likely that the firmware is incompatible with the bootloader version. Try flashing an older or newer version of the stock firmware.

What do I do after the firmware?

Successful firmware is only half the battle, so to keep the Mi A3 running smoothly, follow a few additional steps:

  1. Reset settings (recommended after installing custom firmware): Go to Settings β†’ System β†’ Reset. Choose Delete all data (this will clear the cache and avoid conflicts).
  2. Check for updates: For official firmware: Settings β†’ System β†’ System Update. Custom: Updates are installed via TWRP or manually.
  3. Recover data: If you've been backing up through TWRP or ADB, restore it. Don't restore system applications, it can cause errors.
  4. Set up root rights (optional): For custom firmware, you can install Magisk via TWRP. For official firmware, root may disrupt Google services (for example, Google Pay).

Attention! If you've stitched custom firmware, some features may not work properly:

  • πŸ“Έ Camera: Artifacts or Absences Possible HDR (Check for patches for Mi. A3 on XDA).
  • πŸ”‹ Charging: Some firmware incorrectly displays battery level.
  • πŸ“‘ Network: problems with VoLTE or 4G (It is solved by installing the correct modem).

FAQ: Answers to Frequent Questions

Can I flash the Mi A3 without unlocking the bootloader?
No. The bootloader on the Mi A3 is locked by default, and any attempt to flash the device through the Fastboot without unlocking will result in the Flashing error is not allowed in Lock State, except for updates via Recovery, but they only work for official firmware.
How to return the official firmware if the phone does not turn on?
If the device does not boot, but is included in Fastboot: Download the official firmware for laurel_sprout Xiaomi Firmware Updater. Unpack it and launch it. flash_all.bat (or flash_all.sh for Linux/macOS). If the script doesn’t work, manually run each section: fastboot flash boot boot.img fastboot flash system system.img fastboot flash vendor vendor.img fastboot flash dtbo dtbo.img If the phone is not included even in Fastboot, hardware recovery (through test points or service center) will be required).
Why is the sensor not working after the firmware?
This problem is typical for custom firmware, assembled without taking into account the features of Mi. A3. Solutions: Sweep through the official firmware. XDA Firmware marked fixed touch for laurel_sprout. Check if the bootloader version matches the firmware version.
Can I stream Mi A3 via TWRP?
Technically, yes, but not recommended. TWRP for Mi A3 supportive dynamic_partitions, It can cause a firmware error or a "brick." If you want to use it, TWRP: Install the official version TWRP for laurel_sprout. Fastboot: Fastboot Flash Recovery twrp.img. Use it. TWRP Only for backups or Magisk installation – Fastboot is better for firmware.
How to check the version of the bootloader on the Mi A3?
The bootloader version is important for firmware compatibility, and you can find out how to turn on Developer Mode (7 taps by build number). Go to Settings β†’ System β†’ Developer β†’ bootloader Version. Compare it to firmware requirements (e.g. bootloader 4 for Android 11). If the bootloader version is lower than it needs, first flash the middle firmware (e.g., Xiaomi Firmware Updater).