Getting root rights on Xiaomi smartphones opens up access to hidden system functions, allows you to remove embedded applications, optimize performance and install custom firmware. However, the process requires care: wrong actions can lead to a device brique or loss of warranty. In 2026, the procedure became more complicated due to the tightening of the security policy of MIUI and the new HyperOS, but remains feasible for most models.
This article covers everything from unlocking the bootloader to installing Magisk to manage root access.Weโll look at the official and alternative methods that are relevant for MIUI 14/15 and HyperOS devices, including the Redmi Note 12/13, POCO F5/X5, Xiaomi 13/14 and other popular models, with a particular focus on circumventing new restrictions such as linking a Mi Account account to a device and checking for anti-rollback.
What are root rights and why do you need them on Xiaomi?
Root rights (or superuser rights) give you full control of the Android operating system, and on Xiaomi smartphones, this allows you to:
- ๐งน Remove system applications (bloatware) such as Mi Browser, Mi Music, GetApps and others that cannot be uninstalled by standard means.
- โก Optimize performance: disable unnecessary services, overclock the processor (with kernel support), configure the task scheduler.
- ๐ง Install custom ROMs like LineageOS or Pixel Experience for pure Android without shell MIUI.
- ๐ Block ads at the system level with AdAway or Blokada.
- ๐ฑ Modify the interface: modify fonts, animations, themes deeper than allows MIUI Themes.
However, there are risks:
- โ ๏ธ Loss of warranty โ Xiaomi does not officially support unlocking the bootloader and root.
- ๐ก๏ธ Security vulnerabilities โ root-access applications can harm the system.
- ๐ Problems with OTA-Updates โ After receiving root automatic updates MIUI They may stop working.
- ๐ฅ Possibility of "brick" (converting the device into a "brick") in case of errors during firmware.
โ ๏ธ Note: On HyperOS devices (e.g. Xiaomi 14, Redmi Turbo 3), the bootloader unlocking process is different from the one used in the app. MIUI. Using old instructions can lead to a device lock!
Preparing Xiaomi Phone for Root Rights
Several critical steps must be taken before the procedure begins, and skipping any of them can cause failures or inability to continue unlocking.
1. Verification of the model and firmware version
Make sure your device supports bootloader unlocking.Some models (e.g. Xiaomi for the Chinese market or anti-rollback > 3 devices) may have limitations.
- Go to Settings. โ The phone.
- Find the Model (e.g. Redmi Note 12 Pro+ 5G) and MIUI (e.g. MIUI Global 14.0.5) lines.
- Write down the build number (e.g. TP1A.220624.014).
For HyperOS, the path may be different: Settings โ About Phone โ HyperOS version. If the firmware version contains the CN suffix (e.g., V14.0.4.0.TMSCNXM), the device is designed for the Chinese market โ unlocking may require additional steps.
Data backup
Unlocking the bootloader and obtaining root rights will result in a complete reset of the device (wipe), all data, including photos, contacts and messages, will be deleted.
- ๐ฑ Mi Cloud: sync contacts, notes, photos (up to 5 GB free).
- ๐พ Local Copying: Transfer files to a PC or external drive.
- ๐ Apps like Swift Backup (requires root for full backup) or Titanium Backup.
โ ๏ธ Note: Once the bootloader is unlocked, Xiaomi can block the Mi Account for 72 hours if the device was tied to another region, for example, if you bought the phone in China but use global firmware.
3. Installation of necessary tools
Further action will require:
| Tool. | Appointment | Download link |
|---|---|---|
| Mi Unlock Tool | Official utility for unlocking the bootloader | Xiaomi website |
| ADB & Fastboot | Tools for interacting with the phone via PC | Android Developers |
| TWRP Recovery | Castom Recovery for Magisk Installation | Official website |
| Magisk | Root Rights Manager (alternative to SuperSU) | GitHub |
HyperOS may require a special version of TWRP, as standard builds are often incompatible. Check your model support on the XDA Developers or 4PDA forums.
Unlock the bootloader on Xiaomi: the official method
Since 2026, Xiaomi has tightened the process of unlocking the bootloader, adding a mandatory binding to the Mi Account and increasing the waiting time.
Step 1: Linking your Mi Account to your device
1. Go to Settings โ Xiaomi Account and log in.
2. Go to Settings โ Additional โ For developers and activate:
- ๐ง Developer Mode (click 7 times on Version) MIUI, if the option is hidden).
- ๐ Unlocking OEM (It may be called a factory unlock).
- ๐ฅ๏ธ Debugging by USB.
3. Connect the phone to the PC and confirm the debugging permission.
Step 2: Request Unlocking through Mi Unlock Tool
1. Install Mi Unlock Tool on your PC and run on behalf of the administrator.
2 Log in to the same Mi Account as on your phone.
3. Follow the instructions of the program. At the stage of checking the device, the phone will reboot to Fastboot (black screen with a rabbit).
โ ๏ธ Note: If the Mi Unlock Tool shows a "Couldn't unlock" or "Wait 168 hours" error, it means: Mi Account is not tied to the device (you have to wait 7 days after the first link). You are using Chinese firmware on a global device (or vice versa).
HyperOS may require additional confirmation via SMS or email.In some cases, Xiaomi requests a photo of the device's box with the serial number.
Developer mode activated
OEM unlock enabled
Phone tied to Mi Account
Installed ADB/Fastboot and Mi Unlock Tool
Data backup made.-->
Installation of TWRP Recovery on Xiaomi
After unlocking the bootloader, you need to install custom recovery - TWRP. This will allow you to flash Magisk and other modifications.
Step 1: Download the correct version of TWRP
1. Go to twrp.me and find your model.
2.For HyperOS, check compatibility on forums โ many devices require special builds (e.g., TWRP for Dimensity 9000 on Xiaomi 12 Pro).
3. Download the file in.img format (for example, twrp-3.7.0_12-0-sweet.img For the Redmi Note 10 Pro).
Step 2: Firmware TWRP via Fastboot
1.Reboot your phone to Fastboot:
adb reboot bootloader2. Connect the device to the PC and check the connection:
fastboot devices3. Squeeze the TWRP:
Fastboot flash recovery twrp version.img
fastboot boot twrp version.imgIf the TWRP is not saved after the reboot, but the standard recovery is restored, then the anti-rollback protection is active on the device.
- ๐ Please. TWRP Re-install Magisk (donโt reboot to the system!).
- ๐ฅ Download the full firmware image for your model and thread it through TWRP (Install option โ Install Image โ System Image).
What to do if TWRP does not start?
Install Magisk and obtain root rights
Magisk is a modern alternative to SuperSU that provides root access without changing the systemless root, which allows you to check SafetyNet (needed for banking applications) and update your systemless root. MIUI/HyperOS rootless.
Step 1: Download Magisk
1. Download the latest version of Magisk from GitHub (Magisk-v26.4.zip or later).
2. Transfer the archive to your phone or external memory card.
Step 2: Firmware through TWRP
1. Download to TWRP:
adb reboot recoveryIn TWRP, select:
- ๐ Install โ point the way Magisk-v26.4.zip.
- ๐ง Scroll down and swipe for confirmation.
- ๐ After installation, press Reboot System.
Step 3: Checking root access
1. After booting the system, install Magisk Manager (download APK from the same GitHub).
2. Open the app and check the Magisk status - it should be written Installed: version.
3. Install Root Checker from Google Play and run the check.
โ ๏ธ Warning: HyperOS may lose its mobile network after Magisk is installed.Solution: Patch the system Disable_Dm-Verity_ForceEncrypt.zip through TWRP. Or install Magisk Universal SafetyNet Fix to bypass checks. SafetyNet bypass and root hiding for banking applications Many applications (e.g. Sberbank Online, Google Pay, Netflix) block work on root devices. To get around this, use the root system to get around this: 1. MagiskHide (built into Magisk) 1. Open Magisk Manager and go to Settings. 2. Enable the MagiskHide option. 3. In the MagiskHide section, mark the apps that you need to hide root (for example, Sberbank, Google Play Services). 2. Install the following modules via Magisk (download as ZIP and run through Modules in Magisk Manager): ๐ Universal SafetyNet Fix โ SafetyNet. ๐ฆ BankApps Patch โ for banking applications. Here are the most common ways to fix them: Problem Cause Solve Error "Couldn't unlock" in Mi Unlock Tool Account is not tied to the device or waiting 168 Wait a minute. 7 Use the same account as on your phone after the firmware TWRP The phone does not include an incompatible version TWRP Sweep the official firmware through the Mi Flash Tool in Fastboot Magisk mode is not installed, the error 1 Damaged. ZIP or lack of space in /data Check the integrity of the archive, clear the cache in TWRP No mobile network after receiving root modem or EFS After the modifications, the modem and EFS Apps are root determined from stock firmware despite MagiskHide New detection methods (e.g., verification) /sbin) Install Shamiko or Hide My Applist for HyperOS devices: ๐ Automatic recovery of stock recovery โ ๐ฎ Play Integrity Fix - if Google Play Games is not working. After installing modules: Restart your device. Check SafetyNet status in Magisk Manager (should be Pass for ctsProfile and basicIntegrity). If the check fails, try disabling other modules or updating Magisk. ๐กIf after installing the modules, banking applications still do not work, clear the data and cache of the Google Play Services application in the Android settings. Frequent problems and their solutions Even with accurate follow-up to the instructions, errors may occur. TWRP after each reboot or installation of the module TWRP A/B Retention Script. ๐ Blocking the load of modified firmware - you need to disable AVB 2.0 via fastboot: fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img How to remove root rights and return warranty If you need to return the device to the service center or sell it, you need to completely remove root and unlock traces. 1: Removal of Magisk 1. Open the Magisk Manager. 2. Go to Settings. โ Removal of Magisk โ Complete removal. 3. Confirm the action, the phone will restart and remove all modules. 2: Firmware stock recovery 1. Download official recovery for your model from the Xiaomi website (for example, recovery-sweet.img For the Redmi Note 10 Pro). 2. Fastboot: Fastboot Flash Recovery recovery-original.img Step. 3: Full stock firmware MIUI/HyperOS 1. Download the full firmware image (.tgz or.zip) for your model from the site MIUI Downloads. 2. Unpack the archive and swipe through the Mi Flash Tool: Select clean all mode. Connect your phone to Fastboot and press Flash. 3. Once you have firmware, the phone will be like new, with the bootloader locked and no root traces. โ ๏ธ Note: If you have unlocked the bootloader officially through the Mi Unlock Tool, its status will remain unlocked even after the stock firmware is installed. MIUI. To return the warranty, you will need to contact the Xiaomi service center for re-binding the bootloader (possibly not on all models). ๐กTo avoid warranty issues, keep your deviceโs original firmware and recovery before modifications begin. FAQ: Frequently Asked Questions Can You Get Root on Xiaomi Without Unlocking the bootloader? No, on modern Xiaomi devices (2018 and later), unlocking the bootloader is mandatory. There used to be exploits to bypass (such as DirtyCOW), but they are closed in newer versions of MIUI and HyperOS. The exception is some older models (such as Redmi 4X, Mi A1), where you can exploit vulnerabilities in the kernel, but this is not relevant for 2020 devices and later. Why does Mi Unlock Tool show the error "Wait 168 hours"? This standard Xiaomi restriction for new accounts or devices. The error means that you first time you lock the system, you can lead to a re-lock the account in less than 7 days, but you have tried to the account. How to update MIUI/HyperOS After receiving root? Update via Settings โ Updating the system can cause root and TWRP. To upgrade without loss: Download the full OTA-Service pack (e.g. with Xiaomi Firmware Updater) Rename the file to update.zip and put it into the root of the phone's memory. TWRP and sew update.zip After the update, re-sweep Magisk (if the root is lost). disable_dm-verity After the update. Does Google Pay work after you get root? Yes, but you do: Install Universal SafetyNet Fix module, turn on MagiskHide and add Google Play Services to the list of hidden apps, clear Google Play Services data and restart the device. If Google Pay still doesnโt work, check SafetyNet status in Magisk Manager โ there should be a Pass for ctsProfile. Can you get root on Xiaomi with a MediaTek processor? Yes, the processor (MediaTek Helio, Dimensity) does not affect the possibility of getting root. The main thing is that the model supports unlocking the bootloader. For example, root successfully gets on: Redmi Note 12 Pro+ 5G (Dimensity 1080) POCO X5 Pro 5G (Snapdragon 778G) Xiaomi 11T Pro (Snapdragon 888) The only difference is that MediaTek may require a special version of TWRP, since these processors use a different recovery boot mechanism.