How to get a root right on Xiaomi: a complete guide with unlocking the bootloader and installing Magisk

Getting root rights on Xiaomi smartphones opens up access to hidden Android features, but requires caution. Without proper preparation, you risk turning the device into a brick or losing your warranty. In this article, we will discuss current methods for unlocking the bootloader and installing Magisk for models from 2023-2026, taking into account changes in Xiaomi policy and MIUI features.

It’s important to understand that the procedure is different for Redmi, POCO and the Mi lineup due to different firmware versions and types of bootloaders, and we’ll detail each step from PC prep to final superuser rights checks, and also caution against typical bugs that lead to crashes.

What do root rights give to Xiaomi and what risks do they carry?

Root access allows:

  • πŸ”§ Remove pre-installed system applications (bloatware) and free up memory.
  • ⚑ Accelerate the device through fine-tuning the kernel and task scheduler.
  • πŸ“± Install custom firmware (LineageOS, Pixel Experience) and modified recovery (TWRP).
  • πŸ”’ Block ads at the system level through the hosts file or Magisk modules.

But there is a downside:

  • 🚫 Loss of warranty: Xiaomi officially bans bootloader modifications.
  • πŸ›‘οΈ Security vulnerabilities: some banking applications (e.g. Sberbank Online) will no longer work.
  • πŸ”„ Risk of β€œbricking”: Wrong actions when unlocking can make your phone inoperable.

⚠️ Attention: On devices with MIUI 14+ HyperOS (2026 Xiaomi has tightened the check of the bootloader, and for some models (Xiaomi) 13/14, Redmi Note 12 Pro+) wait 168 hours after account link.

πŸ“Š Why You Need Root Rights?
Removal of Bloatware
Installation of custom firmware
Overclocking the processor
Blocking ads
Other

Preparing a smartphone and PC: what to do before unlocking

Before starting the procedure, make sure that:

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

Charge your phone at least 70%

Install the latest version of MIUI via Settings β†’ About Phone β†’ System Update

Connect to Mi Account and confirm it via SMS/email

Download Mi Unlock Tool (2026 version)

-->

Pay special attention to drivers. On a Windows 10/11 PC, you need to:

  1. Disable driver signature verification (Shift + Reboot β†’ Diagnostics β†’ Additional settings β†’ Download options β†’ Reboot with verification disabled).
  2. Install Mi Flash Tool and drivers for Fastboot mode (download from the official website).
  3. Enable USB debugging: go to Settings β†’ About Phone β†’ MIUI version (click 7 times), then to Settings β†’ Additional β†’ For Developers β†’ Debugging over USB.

For the POCO F5, Redmi K60 and later models, you will also need:

  • πŸ“± Disable Data Protection MIUI safety-setting.
  • πŸ”— Link the device to the Mi Account in Settings β†’ Xiaomi account β†’ Mi Cloud β†’ Find the device.

πŸ’‘

If the Mi Unlock Tool doesn’t see the device in Fastboot mode, try using the original one. USB-Xiaomi cable and port USB 2.0 (blue) on PC.

Unlock the bootloader: step-by-step instructions for MIUI 14 and HyperOS

The unlocking procedure has changed since 2023, with most models now having a 168-hour wait after the account is tied, with the exception of devices up to the Redmi Note 11 (2022), which is 72 hours.

Steps to unlock:

  1. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  2. Connect the device to your PC and start the Mi Unlock Tool (you need to log in to the same Mi Account as you do on your phone).
  3. Press Unlock. If a message appears, it means that 168 hours have passed.
  4. After successful unlocking, the phone will automatically reset to factory settings.
Xiaomi modelWaiting timeFeatures
Xiaomi 13/13T/14168 hoursRequires HyperOS 1.0+
Redmi Note 12 Pro+/13 Pro+168 hoursSupport only through Mi Unlock 2026
POCO F5/F5 Pro72 hoursYou can use older versions of the tools.
Redmi 10/Note 1172 hoursSupport for TWRP without additional patches

⚠️ Warning: If the phone is stuck on the logo after unlocking MI, Don't panic. Hold the volume up. + 10 seconds power for forced reboot.If that doesn't work, you'll need firmware through Fastboot.

Installation of TWRP and Magisk: obtaining root rights

Once you unlock the bootloader, you need to install custom recovery (TWRP) and Magisk to manage root access, and it’s important to use versions that are compatible with your model and the version of MIUI/HyperOS.

Download:

  • πŸ“± Official TWRP for your model (for example, twrp-3.7.0_12-vayu.img for POCO X3 Pro).
  • πŸ”§ The latest version of Magisk (at 2026 – Magisk) v26.4).

Installation instructions:

1. Move the downloaded Magisk (.apk) to the phone's memory.


2.Reboot the device to Fastboot mode:




adb reboot bootloader




3. Squeeze the TWRP:




fastboot flash recovery twrp.img




4. Without leaving Fastboot, go to recovery:




fastboot reboot recovery




5. In TWRP, select "Install" β†’ specify the path to Magisk.apk β†’ swipe for confirmation.




6. Reboot to the system.

To check root rights, install the Root Checker app from Google Play or run in the terminal:

su

If a superuser invites, the access is successful.

What if Magisk is not installed?
If Magisk doesn’t appear in the list of apps after the reboot, try it: 1. Install Magisk via module in TWRP (Select "Install to Inactive Slot" for devices with A/B-partition). 2. Use the boot image patch through Magisk: - Download the original boot.img for your firmware (can be extracted from fastboot firmware). - In Magisk, select "Install" β†’ "Select and Patch a File" β†’ point out boot.img. - Switch the patch file to fastboot: fastboot flash boot magisk_patched.img.

Solving Typical Problems After Getting Root

Even with the right installation, there can be difficulties.

1.The phone does not load (bootloop)

The reason is that it is not a compatible version of TWRP or Magisk.

Decision:

  • πŸ”„ Sweep the original boot.img via fastboot flash boot boot.img.
  • πŸ“₯ Install another version TWRP (For example, an unofficial assembly for your model).

2 Bank applications are not working

Reason: Root access is detected via SafetyNet.

Decision:

  • πŸ”’ Install MagiskHide Props Config and activate MagiskHide for problem applications.
  • πŸ”„ Update SafetyNet Certificates with Universal SafetyNet Fix.

3. no network after firmware

Cause: damage to the modem partition.

Decision:

  • πŸ“‘ Sweep the original modem.img stock-stack.
  • πŸ”§ Reset network settings in Settings β†’ SIM-maps and mobile networks β†’ Resetting settings.

πŸ’‘

If Google Pay or Netflix stop working after receiving root, use the MagiskHide module and turn off root for these applications in the Magisk settings.

How to get it back: root removal and bootloader lock

If you need to return the device to its original state (for example, for warranty repairs), follow the following steps:

  1. Uninstall the Magisk menu (Uninstall β†’ Complete Uninstall).
  2. Download boot.img: fastboot flash boot.img
  3. Return stock recovery: fastboot flash recovery.img
  4. Block the bootloader: fastboot oem lock ⚠️ Warning: Locking the bootloader will result in a complete data reset.

HyperOS models will also need to flash the full fastboot-ROM through the Mi Flash Tool by selecting the clean all and lock option.

FAQ: Answers to Frequent Questions

Can I get root on Xiaomi without unlocking the bootloader?
No. Xiaomi uses Anti-Rollback protection, which blocks any modifications without official unlocking. Alternative methods (such as through vulnerabilities) only work on very old models (until 2018) and are fraught with data loss.
Why does Mi Unlock Tool write "Couldn't unlock" even after 168 hours?
Possible causes: πŸ”Œ Unstable Internet connection (use an Ethernet cable). πŸ“± The device is not tied to your Mi Account (check Settings). β†’ Xiaomi account β†’ Mi Cloud). πŸ”„ Mi Unlock Tool (download the latest from the official website) Solution: reconnect your account, reboot your PC and phone, try again.
How to Upgrade MIUI/HyperOS After Getting Root
Update via Settings β†’ Update will cause root loss. To save access: Download the full service pack (.zip) with Xiaomi Firmware Updater. Sweat it through TWRP, pre-disable signature verification (Install β†’ Install Image β†’ select the file). After the update, re-sweep Magisk.
Will Face Unlock and Fingerprint Work After Root?
On most models (Xiaomi 12/13/14, Redmi Note 12), biometrics are still functional, but on HyperOS devices you may need to: Re-register fingerprints/face in security settings. Install Biometrics Fix for Magisk (available on the XDA forum).
Can I get root on Xiaomi without a PC?
Theoretically, yes, but only on older models (until 2020) through vulnerabilities in MIUI. For modern devices (Redmi Note 12, POCO X5 and newer), unlocking the bootloader and TWRP firmware necessarily require a PC with ADB/Fastboot.