Root rights on Xiaomi: how to unlock the bootloader and get full control of the smartphone

Getting root rights on Xiaomi smartphones opens up access to hidden Android features, allows you to remove system applications, optimize performance and install modified firmware. However, the process requires care: wrong actions can turn a device into a brick or deprive you of warranties. In this article, we will analyze all the steps from unlocking the bootloader to installing Magisk, and also explain how to avoid typical errors and restore the health of the smartphone if something goes wrong.

It is important to understand that Xiaomi actively blocks attempts to obtain root rights: the company has tightened security policy, and from 2023 for new models (for example, Xiaomi 14 or Redmi Note 13 Pro+) additional account confirmation via SMS is required. Old devices (up to Mi 11 inclusive) unlock easier, but even there are nuances. We will consider universal methods relevant for all MIUI 14/15 firmware based on Android 13/14, including ways to circumvent new restrictions.

What are root rights and why do you need them on Xiaomi?

Root rights are administrative access to the Android operating system, similar to the rights of a superuser in Linux.

  • πŸ“± Remove embedded applications (bloatware) such as Mi Browser, Mi Music or GetApps that cannot be uninstalled in standard ways.
  • ⚑ Optimize performance: disable unnecessary services MIUI, overclock the processor or vice versa – limit background activity to save battery.
  • πŸ”§ Install modified firmware (custom ROM), such as LineageOS or Pixel Experience, to get a β€œpure” Android without a shell MIUI.
  • πŸ›  Use powerful utilities like Titanium Backup to back up data applications or AdAway to block ads.

However, the medal has a downside:

  • 🚨 Loss of warranty: Xiaomi does not officially support rooting and may be denied repairs when contacted by a service center.
  • πŸ›‘ Security risk: Some applications (e.g. banking) refuse to work on rooted devices due to potential vulnerabilities.
  • πŸ”„ Problems with OTA-Updates: After obtaining root rights, automatic updates MIUI They may stop installing.

⚠️ Warning: On devices with MIUI 14+ and Android 13/14 (e.g., Xiaomi 13T, Redmi Note 12 Pro), Anti-Rollback is activated after unlocking the bootloader, which means you can’t return to an older firmware version without risking the device.

πŸ“Š Why do you want to get a root license on Xiaomi?
Removal of embedded applications
Installation of custom firmware
Overclocking/optimization of the system
Blocking ads
Other

Preparing for root rights: what to do before unlocking

Before you start unlocking the bootloader, follow the mandatory preparatory steps:

  1. Back up your data. Unlocking the bootloader causes a hard reset. Use Mi Cloud or third-party utilities like Swift Backup (requires root, but you can make a copy on your PC via adb backup).
  2. Check the model and firmware version. Go to Settings β†’ About the phone. Write down: Device model (e.g. Redmi Note 11 Pro 5G codenamed veux); MIUI version (e.g. MIUI Global 14.0.5); Android version (e.g. Android 13 TKQ1.221114.001).

Make sure the battery is over 60%.

Prepare a PC with Windows/Linux.

Mi Unlock Tool

ADB/Fastboot

Also check if your model is supported by official unlocking.Some devices (such as the POCO F5 or Xiaomi Pad 6) may require additional action.A full list of supported models is available on Xiaomi's official website.

Make a data backup|Know the code name of the model|Charge the phone. >60%|Install Mi Unlock Tool on PC|Download Fastboot firmware for your model-->

Unlocking the bootloader on Xiaomi: step-by-step instructions

Unlocking the bootloader is the first and most critical step. Xiaomi requires confirmation through the Mi Account, and new devices (released after 2022) may require a phone number binding.

Step 1: Linking your Mi Account to your device

1. Go to Settings β†’ Mi Account and log in (if not authorized).

2. Enable data synchronization and wait for the process to be completed.

3. Return to Settings β†’ About phone and tap 7 times on the MIUI version to activate the developer mode.

4. Go to Settings β†’ Additional β†’ For developers and enable:

  • πŸ”“ Unlock OEM (may not be available on newer models)
  • πŸ”Œ Debugging by USB.

5. Connect the phone to the PC and confirm the debugging permission.

Step 2: Request Unlocking through Mi Unlock Tool

1. Download the official Mi Unlock Tool utility and install it on your PC.

2. Launch the program and log in to the same Mi Account as on your phone.

3. Follow the instructions on the screen. If a message appears Couldn't unlock. Wait 168 hours, it means that Xiaomi has imposed a temporary lock. Wait for the specified time (usually 7 days) and try again.

4. Upon successful unlocking, the phone will automatically reset to factory settings.

⚠️ Warning: On devices with MIUI 14+, anti-rollback protection may work after unlocking the bootloader. This means you won't be able to install firmware older than the one on the phone originally. Check the version of Anti-Rollback in the Fastboot command: fastboot getvar anti If the value is greater than 3, be careful with the firmware.

πŸ’‘

If the Mi Unlock Tool gives an error "Current account is different from the account info on the device," try deleting the Mi Account on your phone, rebooting and re-authenticating. Sometimes changing the region of the account to "China" in the Mi Cloud settings helps.

Install Magisk for root rights

Once the bootloader is unlocked, you can start installing Magisk, the most popular root-rights tool without violating systemless root, which allows you to pass SafetyNet checks and use banking applications.

1. Download the official TWRP for your model (e.g. Redmi Note 10 Pro - sweet). Make sure the recovery version is compatible with your firmware.

2. Reboot the phone to Fastboot mode (turn off the device, then press Power + Volume down).

3. Connect the phone to the PC and execute the command:

fastboot flash recovery twrp-3.7.0_12-0-sweet.img


fastboot reboot recovery

4. In TWRP, go to Install and select the downloaded Magisk file (e.g., Magisk-v26.4.zip).

Method 2: Installation via Fastboot (for devices without TWRP)

1. Download the latest version of Magisk and extract the boot.img file from the firmware for your model (you can download from Xiaomi Firmware Updater).

2. Send boot.img to your phone and use Magisk (set as a regular APK) to execute Patch Boot Image.

3. Copy the resulting file magisk_patched.img on your PC and run it through Fastboot:

fastboot flash boot magisk_patched.img


fastboot reboot

Method of installationPlusesConsSuitable for
TWRP + MagiskUniversal, allows you to install custom firmwareRequires compatible recovery, risk of firmware errorsOlder models (Mi 9, Redmi Note 8 Pro)
Fastboot + patched bootWorks without TWRP, less riskYou need to download full firmware, it is more difficult for beginners.New models (Xiaomi 12, POCO X5 Pro)
Magisk in firmware (MIUI EU)Root is already built in, do not need to sew separatelyUnofficial builds, possible bugsAdvanced users

πŸ’‘

If the phone is stuck on booting after installing Magisk, try flashing the original boot.img back through Fastboot and then repeat the process with a different method.

Root rights verification and solving typical problems

After the reboot, check if root rights have appeared:

  1. Install the Root Checker app from Google Play and run the check.
  2. Open Magisk – if the status says Installed, and the Superuser section shows rights requests, then everything went well.

If root does not work, possible causes and solutions:

  • πŸ”„ The device is loaded into an infinite bootloom: Sweat the original boot.img through Fastboot. Try another method of installing Magisk (e.g., via TWRP instead of Fastboot).
  • 🚫 Magisk is not required: Check the compatibility of the Magisk version with your firmware (e.g. Android 14 requires version 26.4+). Turn off signature verification in TWRP (Settings β†’ Disable signature verification).
  • πŸ”’ Banking apps don't work: Enable MagiskHide (or Zygisk in newer versions) in Magisk. Install Universal SafetyNet Fix.

If after all the manipulations the phone does not turn on or if it gives an Orange State error, it means that the bootloader is unlocked, but the firmware is damaged.

  1. Download the official Fastboot firmware for your model.
  2. Sweat it through the Mi Flash Tool with the clean all option.
  3. Repeat the process of obtaining root rights again.
What to do if the Mi Flash Tool gives you a β€œflash not done” error
The β€œflash not done” error is usually due to incompatibility of the firmware or drivers version. Try: 1. Use a different version of the Mi Flash Tool (e.g. 2020.3.14.0 instead of the last one). 2. Reinstall Qualcomm drivers via Device Manager (manually specify the path to drivers from the folder with the Mi Flash Tool). 3. Swipe in EDL (emergency firmware) mode, but this requires an authorized Xiaomi account or box.

How to hide root from apps (MagiskHide and alternatives)

Many applications (such as Sberbank Online, Google Pay, or secure games) refuse to work on rooted devices.

Method 1: MagiskHide (for older versions of Magisk)

1. Open Magisk and go to Settings.

2. Enable the MagiskHide option.

3.In the Superuser section, find the app that needs to hide root and tick it.

Method 2: Zygisk + Universal SafetyNet Fix (new versions)

1. In Magisk, go to Settings β†’ Enable Zygisk.

2. Install the Universal SafetyNet Fix module through the Modules.

3.Reboot the device and check the SafetyNet status in the YASNAC application.

Method 3: Shamiko (to bypass detection)

If Zygisk doesn’t help, try the Shamiko module:

  1. Download Shamiko (.zip file).
  2. Install it through Magisk β†’ Modules.
  3. In Shamiko settings, select Enforce DenyList mode and add problematic apps to the list.

To check the efficiency, use:

  • YASNAC is a SafetyNet test.
  • RootBeer Sample is a root detection test.
  • Play Integrity API Checker – Check compatibility with Google Play.

How to Remove Root Rights and Return Guarantee

If you need to return your device to the service center or simply change your mind about root rights, follow the following steps to completely remove rooting traces:

  1. Remove Magisk: Open the Magisk app and select Delete β†’ Complete Delete. If Magisk doesn't start, run the original boot.img through Fastboot.
  2. Close the bootloader (optional): This is a reversible process, but requires re-unblocking if root is needed again. Use the command: fastboot oem lock ⚠️ Warning: If the device has custom firmware installed, locking the bootloader will lead to building blocks. First, run the official firmware through the Mi Flash Tool with the all clean option.

Reset the device to factory settings:

  • Go to Settings β†’ Additional β†’ Recovery and Reset β†’ Resetting.
  • Select to erase everything (including internal memory).

After this, the device will return to the β€œout of the box” state, and the service center will not be able to determine that it was rooted. However, some traces (for example, an unlocked bootloader) may remain in the Xiaomi logs, so it is better not to mention rooting for warranty repair.

πŸ’‘

If you delete Magisk and your phone doesn't pass SafetyNet, try flashing the original boot.img and resetting it completely, which solves the problem 90 percent of the time.

FAQ: Frequent questions about root rights on Xiaomi

Can I get root without unlocking the bootloader?
No, on modern Xiaomi devices (starting with MIUI 12), unlocking the bootloader is mandatory. There used to be exploits (like DirtyCOW), but they are closed in newer versions of Android. The only exception is the temporary root through ADB on some older models, but it disappears after the reboot.
Why does Mi Unlock Tool ask you to wait 168/72/24 hours?
This is a protective measure from Xiaomi to prevent users from accidentally unlocking the bootloader. The wait period depends on: device models (new models require more time), Mi Account region (Chinese accounts are sometimes unlocked faster), previous attempts (if you have tried to unlock the device before), you can not get around the wait, you have to wait. Attempts to reset the timer through a change of account or date on the device lead to even longer lock.
How to update MIUI after obtaining root rights?
There are three ways: Through OTA with Magisk: Download the update to Settings β†’ System Update. Don't install it right away! Instead: Copy the update file (.zip) into your phone's memory. In Magisk, select Install β†’ Select and flash the file and specify the downloaded update. Through TWRP: Download the full firmware (Fastboot or Recovery) with Xiaomi Firm Updater. Flick it through TWRP, then re-install Magisk.

Through Fastboot:

  • Download Fastboot firmware and run it through the Mi Flash Tool without locking the bootloader.
  • Then re-install Magisk.

⚠️ Important: Do not upgrade through the standard OTA- menu, this will result in root loss and possible device locking!

Which Xiaomi models can’t be rooted?
Technically, any Xiaomi device can be rooted, but there are nuances: MediaTek processor-powered devices (e.g. Redmi 9A, POCO M3): They often don't have stable TWRP versions, so Magisk firmware is only possible via Fastboot. New flagships (Xiaomi 14, Mix Fold 3): Require phone number binding to Mi Account to unlock. Devices for the Chinese market: They may have global firmware blocked, which complicates the process. Before you start, check your model support on XDAlopers or 4PDA forums.
Can I get a root on Xiaomi without a computer?
Theoretically, yes, but it’s extremely risky and only works on older devices. MIUI 11Method: Download Magisk Manager APK Download the firmware for your model in.zip format (for example, with Xiaomi Firmware Updater). boot.img And with Magisk, create. patched_boot.imgInstall the Flashify app (requires root, but can be used) ADB via Termux. patched_boot.img Flashify. ⚠️ Problems with this method: High risk of errors (e.g. incorrectly selected) boot.img On new devices, Xiaomi blocks firmware through third-party utilities, and without a computer, you can't unlock the bootloader. We recommend using a PC for reliability.