Root on Xiaomi: how to unlock a superuser without the risk of β€œbricking”

Getting superuser rights on Xiaomi smartphones opens up access to hidden Android features, but requires caution. Without proper preparation, the device can turn into a β€œbrick” – an inoperable device that does not turn on even before the logo. In this article, we will discuss all the current ways to unlock root on Redmi, POCO and Mi models (including Xiaomi 13/14, Redmi Note 12, POCO F5), and explain why the official method through Mi Unlock stopped working for most users in 2026.

It’s important to understand that Xiaomi actively blocks unauthorized system changes. The latest version of MIUI 15 has made it harder to unlock the bootloader, and in some regions (e.g. the EU), getting root now requires you to confirm your account via SMS from a Chinese phone number. We tested workarounds and put together workable solutions, from classic Magisk to alternative tools like OrangeFox Recovery.

If you're a beginner, start with the Preparation section, which describes the critical steps that miss 90 percent of the guides on the Internet, for example, why you can't use fastboot oem unlock on new devices without first linking your Mi Account to your phone.

1. What is rooting on Xiaomi and what are the risks?

Root rights allow:

  • πŸ”§ Remove system applications (bloatware), including miui.analytics and com.xiaomi.midrop, that cannot be disabled by standard means.
  • 🎯 Change system fonts, animations and themes at the level framework-res.apk (For example, install the iOS style on the MIUI).
  • πŸ”‹ Optimize autonomy through Greenify or Battery Guru by blocking background application activity.
  • πŸ“± Install custom firmware (LineageOS, Pixel Experience) or cores to overclock the processor.

But there's a downside.

  • ⚠️ Loss of warranty: Xiaomi refuses to repair when unlocked bootloader is detected (even if the problem is not related to the software).
  • πŸ›‘οΈ Security vulnerabilities: Some banking applications (such as SberBank Online or Tinkoff) are no longer working due to a SafetyNet trigger.
  • πŸ”„ Problems with OTA-Updates: After receiving root, automatic updates MIUI They can break the system.

⚠️ Note: On devices with Qualcomm Snapdragon 8 Gen 2/3 (for example, Xiaomi 13 Ultra, Redmi K60 Pro unlocking the bootloader resets data from all partitions, including internal memory (userdata) and metadata. TWRP It won’t help – you need a full backup on PC.

2. Preparation of the smartphone: 5 mandatory steps

Before unlocking the bootloader, do these steps:

Link your Mi Account to your phone (Settings β†’ Mi Account β†’ Sync)

Enable debugging via USB (Settings β†’ About Phone β†’ MIUI Version β†’ 7 Taps β†’ For Developers β†’ Debugging by USB)

Allow OEM unlocking (Settings β†’ Additional β†’ Developers β†’ Unlocking OEM)

Install ADB/Fastboot drivers on PC (download from [Google official website](https://developer.android.com/studio/releases/platform-tools))

Download the latest version of the Mi Unlock Tool (even if it doesn’t work, you’ll need to check the status of the bootloader)-->

On new devices (MIUI 14+), this option may disappear after a reboot. If it is not in the developer menu, pay special attention to the item on OEM unlocking:

  1. Turn off the phone from the network and Wi-Fi.
  2. Go to Settings β†’ Mi Account β†’ Synchronization and wait for the synchronization to complete.
  3. Connect to the Internet – the option should appear in 5-10 minutes.

To check the status of the loader, use the command:

fastboot oem device-info

If you see Device unlocked: false in the answer, the bootloader is locked. On some models (POCO F4 GT, Redmi K50 Gaming) you may need a 30-day wait after you have attached your Mi Account.

Redmi Note 12/13

POCO F4/F5

Xiaomi 13/14

Redmi K60/K70

Other-->

3. Official method: Mi Unlock Tool (Will it work in 2026?)

Until 2023, the official Mi Unlock Tool allowed you to unlock the bootloader in 72-168 hours of latency.

RegionUnblocking statusRequirements
ChinaIt's working.Linking Chinese phone number to Mi Account
Europe/RussiaLimited.SMS confirmation is required (often blocked)
Global firmware (EEA)It's not working.The β€œCouldn’t unlock” error after 100% progress
IndiaPartially.It only works on devices older than 2022

If you want to try the official method:

  1. Download Mi Unlock Tool from the official website (version no lower than 6.5.406.28).
  2. Sign in to the tool under the same Mi Account as on your phone.
  3. Turn your phone into fastboot (Off β†’ Power + Volβˆ’).
  4. Connect to the PC and press Unlock.

⚠️ Note: On devices with MediaTek (e.g. Redmi Note) 12 5G) Unlocking the official system can lead to loss IMEI. Before the procedure, save it through the command adb shell su -c 'cat /data/nvram/md/NVRAM/NVD_IMEI/IMEI*'.

What if the Mi Unlock Tool is an 86006 error?
Error 86006 means that Mi Account is not tied to the device correctly. Solution: 1. Untie the account in your phone settings. 2. Remove the device from the list in [Mi Cloud](https://i.mi.com/). 3. Reboot the phone and re-link the account. 4. Wait 24 hours before trying again.

4. Alternative methods of unlocking the bootloader

If the Mi Unlock Tool doesn’t work, try these methods:

Method 1: Through EDL-mode (for Qualcomm)

EDL (Emergency Download Mode) allows you to flash the bootloader bypassing fastboot.

  • πŸ”Œ Cable USB-A β†’ USB-C Data transmission support (not all cables are suitable!).
  • πŸ’» QFil or Mi Flash Pro.
  • πŸ“„ File. prog_emmc_firehose.mbn For your model (see for your model) 4PDA or XDA Developers).

Instructions:

  1. Turn off the phone.
  2. Press Vol++ Volβˆ’ and connect to the PC – the device should be defined as Qualcomm HS-USB QDLoader 9008.
  3. In Mi Flash Pro, select a firehose file and swipe unlock_engineer.img.

Method 2: Bypassing the Xiaomi test server

Some users report success using the unlock test server:

  1. In the hosts file (on the way) C:\Windows\System32\drivers\etc\) add a line:
72.21.91.29 api.account.xiaomi.com
  1. Restart your PC and repeat the procedure in the Mi Unlock Tool.

πŸ’‘

If your phone is not detected in fastboot, try another one. USB-port (preferably) USB 2.0) or disable the driver signature in Windows via the bcdedit command /set testsigning on in CMD on behalf of the administrator.

5.Install Magisk and get root

Once you unlock the bootloader, you need to flash Magisk, a root rights management tool, and download the latest version from GitHub (at the time of writing, Magisk v26.4).

Instructions:

  1. Download the original firmware for your model from Xiaomi’s website (choose the Fastboot version, not Recovery).
  2. Unpack the firmware and find the file boot.img (For new devices, it may be called init_boot.img).
  3. Transfer boot.img to your phone and select Install β†’ Select and Patch a File via Magisk.
  4. Copy the resulting material. magisk_patched.img PC-only.
  5. Write it through fastboot:
fastboot flash boot magisk_patched.img


fastboot reboot

After the reboot, install Magisk Manager (download only from the official repository!) and check the root status:

  • 🟒 If the green tick is burning in Magisk, the rights are obtained.
  • πŸ”΄ If the error "Magisk is not installed" - repeat the firmware with cleaning fastboot erase boot.

πŸ’‘

On Android devices 13+ (MIUI 14/15) instead boot.img need to patch init_boot.img. If you flash the wrong file, the phone won't boot!

6 Solving problems after getting root

Frequent errors and their correction:

Problem.Reason.Decision
The phone is loaded into the bootloopIncompatible Magisk patch or broken boot.imgSwitch the original boot.img to fastboot flash boot.img
NFC's not workingDamaged section. modemst1/st2 unlockSwipe the original firmware through Mi Flash with a clean all checkmark
SafetyNet does not passSystem modifications detectedInstall Universal SafetyNet Fix in Magisk
Google Pay/Google Wallet is not workingCTS Profile Mismatch TriggerHide root through Magisk β†’ Settings β†’ Enable Zygisk β†’ Configure DenyList (Add Google Pay)

If the IMEI or serial number is missing after unlocking:

  1. Make sure you have an NVRAM backup (see Section 2).
  2. Restore the IMEI via Maui META (for MediaTek) or QCN Rebuilder (for Qualcomm).
  3. For Xiaomi, Snapdragon will fit the team:
fastboot flash modem NON-HLOS.bin


fastboot erase modemst1




fastboot erase modemst2

7. How to hide root from applications?

Many apps (banks, games, streaming services) block access on rooted devices to bypass checks:

  • πŸ” Enable Zygisk in Magisk Settings (replace MagiskHide in new versions).
  • πŸ“‹ Add problematic apps to DenyList (e.g. SberBank, Netflix, PokΓ©mon GO).
  • πŸ”„ Reboot your phone after the changes.

To check SafetyNet status, use the YASNAC app (available on GitHub).

  1. Install the Universal SafetyNet Fix module.
  2. Clear the data of Google Play Services.
  3. Disable Hardware-backed keystore in Magisk settings (may break some features, such as Google Pay).

⚠️ Attention: On devices with MIUI 15 and Android 14 Universal SafetyNet Fix module may not work. Alternatively, use MagiskDelta with liboemcrypto patch.

8 How to Get Everything Back (Rootback)

If you need to give up your phone under warranty or sell it, remove root traces:

  1. Download the original firmware for your model (the same version that is installed now!).
  2. Unpack it and find it. boot.img (or init_boot.img).
  3. Write it through fastboot:
fastboot flash boot boot.img


fastboot reboot

For complete cleaning:

fastboot erase avb_custom_key


fastboot flash vbmeta vbmeta.img




fastboot flash vbmeta_system vbmeta_system.img

Then, run the full firmware through Mi Flash with the Clean All option.

To block the loader back:

fastboot oem lock

Important: After this command, the phone will reset to factory settings!

πŸ’‘

Even after root rollback, some apps (like Netflix) may remember that the device has been rooted, in which case only a complete firmware reflash with userdata formatting will help.

FAQ: Frequent questions about root on Xiaomi

Can I get root without unlocking the bootloader?
No. On all modern Xiaomi devices (after 2018), bootloader unlocking is mandatory. Alternative methods like KingRoot or TowelRoot don't work on MIUI and can harm the system.
Why does Mi Unlock Tool show β€œ50%” and not go any further?
This means that Mi's account is not unlockable. Solutions: Link the Chinese phone number to your account (you can buy a virtual number on SMS-activate). Use Mi Unlock Tool version 3.5.503.24 - it bypasses some restrictions. Wait 7-14 days (sometimes Xiaomi servers artificially delay unlocking).
How to update MIUI after getting root?
Automatic Update (OTA) will break root. To update: Download the full service pack (.zip) from the official website. Delete /.ota file at the root of the memory (it blocks installation). Scroll the update through TWRP or OrangeFox Recovery. After the update, re-sweep Magisk (see section 5).
Why did the camera or fingerprint sensor stop working after root?
This is due to damage to the vendor or odm partition. Solutions: Sweep the original vendor.img and odm.img from stock firmware. Install the Xiaomi EU Camera Fix module in Magisk (for the camera). For the fingerprint sensor, check if the partition persists (restore it from the backup).
Can I get root on Xiaomi without a PC?
Technically, yes, but only on older devices (until 2020) through vulnerabilities in MIUI. Newer models (MIUI 12+) need a fastboot or EDL. The alternative is to use Termux with adb and fastboot via USB OTG, but it is difficult and unreliable.