Installing TWRP on Xiaomi Redmi 9A: a complete guide to unlocking the bootloader

Installing a custom TWRP recavator on the Xiaomi Redmi 9A (dandelion model) opens up access to advanced features, from backing up /data partitions to firmware informal ROMs like LineageOS or Pixel Experience. However, the process requires pre-unlocking the bootloader through the Mi Unlock Tool - a step that many users miss when faced with the Fastboot: unknown command or the "hang" Mi logo.

In this guide, we will discuss three key steps: device preparation (including backup and debugging enabled). USB), unlock the bootloader through the official Xiaomi tool, and directly the firmware TWRP with the specifics of Redmi 9A (For example, no Type-C connector and limited support ADB version MIUI). We will pay special attention to the typical errors from the "Nordic version". TWRP" before problems with Qualcomm drivers HS-USB QDLoader 9008, which often block the process on Windows 10/11.

โš ๏ธ Warning: Firmware TWRP voids the Xiaomi warranty and may cause permanent damage to the persist partition if the process is interrupted at the recording stage. recovery.img. Make sure the battery is charged on 80%+, a the cable supports data transmission (charging cables are often not suitable for the cables!).

1. Device preparation: backup and developer settings

Before any firmware manipulation, be sure to back up critical data. Redmi 9A does not support automatic backups to Mi Cloud for users with unofficial firmware, so use third-party tools:

  • ๐Ÿ“ฑ Contact and SMS: Export through Settings โ†’ Google โ†’ Backup or Swift Backup (requires root).
  • ๐Ÿ“ท Photo/Video: Move to PC or Google Photos (turn off compression in settings!).
  • ๐Ÿ”‘ Wi-Fi passwords: Save the network list manually or via WiFi Key Recovery (requires root).
  • ๐ŸŽฎ Game data: Use built-in reservation features in games (e.g. Genshin Impact or Honor of Kings are linked to your Mi Account).

Then activate the developer mode and the necessary options:

  1. Go to Settings โ†’ About Phone โ†’ MIUI version and tap 7 times on the line until the notification You became a developer!.
  2. Return to Settings โ†’ Additional โ†’ For developers and enable: Debugging via USB (required!) Unlocking OEM (may be absent on some versions of MIUI โ€“ see spoiler below) Factory Unlock (if any)
What to do if there is no โ€œOEM Unlockโ€ item?
On some versions MIUI for Redmi 9A (for example, 12.0.8) item โ€œUnlockingโ€ OEM" It's hidden: 1. Connect your phone to a PC with drivers installed ADB. 2. Adb shell settings put global settings oem_unlock_allowed 1 3. Reboot the device. The item should appear in the developer settings.

โš ๏ธ Attention: If you are using MIUI 13+, after the debugging of USB The system may request confirmation RSA-When you connect to a PC, always press "Allow" or else ADB won't work!

2 Unlock the bootloader through the Mi Unlock Tool

Xiaomi blocks the bootloader on all devices, including the Redmi 9A, so unlocking it is a must-have.The process takes between 72 and 360 hours (depending on Xiaomi policy), but the real wait time is usually 3-7 days.

  1. Connect your Mi Account to your device: Go to Settings โ†’ Mi Account and log in. To Settings โ†’ Additional โ†’ For developers, link your account to your device (Mi Unlock Status).
  2. Download Mi Unlock Tool: Official version: en.miui.com/unlock (registration required). Use version 5.5.224.24 or later - older versions may not support Redmi 9A.

Run the unlock:

1. Turn off the phone.


2.Put Volume Down + Power to enter Fastboot.




3. Connect the device to the PC and start the Mi Unlock Tool.




4. Sign in to the same Mi Account as on your phone.




5. Press Unlock and a waiting timer will appear.

Status.Waiting timerAction
First unlock.168 hours (7 days)Check the status in the Mi Unlock Tool.
Re-unlock72 hours (3 days)If you have previously unlocked another phone on that account.
"Couldn't unlock" errorโ€”Check the cable, drivers and Mi Unlock Tool version.
Successful unlockingโ€”The phone will automatically reboot with the bootloader unlocked.

โš ๏ธ Warning: If the phone is stuck on the Mi logo after unlocking, perform a hard reset via Fastboot:

fastboot erase userdata


fastboot reboot

This will delete all data, but it will return the device to working condition.

๐Ÿ“Š How long have you waited for the bootloader to unlock on Xiaomi?
Less than 24 hours.
1-3 days
4-7 days
More than a week.
Failed to unlock.

Installation of drivers and preparation of PC

Incorrectly installed drivers are the main cause of errors when running TWRP firmware. Redmi 9A (MediaTek Helio G25 chipset) will require:

  • ๐Ÿ–ฅ๏ธ Drivers. ADB/Fastboot: Download Minimal. ADB and Fastboot or Googleโ€™s Platform Tools.
  • ๐Ÿ”Œ MediaTek drivers: Install MTK USB Driver (e.g., driver, MediaTek_Preloader_USB_Driver).
  • ๐Ÿ› ๏ธ Qualcomm Drivers (if needed): For the mode EDL (Emergency Firmware Download QDLoader HS-USB Driver.

Check the correctness of the driver installation:

  1. Connect your phone in Fastboot mode (clip Volume Down + Power).
  2. Windows Device Manager should display: Android Bootloader Interface (if ADB drivers are installed correctly) MediaTek Preloader USB VCOM Port (for SP Flash Tool mode).

If the device is identified as Unknown Device, manually update the driver through Device Manager, indicating the path to the folder with MediaTek drivers.

1. Press Win + X โ†’ Startup options โ†’ Reboot.

2. Select Disable Mandatory Driver Signature Verification (7).

3. After restart, repeat the installation.-->

4. Download and firmware TWRP for Redmi 9A

For Redmi. 9A (dandelion) use only official assemblies TWRP from twrp.me, at the moment. 2026 current-year โ€” 3.7.0_12-0. Alternative builds (e.g. from OrangeFox) may not support encryption /data.

โœ… Checklist before firmware:

Download the official image twrp-3.7.0_12-0-dandelion.img

The device is unlocked via Mi Unlock Tool

Drivers installed ADB/Fastboot and MediaTek

Battery charged at 80%+

Antivirus disabled (can block fastboot)-->

Firmware instructions:

  1. Place the file. twrp-3.7.0_12-0-dandelion.img into a folder with platform-tools.
  2. Open the command prompt in this folder (Shift + PCM โ†’ Open the PowerShell window here).
  3. Execute commands in order: adb reboot bootloader fastboot flash recovery twrp-3.7.0_12-0-dandelion.img fastboot reboot recovery

โš ๏ธ Critical error: If after the command fastboot reboot recovery phone loads into a standard recaverie MIUI, So Xiaomi overwrote recovery when it booted. TWRP Run the command fastboot boot twrp-3.7.0_12-0-dandelion.img, load in TWRP sectionless.

5. Initial TWRP setup and Magisk firmware (optional)

After you first download to TWRP, you will be asked to allow modifications to the system, and it is important that if you plan to run Magisk for root rights, do so before the first boot, or you risk a looped restart (bootloop).

Step-by-step action:

  1. Swipe for modifications: Swipe your finger to the right to allow changes.
  2. Language customization: There is no Russian language in TWRP, but the interface is intuitive. To change the language: Tap Select Language โ†’ select English.
  3. Magisk firmware (optional): Download the latest Magisk-v26.4.zip From GitHub. Transfer the file to your phone through MTP (into TWRP: Mount โ†’ Enable MTP). Fly through Install. โ†’ Choose. Magisk.zip โ†’ Swipe to Confirm Flash.

โš ๏ธ Note: If after the firmware Magisk phone does not boot, run in TWRP:

adb shell


magisk --remove-modules

This will remove the conflicting modules.

๐Ÿ’ก

Switch Magisk ONLY through TWRP, not through the Magisk Manager app. On Redmi 9A, this can cause data loss in the /data partition!

6. Solving common errors

Even with the correct instructions, Redmi 9A users face typical problems, and the following are the ways to solve them:

Mistake.Reason.Decision
Fastboot: unknown commandThe Wrong Path to Fastboot or DriversCheck the environment variables or use the full path (e.g. C:\platform-tools\fastboot)
Hanging on the Mi logo after firmwareIncompatible version of TWRP or damaged boot.imgSweep the original boot.img through fastboot flash boot.img
Invalid sparse file format at headerTWRP file or recovery partition is damagedDownload TWRP again and repeat the firmware
Not defined in FastbootProblems with the USB cable or portTry a different cable/port or enable USB 2.0 in the BIOS

If none of these methods worked, use EDL Emergency Mode (for power users!) to flash your phone through the Mi Flash Tool even with a damaged bootloader. Note: Redmi 9A requires an authorized Xiaomi account with EDL firmware permission.

How to enter EDL mode on Redmi 9A?
1. Turn off the phone. 2. Hold the Loud up. + Volume down and connect the cable USB PC. 3. Hold the buttons. 10-15 Seconds until Qualcomm appears in Device Manager HS-USB QDLoader 9008. 4. Use the Mi Flash Tool with firmware dandelion_global_images.

FAQ: Frequent questions on TWRP on the Redmi 9A

Can I install TWRP without unlocking the bootloader?
No. Xiaomi blocks the write to the recovery section on all devices, including the Redmi 9A. Without unlocking through the Mi Unlock Tool, TWRP firmware is impossible - the system will simply ignore the command fastboot flash recovery.
Why does the TWRP phone not boot after installation?
Most likely causes: Incompatible TWRP is stitched (e.g., for another Redmi model); boot.img is damaged (if Magisk is incorrectly flashed); /data encryption is enabled, but TWRP does not support decryption; Solution: Swipe the original. boot.img through fastboot or reset it through TWRP (Wipe โ†’ Format Data, but that will delete all data!).
How to make a backup in TWRP before firmware custom ROM?
V TWRP select: Backup โ†’ Mark the Boot, Data, System sections. Specify the location of the save (preferably on MicroSD, if any). Swipe to start backup. โš ๏ธ Important: Data backup can weigh 10-30 GB โ€“ Make sure there is enough space!
Can I update TWRP through the app itself?
No, Redmi 9A TWRP does not support the update on the fly due to the limitations of the bootloader. To update the version, you need to re-flash recovery.img through fastboot, as described in section 4.
How to return the standard MIUI Recovery?
Download the original recovery.img for your version MIUI (can be made from full firmware dandelion_global_images) The following is a fastboot flash recovery. recovery.img After that, the loader will remain unlocked, but the recovery will return to the standard.