Getting root rights to Xiaomi Redmi 9 opens up access to hidden Android capabilities, but requires careful attention.This process involves unlocking the bootloader, installing a custom TWRP recap, and installing Magisk, a modern alternative to the outdated SuperSU. It is important to understand that rooting voids the warranty and can lead to unstable system operation if the sequence of actions is broken.
The Redmi 9 (codenamed lancelot) has some peculiarities in the unlocking process: Xiaomi has tightened the requirements for Mi accounts, and some firmware versions block the installation of unofficial backups. In this article, current methods for 2026, tested on the latest versions of MIUI and Android 10/11.
What is Redmi 9 Rooting and What are the Risks?
Root rights allow:
- ๐ง Remove system applications (bloatwar) and free up memory
- ๐ Modify the core to improve performance or autonomy
- ๐ฑ Install custom firmware like LineageOS or Pixel Experience
- ๐ Use applications like Titanium Backup or AdAway for deep customization
But there is a downside:
- โ ๏ธ Loss of warranty (Xiaomi records unlock status at service centers)
- ๐ก๏ธ Malware vulnerability (root access bypasses standard Android restrictions)
- ๐ Risk of "brika" (turning the phone into a "brick") with firmware errors
- ๐ต Problems with Google Pay, Netflix and banking apps (due to SafetyNet)
โ ๏ธ Attention: On Redmi 9 firmware MIUI 13+ lockdown TWRP via fastboot โ requires a bypass through the patch boot.img. Details in the section about Magisk.
If you use your phone to work with financial applications or enterprise systems (such as 1C or CryptoPro), rooting may block access to them. Before you start, check whether critical services are compatible with rooted devices.
Preparing for rooting: what to do before unlocking
Before starting the process, make sure that:
Create a backup copy of data (photos, contacts, SMS)
Charge your phone at least 70%
Install ADB/Fastboot drivers on PC
Download the Mi Unlock Tool for the latest version
Disable Find My Device in Google Settings
-->
Pay special attention to backup. Even if you successfully root some data (such as MIUI settings or game saves) may be lost.
- ๐ Use Mi. PC Suite for copying contacts and SMS
- โ๏ธ Sync photos with Google Photos or Mi Cloud
- ๐ฎ For games โ enable cloud-based saving in Google Play Games
- ๐ฑ Take screenshots of important settings (for example, APN mobile-internet)
Also check the firmware version in Settings โ About Phone โ MIUI Version. For Redmi 9, the best versions for rooting are:
| MIUI version | Android | Notes |
|---|---|---|
| 12.0.8-12.0.12 | 10 | Stable, minimal bugs with TWRP |
| 12.5.1-12.5.4 | 11 | Requires patch boot.img for Magisk |
| 13.0.1+ | 11 | Block TWRP, need to bypass through fastbootd |
โ ๏ธ Note: If your Redmi 9 is purchased in 2023 or later, check the bootloader status with the fastboot oem device-info command. OEM Unlock at the hardware level.
Unlock the bootloader with the Mi Unlock Tool
Xiaomi requires official unlocking of the bootloader through the Mi Unlock Tool utility, which takes up to 720 hours (30 days) of waiting for new accounts.
- Connect your phone to your Mi Account: Go to Settings โ Mi Account โ Sync and enable all options. Then to Settings โ Additional โ For developers, activate OEM Unlock and USB Debugging.
- Connect your phone to your PC in Fastboot mode: Turn off the device, then press Volume Down + Power before the Fastboot logo appears.
- Launch Mi Unlock Tool on behalf of the administrator, log in to your Mi Account and follow the instructions. If you see a message that says "Couldn't unlock", you should wait for the account to be linked to the device (usually 168 hours for old accounts).
On Redmi 9 with MIUI 13+ firmware, the utility can show an error "Current account is different from the account info on the device" even when properly anchored. Solution: Before unlocking, reset to factory settings via fastboot with fastboot -w command.
After successful unlocking, the bootloader will be marked as Unlocked, but this does not give root rights - only the ability to install custom firmware and recovery.
๐ก
If the Mi Unlock Tool is 99% over, try disabling the antivirus on your PC and using the original one. USB-Xiaomi cable, port change will also help USB on the motherboard (preferably) USB 2.0).
Installation of TWRP Recovery on Redmi 9
TWRP (Team Win Recovery Project) is a customized recavery needed to run Magisk firmware and create backups. For Redmi 9 (lancelot), use a special build, as the official version may not support data encryption.
Download the current one. twrp-3.7.0_12-lancelot.img official website TWRP or from the subject 4PDA. Installation is performed via fastboot:
fastboot flash recovery twrp-3.7.0_12-lancelot.img
fastboot boot twrp-3.7.0_12-lancelot.imgOnce you reboot the TWRP, you can't let the system modify the recovery partition, which will result in the replacement of the TWRP with the stock recavator.
- In TWRP, go to Advanced โ File Manager.
- Delete /system/recovery-from-boot.p file (if any).
- Create an empty file with the same name to prevent it from being recreated.
If the phone is loaded into a stock recavator after installing TWRP, then the firmware has anti-rollback protection, in which case use an alternative method of firmware Magisk through patched boot.img (described in the next section).
What to do if TWRP asks for a password?
Magisk firmware for root rights
Magisk is a modern root rights tool that masks changes from verification systems (such as SafetyNet). v26.1+.
There are two ways to install:
Method 1: TWRP (if installed)
- Download the latest Magisk-v26.1.zip from GitHub.
- Move the archive to your phone or flash drive.
- In TWRP, select Install โ Select file โ Magisk-v26.1.zip.
- After installation, reboot to the system.
Method 2: Through patched boot.img (for MIUI 13+)
If TWRP is not installed, use this method:
- Download the stock firmware for your version of MIUI from the official website.
- Remove boot.img from the firmware archive (located in the image folder).
- Install Magisk Manager on your phone, select Install โ Select and Patch a File and select boot.img.
- Patch file magisk_patched.img Copy it on PC and run through fastboot: fastboot flash boot magisk_patched.img fastboot reboot
After the reboot, check for root rights through the Magisk Manager app or by a command in the terminal:
suIf the command returns the # invitation, the root is installed successfully.
๐ก
On Redmi 9 with MIUI 13+, the only working rooting method is to run a patched boot.img firmware. Attempts to install Magisk via TWRP will result in looped bootloop.
Solving problems after rooting
Even with the right installation, there can be problems.
| Problem. | Reason. | Decision |
|---|---|---|
| The phone is not loaded (bootloop) | Incompatible boot.img or Magisk | Swipe stock boot.img through fastboot and repeat the process |
| Google Pay is not working. | Not coming through SafetyNet | Install MagiskHide Props Config and activate MagiskHide |
| No network after rooting | Damaged modem or EFS | Restore EFS from the backup or flash the stock firmware |
| TWRP is dumped on stock Recovery | Protection of recovery-from-boot.p | Delete the file via TWRP File Manager (described above) |
If banking applications (such as SberBank Online or Tinkoff) stopped working after rooting, try:
- ๐ Enable MagiskHide in Magisk settings and add the app to the hidden list.
- ๐ฑ Install Universal SafetyNet Fix via Magisk.
- ๐ Rename the application package (for example, via App Cloner).
โ ๏ธ Note: On some versions MIUI 13 for Redmi 9, the SafetyNet Fix module may not work due to hardware certification of the HardwareBacked Keystore. MIUI 12.5.
How to return the phone to its original state
If you need to give up your phone under warranty or sell it, you need to remove the root rights and return the stock firmware.
- Download the full stock firmware (.tgz or.zip) for your model from the official Xiaomi website.
- Unpack the archive and place the file flash_all.bat (for Windows or flash_all.sh (for Linux/Mac) firmware.
- Connect your phone in Fastboot mode and start the script. To clean it completely, use the command: fastboot -w This will reset all data and return the stock receivers.
- After firmware check the status of the bootloader command: fastboot oem device-info Device unlocked: false means that the phone has returned to factory condition.
If after returning to stock firmware, the phone does not pass SafetyNet check, perform additional cleaning:
- ๐ฑ Install stock recavers via fastboot flash recovery stock_recovery.img.
- ๐ Perform a reset via fastboot -w twice.
- ๐ง Check the integrity of the miscc partition (may contain unlock tags).
Xiaomi keeps a log of unlockers over IMEI, so even after you return to the drain, the service center can see the history of changes. If the warranty is critical, avoid rooting.