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

Getting root rights on Xiaomi smartphones opens up access to hidden Android capabilities, but requires caution: one wrong move can turn a device into a brick.In 2026, the process was complicated by tightening security policies. MIUI, But it remains doable even for beginners, provided that the instructions are followed strictly.

This article covers everything from unlocking the bootloader to installing Magisk to manage root rights. We will look at the formal and informal methods that are relevant to Redmi models, POCO and Mi based on Android 13/14, And we also warn you about the key risks, from losing your warranty to blocking your Mi Account. MIUI Without root, at the end of the article is a list of alternative solutions.

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

Root rights (or superuser rights) give you complete control over the Android operating system, allowing you to:

  • πŸ“± Remove embedded apps like Mi Browser, Mi Music or GetApps that cannot be uninstalled by standard means.
  • ⚑ Optimize performance: overclock the processor, configure the kernel, or disable unnecessary services MIUI, battery-eating.
  • πŸ”§ Modify system files: modify animations, fonts, themes, or even replace them MIUI on custom firmware like LineageOS.
  • πŸ›‘οΈ Use advanced security tools: AFWall+ for firewall, AppOps for permission management or Titanium Backup for backup.

However, along with the opportunities come the risks:

  • ⚠️ Loss of warranty: Xiaomi officially bans rooting, and when contacted by the service center may refuse repairs.
  • πŸ”’ Security vulnerabilities: Root-access applications gain unlimited rights, which is dangerous when installing malware.
  • πŸ’₯ Β«Device Brick: A firmware error or module conflict can make the phone inoperable.
  • 🚫 Mi Account lock: on some models (Redmi Note 12, Xiaomi 13) incorrect rooting leads to account binding and a password requirement even after resetting.
πŸ“Š Why You Need Root Rights?
Removal of embedded applications
Installation of custom firmware
Optimizing productivity
Use of specific applications (e.g. Lucky Patcher)
Just curious.

Before you go any further, ask yourself: Do you really need root rights? Many tasks are solved without root, such as turning off ads in your home. MIUI can be done through ADB, a backup is performed by Swift Backup (without root, but with a ADB If the goal is simply to remove unnecessary applications, alternative methods are sufficient.

Preparation of Xiaomi smartphone to obtain root rights

Before unlocking the bootloader and installing Magisk, several critical steps must be taken, and skipping any of them can cause the device to crash or lock.

1. Verification of model and version MIUI

Not all firmware. MIUI Support rooting. Make sure your version is:

  • πŸ“² Not a "Global Stable" with anti-rollback: such firmware (for example, for Redmi Note 11 or POCO X5) Block rollbacks to older versions, making it harder to unlock.
  • πŸ”„ Not updated through OTA After unlocking: Updates β€œover the air” can close the bootloader back.
  • πŸ› οΈ Has an affordable custom firmware: check the availability TWRP Or OrangeFox for your model on the forum XDA Developers.

To find out the MIUI version:

  1. Open the Settings. β†’ The phone.
  2. Find the line Version MIUI (for example, MIUI 14.0.3.0.TLMCNXM).
  3. Write down the full name of the model (for example, 22101320C For the Redmi Note 12 Pro+).

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

Check the model and version MIUI compatible

Make sure the battery is > 60%

Connect the device to a stable Wi-Fi

Download the official Mi Unlock Tool-->

Data backup

Unlocking the bootloader erases all data from the device, including photos, messages and applications. Use the following methods to store information:

  • ☁️ Mi Cloud: sync contacts, notes and photos (but not system settings!).
  • πŸ’Ύ Local Copy: Copy files to your PC via MTP Use Swift Backup (requires you to use it) ADB).
  • πŸ“± Backup apps: Titanium Backup (with root only) or Migrate (for user data).

Please note that some data cannot be recovered after unlocking, including:

  • Settings MIUI (topics, gestures, sound profiles).
  • Data from non-export-supporting applications (e.g., game progress).
  • DRM-keys (widevine) L1), Responsible for Netflix playback in HD.

3. Installation of necessary tools

Further action will require:

Tool.AppointmentDownload link
Mi Unlock ToolOfficial utility for unlocking the bootloaderXiaomi website
ADB & FastbootInterface for debugging and firmwareAndroid Studio
TWRP/OrangeFoxCastom Recovery for Magisk InstallationOfficial website
MagiskRoot Rights Manager (alternative to SuperSU)GitHub

⚠️ Note: download tools only from official sources. Fake versions of the Mi Unlock Tool or Magisk may contain malicious code leading to data theft or device lockdown.

Unlock bootloader on Xiaomi

Unlocking the bootloader is a mandatory step before obtaining root rights. Xiaomi officially allows this procedure, but with restrictions:

  • πŸ”“ Only one Mi Account per month is allowed to be unlocked (rule introduced in 2023).
  • ⏳ It takes 7 days to wait after you have linked your account to your device (on new models like Xiaomi 14 – up to 30 days).
  • πŸ“± Certain devices (e.g, POCO F5 for the Chinese market) have a closed bootloader that cannot be unlocked officially.

Step 1: Linking your Mi Account to your device

Without this step, Mi Unlock Tool will refuse to proceed. Follow these instructions:

  1. Go to Settings β†’ Additional settings β†’ Developer options.
  2. Enable OEM Unlocking and USB Debugging.
  3. Bind your device to a Mi Account via Settings β†’ Mi Account β†’ Mi Cloud β†’ Find Device.
  4. Wait 7 days (or up to 30 days for new models). Xiaomi will send a confirmation notification when the waiting period is over.

πŸ’‘

If the button OEM Unlocking is inactive, try connecting the device to the Internet via SIM-Map (not Wi-Fi) and reboot it.

Step 2: Launch the Mi Unlock Tool

After the waiting period has ended:

  1. Turn off your phone and press Power + Volume Down to log into Fastboot.
  2. Connect the device to your PC and start the Mi Unlock Tool (on behalf of the administrator).
  3. Log in to the same Mi Account as on your phone.
  4. Press Unlock and wait until the process is completed (usually takes 1-3 minutes).

⚠️ If the Mi Unlock Tool is β€œCouldn’t unlock” or β€œDevice not supported:

  • Unlockable model compatibility (some devices for the Chinese market are permanently locked)
  • The Mi Unlock Tool (should be the last version downloaded from the official website)
  • Active Internet connection on PC (the utility checks the servers of Xiaomi).

Step 3: Checking the status of the loader

Once unlocked, the device will automatically restart to make sure the bootloader is unlocked:

  1. Turn off the phone and log in to Fastboot (Power) again. + Volume Down).
  2. The screen should display a message that says β€œUnlocked” or β€œThis device is unlocked.”
  3. You can also check the team in ADB: Fastboot oem device-info Search for Device unlocked: true.

πŸ’‘

Unlocking the bootloader erases all data from the device. Don't miss the backup step!

Installation of custom recovery (TWRP) Magisk

Now that the bootloader is unlocked, you can start installing TWRP (Or alternatives like OrangeFox and Magisk for root rights management, which requires accuracy, such as a firmware error or an incompatible version. TWRP They may lead to a "brikeΒ».

1. Selection and installation TWRP

For each model Xiaomi has its own version TWRP. Download the image only for your device from verified sources:

  • πŸ”— Official website: twrp.me (see model code, for example, tissot for Redmi Note 7).
  • πŸ”— Forum XDA: section dedicated to your model (e.g. Redmi Note 12).

Install TWRP via Fastboot:

  1. Download the.img file (for example, twrp-3.7.0_12-tissot.img).
  2. Move it to the folder with the platform-tools (where adb.exe and fastboot.exe lie).
  3. Turn off your phone and log in to Fastboot.
  4. The command is fastboot flash recovery. twrp-3.7.0_12-tissot.img
  5. Immediately after the firmware go to TWRP, power-clamp + Volume Up (otherwise) MIUI re-recording recovery!).
What to do if TWRP does not start?
If after the firmware TWRP The phone is loaded into a standard recovery or MIUI, So the system overrecorded it: 1. Repeat the firmware. TWRP And immediately after the command fastboot flash recovery execute: fastboot boot twrp-3.7.0_12-tissot.img It'll load. TWRP memoryless. 2. For some models (Redmi Note) 10 Pro, POCO X3) You need to turn off recovery check. disable_verity (file disable_verity.zip can be found XDA).

2. Install Magisk for root rights

Magisk is a modern alternative to SuperSU, which allows you to hide root from applications (for example, banking) and pass SafetyNet.

Installation instructions:

  1. Download. Magisk-v26.4.zip (version may be different and transfer it to your phone or flash drive.
  2. In TWRP, select Install β†’ point the way to the Magisk archive.
  3. Swipe to confirm the installation.
  4. After completion, press Reboot System.

⚠️ Note: If Magisk Manager does not appear in the app menu after the reboot, check it out:

  • Correct installation (b) TWRP It should be a success log).
  • File availability magisk.apk root-folder (/sdcard/). If it is not, download Magisk Manager separately and install manually.
  • SafetyNet Status: If banking apps don’t work, enable MagiskHide and Enforce DenyList options in Magisk.

3. Checking the working capacity of root rights

To ensure that root rights are obtained:

  1. Install the Root Checker app from Google Play.
  2. Run it and press Verify Root.
  3. If Root Access: Available is a good thing, it’s a good thing.

You can also check it manually through ADB:

adb shell


su

If the # character appears after the su command, the root rights are active.

Solving problems after obtaining root rights

Even if you successfully root, you can have problems, and here are the most common ways to fix them:

1.The phone does not pass SafetyNet

SafetyNet is an Android integrity verification system used by banking applications (SberBank, Tinkoff) and games (PokΓ©mon GO). If the check fails:

  • πŸ”§ At Magisk, go to Settings. β†’ Enable MagiskHide.
  • πŸ“± Add problematic apps to DenyList (formerly MagiskHide).
  • πŸ”„ Install Universal SafetyNet Fix via Magisk β†’ Modules.
  • πŸ”„ Restart your device and check status in the SafetyNet Test app.

2 Loss. DRM-Keys (Netflix does not work in the HD)

Unlocking the bootloader often resets Widevine L1 before L3, Why Netflix, Disney?+ Other services only show content in 480p. Decisions:

  • πŸ”‘ Try to restore the keys through TWRP, slip-up persist.img stock-stack.
  • πŸ“₯ Install the Magisk Widevine module L1 Fixer (not working on all devices).
  • πŸ”„ Return to stock firmware without root is the only guaranteed way to recover L1.

3. Hanging on the MIUI logo after firmware

If the phone does not load beyond the logo, there is likely a module conflict or incorrect firmware. TWRP. Action:

  1. Hold the Power. + Volume Up for entrance to TWRP.
  2. Choose Wipe. β†’ Advanced Wipe and tag Dalvik, Cache, Data.
  3. Reflash Magisk or stock firmware through Install.
  4. If TWRP It does not start, and then run it again through Fastboot.

πŸ’‘

If the phone does not turn on even in Fastboot, only the firmware through the EDL (This requires an authorized Xiaomi account and a special cable.

4.Blocking Mi Account after reset

On some models (Redmi Note 11, Xiaomi 12) after resetting through the TWRP You may be asked to enter your Mi Account password even if the device is unlocked:

  • πŸ”“ Enter the account details associated with the phone.
  • πŸ“§ If you forget your password, restore it through the official website.
  • πŸ”§ In extreme cases, run the stock firmware through the Mi Flash Tool with the Clean All option (data will be lost!).

Alternatives to Root Rights on Xiaomi

If rooting is about removing embedded applications or optimizing your system, consider alternative methods that don’t require unlocking the bootloader:

1. Disabling Advertising and Bloatware through ADB

With help. ADB You can deactivate system applications without root:

  1. Connect your phone to your PC and turn it on. USB Debugging.
  2. Execute the command to display the list of packages: adb shell pm list packages | grep 'miui'
  3. Disable unnecessary applications (e.g. com.miui.analytics): adb shell pm uninstall -k --user 0 com.miui.analytics

⚠️ Caution: Disabling critical services (e.g. com.android.phone) can disrupt your phone!

2.Use Shizuku to control the system

Shizuku – a tool that allows applications to gain rights ADB It's not physically connected to a PC:

  • 🧹 AppOps – Application permission management.
  • πŸ“± Swift Backup – Backup of data.
  • πŸ”§ Tasker – Automation of Actions.

Installation:

  1. Download Shizuku from Google Play.
  2. Connect your phone to your PC and do: adb -d shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
  3. In the Shizuku app, click Start.

3. Castom firmware without root

Some firmware, for example, MIUI EU or Pixel Experience, offering pure Android without Blaatware, but not requiring root rights to install:

  • πŸ”„ Regular security updates.
  • πŸ“± No advertising in MIUI.
  • 🎨 Ability to configure the interface.

The installation is similar to the firmware through TWRP, but without the need for Magisk.

FAQ: Frequent questions about root rights on Xiaomi

Can I get root rights to Xiaomi without unlocking the bootloader?
No. On all modern Xiaomi devices (beginning with the Redmi Note 8 and later), unlocking the bootloader is mandatory. Alternative methods like KingRoot or OneClickRoot do not work on the Internet. MIUI They can damage the system.
How to remove root rights and return the guarantee?
To return the device to stock: In Magisk, select Uninstall β†’ Complete Uninstall. Sweep through the official firmware through the Mi Flash Tool with the Clean All option. Block the bootloader back with the command: fastboot oem lock ⚠️ After blocking the bootloader, all data will be deleted, and Mi Account may require authorization.
Will Google Pay work after you get root rights?
Not unless you configure MagiskHide and pass SafetyNet. To work Google Pay: In Magisk, turn on MagiskHide and add Google Pay to DenyList. Install Universal SafetyNet Fix. Check status in the SafetyNet Test app (should be Pass for ctsProfile). If it doesn't work, try alternatives: Samsung Pay or Garmin Pay (works without a root).
Can I update my MIUI after I get root rights?
Updates by airΒ» (OTA) after rooting is prohibited - they can lead to loss of root or "brick." Alternatives: Download full firmware (Fastboot) ROM) Xiaomi Firmware Updater and Switch through TWRP. Use custom firmware (for example, MIUI EU), which are updated separately.
How to check if the bootloader is unlocked on my Xiaomi?
There are three ways: Turn off your phone and press the power. + Volume Down. If you see the word "Unlocked," the bootloader is unlocked. ADB Do it: fastboot oem device-info Search for Device unlocked: true. MIUI Go to Settings. β†’ The phone. β†’ Device status. If the Unlocked status is open, the bootloader is open.