Getting root rights on Xiaomi smartphones opens up access to hidden features of the system, but requires caution. Many users face problems due to incorrect instructions or outdated methods. In this article, we will discuss the current way to obtain root access in Russian, taking into account the features of MIUI firmware and manufacturer requirements.
It is important to understand that the procedure involves several steps: unlocking the bootloader, installing a custom Recovery and directly obtaining root. We will describe each step in detail to minimize the risks of βbrickingβ the device, paying special attention to the models of Redmi, POCO and flagship Xiaomi 13/14, as they may require additional actions.
Before you get started, check if your model is suitable for unlocking.Some devices (like the Xiaomi Mi A1/A2 on pure Android) have a simplified procedure, while the Redmi Note 12 Pro+ will require bypassing the additional Mi Account restrictions.
What is root access and why it is needed on Xiaomi
Root rights (or superusers) are the total control of the Android operating system, and you can use them to:
- π± Remove pre-installed apps (bloatware) from Xiaomi
- π§ Modify system files (e.g., modify animations to MIUI)
- π‘ Optimize battery performance with specialized cores
- π Install Magisk modules for advanced functions (e.g, ViPER4Android sound-wise)
However, there are risks:
- β οΈ Loss of warranty: Xiaomi does not officially support root)
- β οΈ Possible security issues (vulnerability to malware)
- β οΈ Risk of βbrickingβ when errors occur in the process (especially on newer models with Anti-Rollback)
For most users, Xiaomi has enough alternative ways of customization through the ADB or MIUI-But if you want to make a profound change, root is going to be a powerful tool.
Preparation of the device: what to do before unlocking
Before starting the procedure, follow the mandatory preparatory steps:
- Back up your data through Settings β Additional β Backup (or use Mi Cloud).
- Charge your smartphone at least 60% β this is critical to avoid failures.
- Make sure that the device has the latest version of MIUI for your model.
- Download and install Mi Unlock Tool (the official utility from Xiaomi).
Pay special attention to the linking of the Mi Account:
- π Link the device to your Mi Account in Settings β Xiaomi account.
- π Enable data synchronization and find the device in the Mi Cloud web interface.
- π Wait 72 hours after tethering is Xiaomiβs requirement to unlock the bootloader on new devices.
Link Mi Account to your device | Update MIUI to the latest version | Backup | Charge your smartphone >60% | Download Mi Unlock Tool-->
On Xiaomi models from 2023-2026 (such as Xiaomi 14 or Redmi Note 13 Pro+), additional confirmation via SMS or email may be required even after a 72-hour wait.
Unlocking the bootloader on Xiaomi: step-by-step instructions
This is the most important step. Follow the instructions in strict order:
- Activate Developer Mode: Go to Settings β About Phone and 7 times click on MIUI Version. Return to the basic settings β the Developer Item will appear.
- Enable USB debugging: In the Developer Menu, activate USB debugging and confirm the resolution when connecting to your PC.
- Link the device to Mi Account: In the same menu, find Mi Unlock Status and link your account. If you don't have an option, update your MIUI.
- Launch Mi Unlock Tool: Connect your smartphone to your PC in Fastboot mode (turn off the device, then press Volume Down + Power).
If the utility gives you a "Couldn't unlock" error:
- π Restart your PC and smartphone and try again.
- π Make sure you use the original USB-cable (not all cables support data transmission).
- π Try another one. USB-port (preferably) USB 2.0 on the back of the PC).
What if the Mi Unlock Tool canβt see the device?
New devices (Snapdragon 8 Gen 2/3) may be alerted to lock due to Anti-Rollback.
β οΈ If your device has anti-Rollback 4 protection+, Unlocking the bootloader can make it impossible to roll back on the old firmware. ARB via the command: fastboot getvar anti If the value is higher than 3, use only firmware with support for your version ARB.
Installation of custom recavery (TWRP) on Xiaomi
Once the bootloader is unlocked, a customized Recovery (usually TWRP) must be installed, which will allow you to install modified firmware and gain root access.
Instructions for installing TWRP:
- Download the current version TWRP for your model from the official website (for example, for Redmi Note) 12 Pro, it's gonna be a file. twrp-3.7.0_12-vayu.img).
- Rename the file to recovery.img and place it in the folder with the platform-tools.
- Translate your smartphone to Fastboot mode and execute the command: fastboot flash recovery.img
- Immediately after installation, restart to the Recovery command: fastboot boot recovery.img
If the standard MIUI recaps TWRP after the reboot, follow the following steps:
- π§ V TWRP Go to Mount. β Enable MTP And copy the file to your smartphone. disable_forced_encryption.zip (encryption-based /data).
- π§ Install this file via Install in TWRP.
- π§ Reboot back to the TWRP Then start installing Magisk.
| Xiaomi model | Support for TWRP | Features |
|---|---|---|
| Xiaomi 13/13 Pro | β Yes (unofficial assemblies) | Requires DM Verity Disconnection |
| Redmi Note 12 Pro+ | β Yes. | Default encryption of /data |
| POCO F5 | β Yes. | Use TWRP from PocoXDA |
| Xiaomi 12T | β οΈ Partially. | Sensor problems in the Recovery |
π‘
After installation TWRP Smartphone is fixated on the logo MI, try to sew vendor_boot From stock firmware through Fastboot: fastboot flash vendor_boot vendor_boot.img.
Getting root rights through Magisk on Xiaomi
Magisk is the most reliable way to get root access without losing functionality (such as Google Pay or Netflix).
- Download the latest version of Magisk from GitHub (Magisk-v26.4.zip file).
- In TWRP, click Install and select the downloaded file.
- After installation, reboot to the system (not in the Recovery!).
- Install. APK-Magisk file (from the same archive) as a regular application.
To check root access:
- Open the Magisk app.
- Click Security Check β all items must be green.
- Install Safetynet Fix from Magisk if you donβt pass Googleβs checks.
If the root disappears after the restart:
- π Install Magisk in both slots (A/B) Direct Install in the app.
- π For devices with Dynamic Partition (e.g. Xiaomi) 12S Ultra) use the patch boot.img via Magisk:
1. Download the stock firmware for your model.
2. Remove the boot.img file from it.
3. In Magisk, select "Install β Select and Patch a File".
4. Sweat the received file through Fastboot:
fastboot flash boot magisk_patched.imgπ‘
On devices with MIUI 14+, after installing Magisk, you may need to disable system integrity checks via the command in ADB: adb shell su -c "setenforce 0." This is a temporary solution until the release of the Magisk update.
Solving common problems after getting root
Even with the right installation, there can be errors. Let's look at the typical cases and their solutions.
1.The smartphone does not boot (bootloop)
Reasons:
- π΄ The incompatible version of Magisk or TWRP.
- π΄ Missed step to disable forced encryption.
- π΄ Magisk Module Conflict.
Decision:
- π οΈ Reboot to TWRP Remove all installed modules via Magisk β Modules.
- π οΈ Stitch the stock. boot.img via Fastboot.
- π οΈ Repeat Magisk installation using the patch boot.img.
2. Banking apps or Google Pay are not working
This is related to the SafetyNet trigger.
- π³ Install modules in Magisk: Universal SafetyNet Fix MagiskHide Props Config (to change the device's fingerprint)
- π³ Enable MagiskHide in the settings and add banking apps to the list.
- π³ For MIUI 14 may require a rollback on Magisk 25.2.
3. It's not working. OTA-update MIUI
After receiving root, automatic updates are blocked.
- π Download full firmware with Xiaomi Firmware Updater and install via TWRP.
- π Use the utility. MIUI bootloader for automatic download of current versions.
- π Before updating, temporarily delete Magisk (via Uninstall) β Complete Uninstall in the appendix).
β οΈ Note: On devices with Dynamic Partition (e.g. Xiaomi) 13T) attempt OTA-updating on top of a modified system can cause data loss.Always backup through TWRP before updating.
How to remove root access and return the guarantee
If you need to return your device to a service center or simply refuse root, follow the following steps:
- Delete Magisk: Open the Magisk app, go to Settings β Complete Deletion. Confirm action.
- Download the official firmware for your model and run recovery.img through Fastboot: fastboot flash recovery.img
- Lock the bootloader: Use the command: fastboot oem lock Attention: this will erase all data on the device!
- Check status: Reboot to system and check bootloader status in Settings β About phone β bootloader status. Must be locked.
For complete cleanliness before visiting the service center:
- π§Ή Flush the full stock firmware through the Mi Flash Tool in clean all mode.
- π§Ή Delete your Mi Account and reset to factory settings.
- π§Ή Check that fastboot getvar all does not mention the unlocked status (on some models this remains even after blocking).
π‘
If the bootloader is locked, use EDL (Emergency Download Mode) mode to recover, which requires an authorized Xiaomi account and a special cable (or circuit test points on the board).