Xiaomi Mi A1 is a cult smartphone released in 2017 as part of the Android One program. Despite its age, the device is still popular thanks to its clean Android, powerful hardware and active support for custom firmware. However, over time, official updates have ceased to come out, and users have faced the need for self-flashing - especially if the device began to "brake" or require the installation of a new version of the OS.
Fastboot is one of the most reliable ways to upgrade or restore the Mi A1, but the process requires care. Unlike the recovery method, it installs the firmware directly through the computer, which minimizes the risk of bricking, but imposes strict preparation requirements. In this article, we will examine the entire process Step-by-step, from unlocking the bootloader to installing custom or stock firmware, and consider typical errors and how to solve them.
Why Fastboot and not Recovery?
Xiaomi Mi A1 users have two main ways of firmware: through Fastboot and Recovery (TWRP). Each of them has its pros and cons, but the Fastboot method is often preferred in the following cases:
- π§ You need to restore the device after a βsoft brickβ (for example, after an unsuccessful firmware through the device). TWRP).
- π¦ You need to install official stock firmware from Xiaomi (Fastboot firmware usually contains a full file package, including a bootloader).
- π The bootloader is locked, and unlocking via Mi Unlock Tool is only possible in Fastboot mode.
- π‘οΈ Minimizing risks: with proper execution of commands, the chance to βbrickβ the device is lower than when working with custom recovery.
However, the method has drawbacks:
- β οΈ You need an unlocked bootloader (if it is locked, you will have to unlock it first through the Mi Unlock Tool).
- π» We need drivers. ADB/Fastboot Minimum command line skills.
- π The process takes longer than the firmware through TWRP.
If your goal is to install custom firmware (for example, LineageOS or Pixel Experience), then after unlocking the bootloader you can go to the Internet. TWRP sniff ZIP-But first you still have to unlock the bootloader through Fastboot.
Preparation for firmware: what will be needed
Before you start firmware, make sure you have everything you need, and missing at least one component can cause firmware failure or even damage to the device.
Here's the full list:
| Component | Description | Where to download/buy |
|---|---|---|
| Computer (Windows/Linux/Mac) | It is better to use a Windows 10/11 PC β it is the easiest for it to find drivers. | β |
| USB cable (original) | Cheap cables can cause data errors. Use the original one from Xiaomi. | Official Xiaomi Store, AliExpress |
| ADB and Fastboot (Platform Tools) | A set of utilities from Google to work with Android devices through the command line. | Official website of Android Developers |
| Xiaomi drivers | Without them, the computer will not recognize the device in Fastboot mode. | Xiaomi Support Page |
| Firmware for Mi A1 (Fastboot) | It can be official (from Xiaomi) or custom (LineageOS, Pixel Experience, etc.). | Xiaomi Firmware Updater, XDA Developers |
Pay special attention to the choice of firmware. For the Mi A1, you can:
- π Official Fastboot Firmware from Xiaomi (for example, tissot_global_images_V12.0.2.0.PDHMIXM).
- π Base-based castor firmware AOSP (LineageOS, Pixel Experience, Havoc-OS).
- π Firmware port from other devices (for example, ported) MIUI 12 for Mi A1).
β οΈ Note: If you install an official firmware from Xiaomi, check its region. Global firmware is not suitable for China and vice versa.
βοΈ Checklist before firmware
Unlock the bootloader on Xiaomi Mi A1
If you have never unlocked the bootloader on your Mi A1, then before you run through Fastboot, you will have to do this. Xiaomi blocks the bootloader by default, and without unlocking, installing custom firmware or even the official Fastboot will not be possible.
The unlocking process includes several stages:
- Getting permission from Xiaomi via Mi Unlock Tool
- Linking your Mi Account to your device.
- Directly unlock through Fastboot.
Important: since 2021, Xiaomi has tightened the unlock rules, now you need to wait 168 hours (7 days) after you link your account to your device.
Step 1: Linking your Mi Account
1. Go to Settings β About Phone β MIUI version and tap 7 times on the line with the version to activate the developer mode.
2. Return to Settings β Additional β For Developers and Enable:
- π§ Debugging by USB.
- π§ Unlocking OEM (If the option is not available, the bootloader is already unlocked).
3. Connect your phone to your Mi: Settings β Accounts β Mi Account.
Step 2: Unlocking with Mi Unlock Tool
1. Download the Mi Unlock Tool and install it on your computer.
2. Launch the utility and log in to the same Mi Account that is linked to the phone.
3. Transform the Mi A1 to Fastboot mode:
adb reboot bootloader4. Connect the phone to your computer and in Mi Unlock Tool press Unlock.
β οΈ Note: If the utility gives an error Couldn't unlock or Current account is different from the account info on the device, then the account is not tied correctly.
Once successfully unlocked, the phone will have Unlocked in Fastboot mode, and you can start running the firmware.
What if the Mi Unlock Tool canβt see the device?
Install firmware through Fastboot: step-by-step instructions
When the bootloader is unlocked, you can start running firmware. Consider the process using Xiaomi's official Fastboot firmware. For custom firmware (LineageOS, Pixel Experience), the steps will be similar, but instead of using the same software, the process will be more difficult. flash_all.bat You will need to manually write commands.
Step 1: Preparing the firmware
1. Download Fastboot firmware for Mi A1 (the device's code name is tissot). For example, from the Xiaomi Firmware Updater website.
2. Unpack the archive in a folder with Platform Tools (where adb.exe and fastboot.exe are located).
3. There must be a file inside the archive. flash_all.bat (for Windows or flash_all.sh (for Linux/Mac).
Step 2: Transfer your phone to Fastboot mode
1. Turn off the Mi A1.
2. Press the buttons Loudness down + Power and hold them for 5-10 seconds until the screen with a hare in a hat-eared (Fastboot logo) appears.
3. Connect the phone to the computer.
Step 3: Starting the firmware
1. Open the command prompt in the firmware folder (Shift + right mouse button β βOpen command windowβ).
2.For official firmware Xiaomi do:
flash_all.batFor custom firmware (like LineageOS), the commands will be different.
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash dtbo dtbo.img
fastboot rebootThe firmware process will take 5-15 minutes, and when it's done, the phone will automatically restart.
β οΈ Note: If you have been following the Mi A1 If you're stuck on the logo or you're in a bootloop, it means the firmware is not suitable for your model or it's damaged, and you're going to have to do it again with another firmware version.
π‘
If the firmware is interrupted with the error remote: partition table doesn't exist, then you are trying to flash the wrong version (for example, firmware for Mi A2). Always check the device code name (tissot for Mi A1).
Typical errors and their solutions
Even with strict adherence to the instructions, errors can occur. Consider the most common problems when running Xiaomi Mi A1 firmware through Fastboot and how to solve them.
| Mistake. | Reason. | Decision |
|---|---|---|
| waiting for device | The computer does not see the phone in Fastboot mode. | 1. Check. USB-cable and port 2. Install drivers Xiaomi.3. Restart the computer. |
| remote: oem unlock is not allowed | The bootloader is not unlocked or the Mi Account is not tied. | 1 Repeat the unlock process through Mi Unlock Tool.2. Wait 168 hours if the account is new. |
| FAILED (remote: 'Partition not found') | The firmware is not compatible with the device. | Download the firmware specifically for tissot (Mi A1). |
| The phone does not turn on after the firmware | A boot section or incompatible firmware is damaged. | 1. Try to flash another version 2. Install TWRP and sew ZIP-archive. |
If none of these methods worked, try flashing your device through the Mi Flash Tool, Xiaomi's official utility, which automatically identifies the model and installs the right firmware.
π‘
The most common mistake when running the Mi A1 firmware is that the firmware version is not the same as the device model. Always check the code name (tissot) and the region (Global/China).
Firmware custom firmware (LineageOS, Pixel Experience)
Xiaomi Mi A1 β one of the most popular devices for installing custom firmware due to an active community on the XDA Developers: If you want to install LineageOS, Pixel Experience or other AOSP-Firmware, the process will be slightly different from the installation of official firmware.
Here are the key steps:
- Install. TWRP Recovery (Castom Recovery for Firmware) ZIP-archive).
- Backup the current firmware through TWRP.
- Sweep through custom firmware and, if necessary, Gapps (Google services).
- Clear the cache (Wipe β Format Data).
Example of commands for installing TWRP via Fastboot:
fastboot flash recovery twrp-3.7.0_tissot.img
fastboot boot twrp-3.7.0_tissot.imgThen you can load up to the TWRP sniff ZIP-firmware.
β οΈ Note: Some custom firmware (e.g., Pixel Experience) require additional firmware vendor-partition from stock firmware.
Recovery after a failed firmware
If something goes wrong and the Mi A1 stops turning on or hangs on the logo, don't panic. In most cases, the device can be restored.
- π Hard Reset: Hold the Volume Up + Power for 10 to 15 seconds. If the phone vibrates, release the buttons, the device will restart.
- π₯ Firmware via Mi Flash Tool: download the official firmware and flash it through the Mi Flash Tool (select Clean All option).
- π§ Installation TWRP firmware ZIP: If the phone is loaded into Fastboot but not into the system, please click on it. TWRP Install the working firmware through recovery.
If the phone is not responding to buttons and is not detected by the computer, there may be a hardware failure (for example, damage to flash memory), in which case only the service center will help.