How to flash Xiaomi Redmi 9A: official and custom firmware

The Xiaomi Redmi 9A is a challenge that users face for a variety of reasons, from wanting to upgrade an outdated MIUI to having to restore the brick after a failed experiment. Despite its budget status, this model supports both official updates through MIUI Recovery and custom firmware installation through Fastboot or TWRP. However, the process has nuances related to unlocking the bootloader and file compatibility.

Unlike the flagship models Xiaomi, Redmi 9A (dandelion codename is equipped with MediaTek Helio processor G25, So this is a very limited firmware option, and for example, custom cores are not supported here, and some versions are not supported. GSI-In this article, we will discuss all the current methods of firmware, from a standard update through Settings to manual installation through Settings. SP Flash Tool – and how to avoid common mistakes like Invalid image or hanging on the Mi logo.

⚠️ Note: Firmware via Fastboot or SP Flash Tool resets data on your phone unless you have backed up through Mi Cloud or TWRP, Photos, contacts and messages will be lost without recovery. Also note that unlocking the bootloader will void the Xiaomi warranty in most regions.

1. Firmware Preparation: What to Do Before Starting

Before you start firmware, make sure that all the preliminary steps are followed, and ignoring them can make it impossible to restore the phone through standard methods (for example, if the bootloader is locked and you are trying to install custom firmware).

First, check the current MIUI version and device model. To do this, go to Settings β†’ About Phone. In the MIUI version bar, you'll see something like 12.5.3.0 (QCQRUXM), where:

  • πŸ”’ 12.5.3.0 - firmware version;
  • 🌍 Q is the Android codebase (Q) = Android 10);
  • πŸ‡·πŸ‡Ί RUXM β€” region (RU = Russia, XM = global).

If your Redmi 9A has a China (CN) version, firmware for the Global version may not be the right fit!

Second, download the necessary tools:

  • πŸ“± Official firmware from en.miui.com (select dandelion in the model filter);
  • πŸ–₯️ Mi Flash Tool (for Fastboot firmware) or SP Flash Tool (for firmware via MediaTek);
  • πŸ”“ Unlock Tool (if the bootloader is blocked);
  • πŸ”Œ Cable USB (It is desirable to be original, since cheap cables can cause data transmission errors).

Make a backup copy of the data (photos, contacts, SMS)

Check the battery power (minimum 60%)

Download firmware for the correct model (dandelion)

Install MediaTek drivers on PC

Disable the antivirus (it can block the Mi Flash Tool)

-->

⚠️ Note: If you are using Redmi 9A If you have a locked bootloader, you first need to unlock it through the Mi Unlock Tool. Without this, installing custom firmware or even the official Fastboot will end up with an error Anti-rollback check fail.

2. Method 1: Update via Recovery (without PC)

The easiest and safest method is to upgrade through stock Recovery, which is suitable if:

  • πŸ“² The phone is turned on and loaded into the system;
  • πŸ”„ You want to upgrade to a new version. MIUI data-free;
  • πŸ”’ bootloader is locked (no unlock required).

Instructions:

  1. Download the official firmware in.zip format (for example, dandelion_global_images_V12.5.3.0.QCQRUXM_20211012.0000.00_10.0_global_1234567890.zip) and rename the file to update.zip.
  2. Move the file to the root directory of the phone’s internal memory (not to folders!).
  3. Turn off the phone, then press Volume Up + Power to enter Recovery.
  4. From the Recovery menu, select Install update.zip to System (use volume buttons for navigation and power button for confirmation).
  5. Wait for the process to complete (5-10 minutes) and restart the phone.

βœ… Advantages of the method:

  • πŸ”„ All data and settings are stored;
  • πŸ›‘οΈ Minimum risk of β€œbricking";
  • πŸ“± No PC required.

❌ Deficiencies:

  • 🚫 You can’t go back to an older version. MIUI (Anti-Rollback protection is working);
  • πŸ”’ Not suitable for installing custom firmware.

Through Recovery (no PC)

Through Fastboot (from PC)

SP Flash Tool (for MediaTek)

Custom firmware (TWRP)

Never stitched it.

-->

3. Method 2: Fastboot Firmware (from PC)

If the phone is not turning on or you want to install a clean version of MIUI (for example, after a reset), use the firmware via Fastboot.This method requires an unlocked bootloader and is suitable for official firmware in.tgz or.zip format (with the extension images).

Step-by-step:

  1. Unpack the downloaded firmware (for example, dandelion_global_images_V12.5.3.0.QCQRUXM_20211012.0000.00_10.0_global.tgz) PC-folder.
  2. Install the Mi Flash Tool and Xiaomi drivers (you can download on the official website).
  3. Turn off your phone and press Volume Down + Power to enter Fastboot mode (a hare in a hat-eared hat will appear on the screen).
  4. Connect your phone to your PC and start the Mi Flash Tool.
  5. In the program, press Select and specify the path to the unpacked firmware. Then select the firmware mode: πŸ”„ Clean all – complete cleaning (recommended when changing region or Android version); πŸ—ƒοΈ Clean all and lock - cleaning + bootloader lock (use if you want to return the warranty); πŸ“¦ Save user data – data retention is not always stable).

Flash

⚠️ Note: If the Mi Flash Tool gives a critical partition flashing error is not allowed, it means that you are trying to flash the firmware with a lower version of Anti-Rollback than the current one!).

How to get around Anti-Rollback protection?
Bypassing anti-Rollback protection is possible only through a modified Fastboot script or rollback to the version. MIUI, which supports your current ARB-However, this can lead to a complete loss of the phone's performance (hard brick), we recommend using this method only for advanced users or if there are no other options.

πŸ“Œ Tip: If the phone is stuck on the Mi logo after you've done the firmware, try going to Recovery and doing Wipe data. If that doesn't work, repeat the firmware with the Clean all option.

4. Method 3: Firmware via SP Flash Tool (for MediaTek)

Xiaomi Redmi 9A is built on the chip MediaTek Helio G25, so it is suitable firmware via SP Flash Tool.

  • πŸ”§ The phone does not respond to the buttons (full brick");
  • πŸ”„ Restore the original firmware after a failed experiment;
  • πŸ“± You need to re-cover custom recovery (TWRP).

Instructions:

  1. Download. SP Flash Tool (version) 5.2026 or newer) and firmware in format MT6765_Android_scatter.txt (This is a file card for MediaTek).
  2. Unpack the firmware and launch the SP Flash Tool. From the menu, select Scatter-loading File and specify the path to the scatter.txt file.
  3. Check all sections (except for preloader if you are not sure of its compatibility!).
  4. Turn off the phone, disconnect the battery (if possible) and connect to the PC without pressing buttons.
  5. In the SP Flash Tool, click Download and wait for the green circle to appear (successful firmware).

⚠️ Note: If you are flashing a preloader from another firmware version, the phone may turn into a brick without being able to recover through standard methods!

Firmware sectionDescriptionCan I stitch it?
preloaderPrimary loader❌ Only if it is exactly the same as the current version.
lkSecondary loaderβœ… Yes, but carefully)
bootCore and loaderβœ… Yes.
recoverySection Recoveryβœ… Yes (can be replaced by TWRP)
systemMain firmwareβœ… Yes.

5. Install custom firmware (TWRP + GSI)

If you don't like standard MIUI, you can install alternative firmware, such as LineageOS or Pixel Experience, but Redmi 9A is limited by the MediaTek processor and lack of official TWRP support.

What will be required:

  • πŸ”“ Unlocked loader;
  • πŸ“± Custom recovery (TWRP Or OrangeFox);
  • πŸ–₯️ Firmware in.img or.zip format (for example, GSI Android 10/11);
  • πŸ”§ Fastboot and Adb tools.

Step-by-step:

  1. Download the unofficial TWRP for Redmi 9A (look for XDA or Telegram channels).
  2. Recovery is available in Fastboot: Fastboot Flash Recovery twrp-3.6.0_dandelion.img fastboot reboot recovery
  3. In TWRP, backup boot, system and data partitions (in case of rollback).
  4. Sweat the custom firmware (for example, PixelExperience_dandelion-11.0-20230515.zip) via Install menu in TWRP.
  5. Clear the cache (Wipe β†’ Format Data) and restart the phone.

⚠️ Attention: Castom firmware for Redmi 9A often have bugs:

  • πŸ“· Main camera is not working (due to closed MediaTek drivers);
  • πŸ”Š Problems with sound in headphones;
  • πŸ“Ά Unstable mobile network performance (especially VoLTE).

Before installing, check the reviews on the forums!

πŸ’‘

If after installing custom firmware, the phone overheats or discharges quickly, return to the stock MIUI. To do this, swipe the official firmware through Fastboot with the Clean all option.

6. Unlock the bootloader on the Redmi 9A

Without unlocking the bootloader, you won’t be able to flash custom firmware or even official through Fastboot.The process takes 72 hours (by Xiaomi rules) and requires you to link your Mi Account to the device.

Instructions:

  1. Enable Developer Options: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Back to Settings β†’ Additionally. β†’ For developers and activate: πŸ”— OEM-unlock; πŸ”Œ Debugging by USB.

Mi Account

Settings β†’ Xiaomi account

Loudness down + Nutrition

Fastboot

Mi Unlock Tool

Xiaomi

Unlock

❗ Important: After unlocking the bootloader, all data on the phone will be erased! Also note that some banking applications (for example, Sberbank Online) may stop working due to the SafetyNet trigger.

7.Typical errors and their solution

Even if you follow the instructions accurately, you can get errors.

Mistake.Reason.Decision
Invalid image in Mi FlashInconsistency of the firmware modelDownload the firmware specifically for dandelion
The phone is stuck on the Mi logoIncompatibility of kernel or recoveryFastboot Firmware with Clean All option
BROM ERROR: S_FT_ENABLE_DRAM_FAIL into SP Flash ToolIncorrect scatter.txt or driverCheck the SP Flash Tool and reinstall MediaTek drivers
Anti-rollback check fail errorReverse to the old version of MIUISweeve a newer firmware or reset the ARB through a modified script

If your error is not listed in the table, try:

  • πŸ” Find a solution 4PDA or XDA;
  • πŸ“Έ Take a picture of the screen with an error and ask a question in Telegram chats;
  • πŸ”§ Try flashing your phone through another PC (sometimes the driver problem).

πŸ’‘

If the phone doesn't turn on after firmware, don't panic! 90% of the time it can be restored via the SP Flash Tool or Fastboot. The main thing is not to stitch the preloader from another version!

8. Frequently Asked Questions (FAQ)

❓ Can I get Redmi to flash? 9A loader-free?
Yes, but only through Recovery (update of the official firmware without losing data). For firmware via Fastboot or custom firmware installation, unlocking is mandatory.
❓ How to return the guarantee after unlocking the bootloader?
You need to flash the official firmware through the Mi Flash Tool with the Clean all and lock option. However, this does not guarantee the restoration of warranty - some service centers check the status of the bootloader through service utilities.
❓ Which custom firmware is better to choose for Redmi 9A?
The most stable options: πŸ“± Pixel Experience (Android 11, but with camera bugs); πŸ”„ LineageOS 18.1 (Android 11) is a minimalist interface); 🎯 MIUI EU (formal MIUI Check the forum reviews before installing - some builds may not support VoLTE or Wi-Fi Calling.
❓ What to do if the sensor does not work after the firmware?
This is a typical problem when installing custom firmware on MediaTek. Solutions: Sweat the stock core (boot.img) through Fastboot; Install another firmware version (for example, with a different core); Return to the official MIUI.
❓ How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power. If you see Unlocked on the screen under the hare logo, the bootloader is unlocked. If it doesn't say Loud Down or Locked says it's locked.