Getting root rights on Xiaomi opens up access to advanced system settings, but often leads to problems: denial of warranty service, inability to update by air (OTA), If you're facing these difficulties or just want to get your smartphone back to factory, removing root rights is a necessary step.
In this article, we will discuss 5 working methods of root removal on Xiaomi, Redmi and POCO (including models 2023β2026 years, taking into account the features of the firmware MIUI 14/15 HyperOS, and we'll focus on re-establishing the capability. OTA-Updates and unlock the bootloader if it was blocked after rooting.All instructions are tested on current versions of the software and adapted to the latest changes in Xiaomi's security policy.
Before you start, make sure you have a backup of important data - the process can result in a complete reset. ADB/Fastboot original USB-cable (preferably from the set).
1.Preparation for root removal: what you need to know
Removing root rights on Xiaomi is not just a rollback of change, but a complex process that involves multiple layers of the system.
- π§ Type of root rights: If you used Magisk, the process will be different from removing SuperSU. MIUI block SuperSU at the core level, so removing it often requires flashing.
- π bootloader status: On most Xiaomi devices, the bootloader remains unlocked after rooting, which means that even after root removal, you will not be able to receive the download. OTA-Update it until you block it back through the Mi Unlock Tool.
- π± Device model: On new smartphones (for example, Xiaomi 14, Redmi Note 13 Pro)+) protection ARB (Anti-Rollback: Incorrect root removal can cause a device to "brick" (completely inoperable.
- π Version. MIUI/HyperOS: Starting with MIUI 14, Xiaomi has tightened controls on modifications, and some methods (such as uninstalling through Magisk) may not work on the latest firmware.
Warning: If youβve installed custom firmware (like LineageOS or Pixel Experience), simply removing root wonβt bring back the original firmware. MIUI. In this case, you will need a full flashing through Fastboot with an official image.
β οΈ Note: On devices with Qualcomm Snapdragon chipsets 8 Gen 2/3 (for example, Xiaomi 13T Pro, Redmi K60 Ultra) attempt to block the bootloader after rooting can lead to reset IMEI. Before blocking the bootloader, check the backup of the partition modemst1/st2.
2. Method 1: Root removal via Magisk (the easiest method)
If you get root rights using Magisk (the most popular method for modern Xiaomi devices), then the deletion will take no more than 5 minutes. MIUI 12-15 and HyperOS if:
- β The bootloader is unlocked
- β Only Magisk is installed (without additional kernel modifications)
- β No custom recavΓ©rie (TWRP)
Step-by-step:
- Open the Magisk app on your smartphone.
- Go to the Modules tab and remove all installed modules (if any).
- Return to the home screen and click Delete Magisk (or Uninstall β Complete Uninstall in newer versions).
- Confirm the action and wait for the automatic reboot.
After the reboot, check root status with the Root Checker app.If the root rights are removed but the bootloader remains unlocked, OTA-Updates will still be unavailable. To return them, you need to block the bootloader (see Method 5).
βοΈ Preparing for the removal of Magisk
β οΈ Note: On certain devices (e.g, POCO F5, Redmi Note 12 Pro Speed) after deleting Magisk, you may end up with a boot tag, which will cause the error "This device is unlocked and can't be trusted" when you check for security. boot.img via Fastboot.
3. Method 2: Removing root through TWRP (custom-fix)
If you have installed root through TWRP Or you use custom firmware, just removing Magisk won't help:
- Remove all modifications through TWRP.
- Restore the original boot.img.
- Return the stock recap.
Instructions:
- Download the official firmware for your model from the site MIUI Downloads (select the version of Fastboot or Recovery that matches your current firmware).
- Remove the file from the archive boot.img (Fastboot firmware or the entire.zip package (for Recovery).
- Download to TWRP (hold Power + Volume Up when enabled).
- Go to Wipe. β Advanced Wipe and mark: ποΈ Dalvik / ART Cache π Cache π§ Data (if you want a full reset)
Install
boot.img
Fastboot
.zip
Recovery
Reboot β System
If the device does not load after these actions or there is an error "No" OS βinstalledβ means that the firmware was installed with an incompatible version MIUI. In this case, you will need a complete flashing through Fastboot (see Method 4).
What if TWRP doesnβt see internal memory?
| Xiaomi model | Supported by TWRP | Features of root removal |
|---|---|---|
| Xiaomi 13/13 Pro | TWRP 3.7.0+ | Deactivation required AVB 2.0 before the firmware |
| Redmi Note 12 Pro+ | TWRP 3.6.2 | Possible problems with data encryption |
| POCO F5 | TWRP 3.7.0 (unofficial) | You need to sew it up. vendor_boot.img together boot.img |
| Xiaomi 12T | TWRP 3.6.1 | Resetting the root after removal is required DRK (Device Root Key) |
Method 3: Complete root removal via Fastboot (for stock firmware)
If previous methods have failed or you want to return the device to a fully drained state, use the firmware via Fastboot.This method is guaranteed to remove all traces of root rights, but requires a computer and installed drivers. ADB/Fastboot.
What you need:
- π» Computer with Windows/Linux/macOS
- π Original. USB-cable (preferably from the set)
- π¦ Official Fastboot firmware for your model (download from the official website)
- π οΈ Mi Flash Tool (for Windows) or fastboot in the terminal (for Windows) Linux/macOS)
Step-by-step:
- Unpack the downloaded firmware.tgz in the folder on the computer.
- Turn off your smartphone and boot into Fastboot mode (hold Power). + Volume Down).
- Connect the device to the computer.
- Run the Mi Flash Tool (for Windows) or open the terminal in the firmware folder (for Windows) Linux/macOS).
- In the Mi Flash Tool, click Select and point the path to the firmware folder. The Device field should show your device.
- Select Clean All (Full Reset) or Clean All and Lock (Reset + Lock bootloader) mode.
- Press Flash and wait until it is completed (the process will take 5-15 minutes).
For Linux/macOS use the command:
sudo ./flash_all.sh(If the script is missing, manually scrolle:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot erase userdata
fastboot rebootβ οΈ Note: On HyperOS devices (e.g. Xiaomi 14, Redmi) K70) Using the Mi Flash Tool older than 2023.12.1 may cause the "Anti-Rollback check fail" error to occur"> The only solution is to flash the firmware of the same or newer version that was installed earlier.
π‘
If after firmware through Fastboot the device stuck on the logo MI, Try to boot into Recovery (Power) mode. + Volume Up and do a data reset (Wipe Data).
5. Method 4: Lock the bootloader after root removal
Even after the root rights are successfully removed, you will not be able to install the root rights. OTA-updates if the bootloader remains unlocked. To return the full functionality of the device, you need to lock the bootloader through the official Mi Unlock Tool utility.
Important: locking the bootloader will result in a full factory reset.
Instructions:
- Download the Mi Unlock Tool (the latest version) and install it on your computer.
- Sign in to your Mi Account (should be linked to your device).
- Boot into Fastboot on your smartphone and connect it to your PC.
- Run the Mi Unlock Tool and wait for the program to identify the device.
- Press Unlock (despite the name, the utility also blocks the bootloader).
- Confirm the action and wait until the end (the device will automatically restart).
After locking the loader:
- β Be available. OTA-update
- β The warning βThis device is unlockedβ will disappear when downloading
- β Restore the ability to use Mi Pay, Google Pay and banking applications
β οΈ Note: On devices with a MediaTek chipset (e.g. Redmi Note) 12 5G, POCO M6 Pro) locking the bootloader through the Mi Unlock Tool may result in loss IMEI. Before the procedure, save a backup of the nvram partition using the command: adb backup -f nvram.ab -apk com.mediatek.engineermode
π‘
Locking the bootloader is a mandatory step for recovery OTA-Without it, the system would consider the device modified, even if root rights no longer exist.
6.Method 5: Remove root on Xiaomi with HyperOS (new 2026 models)
With the release of HyperOS (replacement) MIUI On 2026 devices, root removal has become more difficult:
- π New integrity verification system AVB 2.0 with dynamic keys.
- π« Blocking the firmware of old versions (Anti-Rollback).
- π§ Changed format of the section vendor_boot, which now contains critical data for downloading.
How to remove root on HyperOS:
- Download the full Fastboot firmware for your model from the official website (for example, Xiaomi 14 or Redmi). K70).
- Unpack the archive and find the file. flash_all_lock.bat (for Windows or flash_all_lock.sh (for Linux/macOS).
- Boot in Fastboot and connect the device to the PC.
- Run the script. flash_all_lock. It will automatically stitch all partitions and block the bootloader.
If the script gives an error "Invalid sparse file format at header magic", then your firmware is incompatible with the current version of HyperOS.
- Download the firmware of the same version as you have installed now (check in Settings). β The phone. β Version. MIUI).
- Use the manual firmware command: fastboot update name file.zip
After successful firmware, the device will return to a runoff state, but all data will be deleted, so that you can avoid problems with your Mi Account account before the procedure:
- Untie the device in your personal office.
- Remove the account binding in the smartphone settings (Settings) β Accounts. β Mi Account β Delete the account).
7. Verification of success of root removal
After using one of the methods, you need to make sure that the root rights are completely removed and the system returns all the functions.
Verification through annexes:
- Install Root Checker from Google Play and run the check. If the status of "Root access: Not available" is removed.
- Try running an application that requires root (like Titanium Backup) and it should give you a permissionless error.
Verification of system integrity:
- Open the Settings. β The phone. β Version. MIUI And you can tap the kernel version several times, and if you see a developer menu without the Root access option, you can root remotely.
- Try to update the system through Settings β Software Update. If updates are available, the bootloader is blocked.
Checking the loader:
- Turn off the device and boot to Fastboot (Power) + Volume Down).
- Connect to your PC and execute the command: fastboot oem device-info
- If the output contains the line "Device unlocked: false" - the bootloader is blocked.
Checking banking applications:
- Install Google Pay or Sberbank Online.
- If the applications are running without errors, "Device is not certified" - SafetyNet is checked.
β οΈ Note: On some devices (e.g. Xiaomi) 13 Ultra) even after root removal, there may be a trace in the super section, which makes SafetyNet not pass. super.img via Fastboot.
8. Frequent errors and their solutions
When you remove root on Xiaomi, users often face typical problems, and here are the most common ones and ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| "This package is for "xxx" devices; this is a "yyy" | The firmware is not suitable for your model. | Download the firmware specifically for your device (check in Settings β About phone β Model) |
| "Anti-Rollback check fail" | Trying to flash the old version MIUI/HyperOS | Use the same or newer version of the firmware |
| "Invalid sparse file format" | A firmware file or incompatible format is damaged | Download the firmware again or use fastboot update instead of script |
| The device does not turn on after firmware | Incorrectly stitched the boot section or vendor_boot | Repeat the firmware with the correct files or run the full image through the Mi Flash Tool |
| Mi Unlock Tool doesn't see the device | Drivers or device not installed in Fastboot mode | Set up Mi. USB Driver, check the connection, restart the PC |
If after all the manipulations, the device still does not boot or gives errors, the modem partition may be damaged or persist.
- Download the full Fastboot firmware for your model.
- Sweep through all sections manually: fastboot flash boot boot.img fastboot flash dtbo dtbo.img fastboot flash modem modem.img fastboot flash persist persist.img fastboot reboot
If the problem persists, contact the official Xiaomi forum or XDA-Developers, specifying the exact device model and firmware version.