Getting root rights on Xiaomi smartphones is a process that opens users to hidden system functions, but requires caution and understanding of all risks. 4PDA There are regular ways to unlock the bootloader, install custom recavator and obtain super-user rights, but the information is often scattered and contradictory. MIUI 14/15 manufacturer's requirements.
It's important to understand that root rights void warranty, can disrupt banking applications and, if you do the wrong thing, turn a device into a brick. We'll look at formal and informal ways, including unlocking through the Mi Unlock Tool, installing it. TWRP We will pay special attention to the nuances for popular models - Redmi Note 12 Pro+, POCO F5 Xiaomi 13T, where the process is different.
If you are new to Android, we recommend you first learn the theory: what is a bootloader, why you need fastboot, and why Magisk is preferable to old methods like SuperSU. TWRP.
Preparation of the device: what to do before the start
Before you start unlocking, you need to follow a few critical steps, and skipping any of them can lead to the blocking of your Mi Account or the device is inoperable.
First, make sure your Xiaomi has debugging enabled on USB and unlock OEM. For that:
- Go to Settings β About Phone and 7 times click on the MIUI version to activate the Developer Mode.
- Go back to the basic settings, open Additional β for developers.
- Activate the USB Debugging and OEM Unlock switches.
Second, link your Mi Account to your device, and without that, unlocking the bootloader will be impossible.
- πΉ The latest version is installed on the device. MIUI (Update through Settings β Updating the system).
- πΉ Mi Account confirmed by email and phone (you can check in Settings) β Mi Account).
- πΉ All screen locks are disabled on the phone (PIN, pattern lock, print).
Also prepare a PC with installed:
- π₯οΈ Mi Unlock Tool (Last version).
- π₯οΈ Drivers. ADB/Fastboot (You can install it through Android Studio or XDA Developers).
- π₯οΈ Archives with TWRP for your model (download only from the official website or verified themes on the website) 4PDA).
π‘
If the Mi Unlock Tool is a βCouldnβt verify deviceβ error, try 5.5.224.30, which is often more stable than new releases.
Unlock the bootloader with the Mi Unlock Tool
Officially unlocking a bootloader is a must before getting root. Xiaomi made it harder in 2023 by introducing a mandatory wait (72 to 360 hours) after an account is tied.
Connect your phone to your PC in fastboot mode (turn off the device, then press Volume down). + Power. In the command line, check the connection:
fastboot devicesIf the device is identified, run the Mi Unlock Tool and follow the steps:
- Sign in with the same Mi Account as you do on your phone.
- Agree with the warnings (the warranty will be cancelled).
- Click Unlock β if a waiting message appears, wait for the specified time.
The waiting timer depends on the model and the region:
| Model | Waiting period (2026) | Notes |
|---|---|---|
| Redmi Note 12 Pro+ | 168 hours | For Chinese firmware - 72 hours |
| POCO F5 | 72 hours | European versions are unlocked faster |
| Xiaomi 13T | 360 hours | Requires confirmation through SMS |
| Redmi 10C | 72 hours | Older scaling may not require waiting. |
π‘
If the Mi Unlock Tool is 99% down, try disabling the antivirus, using a different one. USB-Port or restart your PC in Safe Mode.
β οΈ Note: Once the bootloader is unlocked, the device will reset to factory settings. All data (including photos and messages) will be deleted. β Additionally. β Backup.
Installation of TWRP: version selection and firmware
Castom Recovery TWRP It's necessary for Magisk and modified firmware installations, but not all versions. TWRP Compatible with the latest Xiaomi security patches, such as the Redmi Note 12 Pro+ Special assembly with support is required dynamic_partitions.
Download the correct version TWRP for your model:
- π± For Snapdragon devices (e.g, POCO F5) β Look for assemblies marked United.
- π± For MediaTek (Redmi Note 12) β only versions with support for mtk-client.
- π± For flagships (Xiaomi) 13 Ultra β check the topics on the 4PDA marked "[TWRP]".
The installation is performed via fastboot:
fastboot flash recovery twrp-3.7.0_12-0-redwood.img
fastboot reboot recoveryIf, after the reboot, TWRP If it doesn't start, it loads into a standard recavery, so the anti-rollback protection is activated:
Turn off signature verification in settings TWRP (Settings β Disable DM-Verity)
Sweep the patch. no-verity-opt-encrypt.zip
Reboot back to the TWRP and re-install Magisk
-->
β οΈ Note: On some models (e.g. Xiaomi) 12T) installation TWRP This results in loss of data in the section /data. Before the firmware be sure to make a backup through ADB: adb backup -apk -obb -shared -all -f backup.ab.
Install Magisk and obtain root rights
Magisk is a modern alternative to SuperSU that allows you to hide root from banking applications and updates. OTA. The last stable version at 2026 is Magisk 26.4 (avoid alpha unless you are sure of their stability).
Download Magisk from GitHub (file) Magisk-v26.4.zip) and follow the steps:
- Copy the archive onto a phone or flash drive.
- Boot in. TWRP (Turn off the device, then press the Volume up. + Nutrition).
- Press Install, select Magisk-v26.4.zip and swipe for confirmation.
- After installation, reboot to the system.
Check for root via the Magisk app or a command in the terminal:
suIf an input invitation (#) appears, then root is successfully received.
To hide root from banking applications (for example, Sberbank Online or Tinkoff):
- π‘οΈ Open Magisk, go to Settings β MagiskHide.
- π‘οΈ Turn on the option and mark the apps that need to hide root.
- π‘οΈ Reset the device.
What if Magisk doesnβt hide root?
Typical problems and their solutions
Even with the correct instructions, users often encounter errors, and here are the most common ones and how to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Fastboot: unknown command | Outdated drivers ADB | Install the latest version of Platform Tools |
| This device isn't connected in Mi Unlock | Wrong. USB-port | Use the original cable and USB 2.0 port |
| Hanging on the MI logo after firmware | Incompatible version of TWRP | Fly the stock recaps through fastboot flash recovery stock_recovery.img |
| Magisk not installed after restart | Wrong slot (A/B) | Install Magisk on both slots or use the fastboot command --set-active=a |
If the device does not turn on after unlocking the bootloader (black screen or freeze on Mi Logo), try:
- Download to fastboot and flash the stock firmware through the Mi Flash Tool.
- Use the Xiaomi Flash Tool with the clean all and lock option (return warranty, but delete all data).
β οΈ Note: On Lock Bootloader State devices (e.g. Xiaomi 14), unlocking can lead to a hardbrick hardware unit. Before starting, check the bootloader status with the command: fastboot getvar anti. If the value is anti: 4, the risk of blocking is extremely high.
Features for popular Xiaomi models
The process of rooting can vary significantly depending on the model. Below are the key nuances for the most discussed on the Internet. 4PDA device:
Redmi Note 12 Pro+ (MediaTek Dimensity 1080 chipset):
- π§ A libmtk-client patch is required to work with TWRP.
- π§ bootloader is blocked after 3 failed attempts to unlock (reset via Mi Account is required).
- π§ Recommended version TWRP: 3.7.0_12-0 from XDA.
POCO F5 (Snapdragon 7+ Gen 2):
- π§ Supports fastbootd β you can stitch images without TWRP.
- π§ Be sure to turn it off. AVB 2.0 Before installing Magisk (use the fastboot command) --disable-verity --disable-verification flash vbmeta vbmeta.img).
Xiaomi 13T (Dimensity 8100-Ultra):
- π§ Requires a special patch to unlock the bootloader through EDL (discussed in this topic on 4PDA).
- π§ Incompatible with Magisk 26.3 and below β use only 26.4+.
π‘
For devices on Dimensity (MediaTek), be sure to check the firmware version before unlocking. MIUI Block the possibility of rollback to the old version, which can lead to hardbrick.
Alternative methods of obtaining root
If the standard method doesn't work, consider alternatives. They're more risky, but sometimes they're the only way out.
1. Unlock through EDL (Emergency Download Mode):
Suitable for "brick" devices or models with fastboot locked.
- π Special cable (EDL cable) or circuiting of test points on board.
- π Mi Flash Pro and an authorized Mi Account with rights EDL.
- π Marked firmware EDL (Only download from verified sources).
2.Install Magisk via patch APK:
If TWRP not available, it can be patched boot.img via Magisk app:
- Download stock firmware for your model with Xiaomi Firmware Updater.
- Remove boot.img from the firmware archive.
- In the Magisk app, select Install β Select and Patch a File and specify boot.img.
- Sweep the resulting file through fastboot flash boot magisk_patched.img.
3. Use of custom firmware with pre-sewn root:
Firmware like LineageOS or Pixel Experience often comes with an already integrated Magisk.
- β οΈ You will lose the functionality of Xiaomi cameras (GCam port required).
- β οΈ Maybe it won't work. NFC print-sensor.
Security after obtaining root
Root rights give you complete control of the system, but they also open the door to malware and instability.
1. Magisk setup:
- π Turn off automatic module updates in Magisk settings.
- π Install SafetyPatch module to pass SafetyNet.
- π Regularly check system integrity through Magisk β Superuser β Check SafetyNet.
2. Protection against malware:
- π‘οΈ Do not install modules from unverified sources (especially those marked systemless).
- π‘οΈ Use AFWall.+ for controlling network access of applications.
- π‘οΈ Regularly check the kernel logs for suspicious activity (cat) /proc/kmsg).
Backup:
With root rights, backups become critical.
- πΎ TWRP Create a complete system image (Backup) β Select Partitions β Swipe to Backup).
- πΎ Swift Backup for backup of applications and data (requires root).
- πΎ Adb backup command to save settings and SMS.
β οΈ Note: On devices with an unlocked bootloader, Xiaomi can remotely block access to services (such as Mi Cloud or Mi Fit). To avoid this, turn off automatic synchronization in your Mi Account settings.