How to get a root rights on Xiaomi in 2026: the full guide from unlock to Magisk

Getting root rights on Xiaomi smartphones is a process that opens up access to hidden Android features, but requires accuracy and understanding of risks. Unlike most brands, Xiaomi devices have a unique security system: locked bootloader, proprietary MIUI firmware and rollback mechanisms. In 2026, the procedure was complicated due to tightening security policies, but remains feasible even for beginners - provided they follow proven instructions.

This article covers all the steps from unlocking the bootloader to installing Magisk, taking into account the features of the latest versions of MIUI 14/15 and models based on Qualcomm Snapdragon/Mediatek. We will analyze legal and informal methods, warn against typical errors (for example, hard brick when you have improper firmware), and give recommendations for restoring the system in the event of a failure. If you are willing to sacrifice a warranty for the sake of full control of the device, read on.

What is rooting on Xiaomi and why is it risky?

Root rights on Xiaomi allow:

  • πŸ”§ Remove embedded applications (bloatware) and system services MIUI that cannot be disabled by standard means.
  • ⚑ Install modified cores to overclock the processor or improve autonomy (e.g., KernelSU).
  • πŸ“± Change system fonts, animations, and themes at framework-res.apk level.
  • πŸ”’ Block ads at the hosts file level or through AdAway.
  • πŸ“‘ Use applications that require low-level access (e.g. Titanium Backup or Greenify).

But there is a downside:

  • ⚠️ Warranty Loss: Xiaomi fixes the unlock status in the EFS- section and it is impossible to return it back.
  • πŸ›‘οΈ Security vulnerabilities: Root opens access to system files for malware.
  • πŸ”„ Problems with OTA- updates: After a root, an automatic MIUI update can lead to a bootloop.
  • πŸ“΅ Banking applications inoperability: SberBank Online, Tinkoff and others block work on rooted devices (solved through Magisk Hide, but not always).

⚠️ Warning: On Xiaomi 13/14 series and Redmi Note 12 models with Snapdragon 8 Gen 2 processor, unlocking the bootloader may result in hardware locking of the 5G module (a bug confirmed by users on 4PDA).

Preparation of the device: what to do before unlocking

Before you start unlocking bootloader, follow the mandatory steps:

Backup data (photos, contacts, SMS) via Mi Cloud or local | Charge phone to at least 60% | Make sure the device is the latest version MIUI (update via Settings β†’ Phone) | Enable debugging on USB in Settings β†’ About Phone β†’ Version MIUI (7 times tap) β†’ Additional β†’ β†’ For developers |Install drivers ADB/Fastboot on PC (download from Google or Mi Flash Tool) | Download official Fastboot firmware for your model (from https://new.c.mi.com/global/miuidownload/index)

-->

Pay special attention to the choice of firmware. For Xiaomi models, there are three types of firmware:

Type of firmwareDescriptionIs it good for the rut?
Stable (Stable)The official version of MIUI with a minimum number of bugs is updated every 1-2 months.Yes, but it requires unlocking the bootloader.
Developer (For Developers)Weekly builds with new features, but bugs are possible. Easy to unlock.Yes, recommended for beginners.
Fastboot.tgz firmware for installation via Mi Flash Tool. Required for brick recovery.Yeah, but only for flashing.
Custom (Castom)Third-party firmware (e.g. LineageOS, Pixel Experience)Yeah, but it requires a preliminary rut.

For models on Mediatek (for example, Redmi Note 11, POCO M4 Pro) additionally you will need:

  • πŸ”Œ Install the MediaTek Preloader driver (without it, the PC won’t see the device in fastboot mode).
  • πŸ“¦ Download the SP Flash Tool instead of the Mi Flash Tool.
  • πŸ”‘ Get an authentication file to unlock (available free of charge on Xiaomi's official website).

Redmi Note 12/13 series|POCO F5/X5|Xiaomi 13/14 series|Redmi 10/11 series|Another model-->

Unlock bootloader on Xiaomi: the official method 2026

Xiaomi allows you to unlock the bootloader legally, but the process takes up to 7 days due to the account verification.

  1. Link your Mi Account to your device: Go to Settings β†’ Xiaomi Account. Enter your username/password (if you don’t have an account, sign up). Activate the β€œDevice Search” and β€œData Sync” option.
  2. Apply for unlocking: Download Mi Unlock Tool (2026 version). Launch the utility on behalf of the administrator and log in under the same Mi Account. Connect your phone in fastboot mode (turn off the device, press Volume down + Power).

Wait for the confirmation SMS (usually 3-5 days) and then try again to unlock in the Mi Unlock Tool.

If the utility produces an error "Couldn't unlock" or "Current account is different from the account info on the device", do:

  • πŸ”„ Restart your phone and PC.
  • πŸ”Œ Try another one. USB-cable (preferably original from Xiaomi).
  • πŸ“± Make sure that the Settings β†’ Developer option is β€œUnlock OEM.”
  • πŸ•’ Wait another 24 hours β€” sometimes the delay in confirming SMS is as long as 7 days.

⚠️ Warning: On devices with MIUI 15 (e.g., Xiaomi 14 Ultra), unlocking through the Mi Unlock Tool may require additional code that is issued only after contacting Xiaomi.

What if the Mi Unlock Tool can’t see the device?
If the utility does not recognize the phone in fastboot mode, check: 1. Are Android Bootloader Interface drivers installed (you can download through Device Manager in Windows). 2. Disable the antivirus - it can block interaction with ADB. 3. Try to run Mi Unlock Tool in Windows 8. 4 compatibility mode. For models on Mediatek, use SP Flash Tool instead of Mi Unlock Tool.

Alternative Unlocking Methods (if the Official One is Not Working)

If the Mi Unlock Tool refuses to unlock the bootloader, you can use workarounds. These methods are informal and can lead to the blocking of the Mi or brick device account, so use them at your own risk.

Method 1: Emergency Download Mode (EDL)

Suitable for Qualcomm devices (e.g. POCO F4, Xiaomi 12T) You will need:

  • πŸ”§ Test Point (point to transfer to EDL- mode, location depends on model).
  • πŸ“₯.mbn firmware for your model (download from Xiaomi Firmware Updater).
  • πŸ–₯️ Mi Flash Tool or QFil.

Algorithm:

  1. Open the back of the phone and close Test Point (see instructions for your 4PDA model).
  2. Connect the phone to a PC, and it will be defined as a Qualcomm HS-USB QDLoader 9008.
  3. In the Mi Flash Tool, select the firmware and press Flash.

Method 2: DirtyCOW exploit (for older models)

It works on Android 7-10 devices (e.g. Redmi Note 7, Mi 9).

  • πŸ“± Installed application Xiaomi Root Tool.
  • πŸ”“ Included debugging according to USB.

Instructions:

  1. Connect your phone to your PC and start adb devices (the device should be displayed).
  2. Enter the command: adb push dirtycow /data/local/tmp/ adb shell chmod 777 /data/local/tmp/dirtycow adb shell /data/local/tmp/dirtycow
  3. After the reboot, install Magisk via TWRP.

πŸ’‘

If after unlocking the bootloader, the phone is stuck on the MI logo, don't panic! turn off the device, press Volume up + Power to log into Recovery, and reset (Wipe Data).

Install TWRP and Magisk: Getting root rights

Once the bootloader is unlocked, it remains to install custom recavers (TWRP) and Magisk to manage root rights. Importantly, each Xiaomi model has its own version of TWRP!

Step 1: Installation of TWRP

  1. Download the current version of TWRP for your model from the official website (for example, for Redmi Note 12 Pro+ it is twrp-3.7.0_12-vayu.img).
  2. Rename the file to recovery.img and place it in a folder with fastboot.
  3. Fastboot flash recovery recovery.img fastboot boot recovery.img

Step 2: Magisk firmware

  1. Download the latest Magisk (Magisk-v26.4.zip) from GitHub.
  2. Move the archive to your phone (for example, internal memory).
  3. In TWRP, select Install β†’ Select Magisk-v26.4.zip β†’ Swipe to Confirm Flash.
  4. After installation, restart (Reboot System).

Step 3: Root rights verification

  • Install the Root Checker app.
  • Open it and click "Verify Root" - it should appear Congratulations! Root access is properly installed on this device!

πŸ’‘

If the phone doesn’t boot after installing Magisk, then the TWRP firmware is incompatible with your version of MIUI. Solution: Sweat the official firmware through the Mi Flash Tool and repeat the process with another version of TWRP.

Solving Typical Problems After Root

Even with successful root rights installation, Xiaomi users face typical problems.

Problem.Reason.Decision
The phone is not loaded (bootloop)Incompatible version of TWRP or Magisk.Swipe the official firmware through fastboot, then repeat the installation of the root.
Magisk Hide is not working.The MIUI update reset the settings.Reinstall Magisk, activate Magisk Hide and add banking apps to the list.
There is no network after the rootDamaged EFS- section (stored IMEI).Restore EFS via QFil or Mi Flash Tool (see instructions for your model).
MIUI not updatedThe system partition /system has been changed.Install the update manually via TWRP (download the full.zip package from the official website).

If Google Pay or SberBank Online stop working after the root, do:

  1. Open Magisk and go to Settings β†’ MagiskHide.
  2. Activate the option and add bank apps to the list.
  3. Reboot the phone.
  4. If you don’t, install Universal SafetyNet Fix via Magisk.

⚠️ Warning: On devices with MIUI 15 and Android 13+, Magisk Hide may not work due to the new Google Play Integrity API mechanism. Alternatively, use the Shamiko module or roll back to MIUI 14.

How to get everything back: root removal and bootloader lock

If you decide to opt out of the root rights (for example, to sell a phone or restore a warranty), follow the following steps:

Step 1: Remove Magisk

  • Open the Magisk app.
  • Go to Settings β†’ Delete Magisk β†’ Complete Deletion.
  • Confirm the action and wait for the reboot.

Step 2: Firmware of official MIUI

  1. Download Fastboot firmware for your model from the official website.
  2. Unpack the archive and launch the Mi Flash Tool.
  3. Connect your phone in fastboot mode and select the option β€œClean all and lock” (this will block the bootloader).
  4. Press Flash and wait until it is completed (the process will take 5-10 minutes).

Step 3: Check the status of bootloader

After the firmware, execute the command:

fastboot oem device-info

If the answer is Device unlocked: false, the bootloader is successfully locked. Otherwise, repeat the firmware with the Clean all and lock option.

Important: the warranty is not returned after unlocking the bootloader - Xiaomi fixes this fact in the hardware chip. However, locking the bootloader and the official MIUI firmware will allow you to use the phone without restrictions (except root functions).

FAQ: Frequent questions about the rue on Xiaomi

Can I get a root without unlocking the bootloader?
No. On all Xiaomi devices since 2016 (starting with the Redmi Note 3), unlocking the bootloader is a prerequisite for obtaining root rights. Except for vulnerabilities in older versions of Android (for example, DirtyCOW for MIUI 8-10), but they are closed in current firmware.
Will NFC and Google Pay work after the root?
NFC will work, but Google Pay and other SafetyNet-checked services (like PokΓ©mon GO) will fail.Solution: Activate Magisk Hide and add Google Pay to the hidden app list. Install Universal SafetyNet Fix. Use alternatives: SberPay, Mir Pay or virtual cards.
How to update MIUI after the root?
Automatic update (OTA) will result in loss of root rights. To upgrade without consequences: Download the full service pack (.zip) from the official website. Reboot to TWRP and file (no wipe!). After the update, reinstall Magisk (the new version compatible with MIUI). If the phone is stuck on the logo after the upgrade, manually paste Magisk via fastboot boot magisk_patched.img
Can you install Xiaomi on iOS or Mac?
Technically yes, but the process is more complicated due to macOS limitations: Use Homebrew to install adb and fastboot: brew install android-platform-tools Mi Unlock Tool will require a Windows virtual machine (e.g. Parallels Desktop).
What Xiaomi models can not be rooted?
Officially, the root is possible on all models, but there are exceptions: Xiaomi Mi A-series (Mi A1/A2/A3): use Android One instead of MIUI. They are suitable for standard unlock via fastboot oem unlock. POCO F1 (beryllium) and Mi 8 (dipper): these models can stop working Widevine L1 after unlocking (down to L3, which will worsen the quality of streaming in Netflix and Disney+). Devices for the Chinese market (for example, Xiaomi 13 Pro China): can require a Chinese account Mi to unlock.