Removal ROOT-Xiaomi smartphones are a task that users face after experimenting with firmware, custom cores or when preparing a device for sale. Despite the obvious advantages of root access (deep system configuration, removal of embedded applications, overclocking the processor), its presence deprives of warranties, blocks OTA-In addition, some services (such as Google Pay or Mi Pay) refuse to work on rooted devices due to a security breach.
In this article, we will analyze all the current ways to remove ROOT on Xiaomi in 2026, including methods for devices with locked and unlocked bootloader, and also consider the nuances for popular models (Redmi Note 12, POCO X5, Xiaomi 13, etc.).
1.Why you should remove ROOT on Xiaomi: risks and consequences
Before we get to the instructions, it's important to understand why we should get rid of superuser rights at all.
- π Security: ROOT Opens up system files to any application, increasing the risk of malware infection. For example, Trojans can gain control of the Android kernel.
- π³ Financial Services: Apps like SberBank Online, Tinkoff or Revolut block access on rooted devices due to requirements PCI DSS.
- π± OTA-Update: Xiaomi blocks installation of official updates "over the air" on devices with modified firmware or ROOT.
- π Anti-Rollback: Newer models (Xiaomi 14, Redmi Note 13 Pro)+) The protection against rollback of firmware, which can turn the phone into a βbrickβ in case of incorrect removal, works ROOT.
In addition, some games (such as PUBG Mobile or Genshin Impact) ban accounts for using root rights, considering it cheating. Even if you do not use hacker tools, the mere presence of ROOT can cause blocking.
β οΈ Warning: On devices with HyperOS (New Xiaomi shell) removal ROOT may require additional steps due to the changed partition structure /system. If your smartphone is upgraded to HyperOS 1.0+, Use methods with full flashing through Fastboot.
2.Preparation for removal of ROOT: what to do in advance
Regardless of the method chosen, preparing the device will reduce the risk of errors.
Backup your data (photos, contacts, messages) via Mi Cloud or locally on your PC
Check the device model and firmware version in Settings β About the phone
Download the original firmware for your model from the Xiaomi Firmware website
Charge your phone to at least 60% (when reset via TWRP, the battery goes down faster)
Install Mi USB Driver and ADB/Fastboot drivers on your computer
-->
Pay special attention to the choice of firmware. For example, for Redmi Note 10 Pro (sweet), you need to download files marked Global or EEA, not China, otherwise you will have problems with the language and services of Google. The firmware version can be checked in the Settings menu β About Phone β MIUI version.
If you remove the ROOT before selling your phone, we also recommend:
- π§Ή Reset the settings to factory (Settings) β Additionally. β Recovery and discharge).
- π Delete all Mi and Google accounts (otherwise, the new owner will not be able to activate the device).
- π± Check it out. IMEI *#06# - after an incorrect reset, it can reset to zero.
Through TWRP (Castom Recaveri)
Through the Mi Flash Tool (complete flashing)
Through the application (Magisk, SuperSU)
Through ADB (manual commands)
I haven't decided yet.-->
3. Method 1: Removing ROOT through Magisk (the easiest method)
If you get ROOT with Magisk, you can remove it through the same app, which is suitable for most modern devices (Xiaomi 12T, POCO F5, Redmi K60) and does not require unlocking the bootloader.
Instructions:
- Open the Magisk app.
- Go to the Settings section (cog in the upper right corner).
- Select Remove Magisk β Complete Deletion.
- Confirm the action and wait for the reboot.
After the reboot, check the ROOT status using the Root Checker app. If the superuser rights are still there, try:
- π Reinstall the original boot.img via fastboot flash boot boot.img.
- π§Ή Clear the cache and Dalvik through TWRP (Wipe β Advanced Wipe β Dalvik/ART Cache + Cache).
β οΈ Note: On some devices (e.g. Xiaomi) 13 Ultra) may remain modified after removal of Magisk init_boot. In this case, additional firmware of the original file is required through the command fastboot flash. init_boot init_boot.img.
π‘
If you download your phone to bootloop after you delete Magisk, try flashing the original boot.img through Fastboot mode.
Method 2: Complete reset via TWRP (for power users)
If Magisk is not installed or the method above did not work, you can use the custom TWRP recavator. This method is suitable for devices with an unlocked bootloader and requires a backup of the original firmware.
Step-by-step:
- Download the official firmware for your model in.zip format (for example, surya_global_images_V12.5.3.0.RJGMIXM_20211029.0000.00_11.0_global.zip for POCO X3 NFC).
- Move the firmware file to the memory card or internal memory of the phone.
- Boot into TWRP: Turn off the phone, then press Power + Volume up.
- In TWRP, select Wipe β Advanced Wipe and mark Dalvik / ART Cache System Data Internal Storage (optional if you need full formatting).
Install
Confirm the installation and wait until the completion (the process can take 10-15 minutes).
Once rebooted, the device will have clean firmware without ROOT. However, this method does not always remove modifications in the vendor section, which can lead to errors in the camera or modem, in which cases full firmware through the Mi Flash Tool is required.
What if TWRP doesnβt see internal memory?
5. Method 3: Flashing through the Mi Flash Tool (guaranteed method)
The most reliable way to remove ROOT is to flash the original firmware through the official Mi Flash Tool, which works even on bricks and devices with a damaged system, but requires an unlocked bootloader.
What you need:
- π₯οΈ Windows computer 10/11 (MacOS or Linux Mi Flash does not work).
- π Cable USB (preferably original to avoid breakages of the connection).
- π Firmware in.tgz or.zip format (download from the official website).
- π οΈ Mi Flash Tool (last version).
Instructions:
- Unpack the archive with firmware in a folder without Cyrillic characters (for example, C:\Xiaomi\surya_global_images\).
- Install the Mi Flash Tool and Qualcomm drivers (if the phone is on Snapdragon) or Mediatek (for Dimensity/Helio processors).
- Turn off the phone and press Volume Down + Power to enter Fastboot mode.
- Connect the device to a PC. In the Mi Flash Tool, press Refresh, your device should appear.
- Specify the path to the firmware folder and select firmware mode: Clean all β complete cleaning (recommended). Clean all and lock β cleaning + lock the bootloader (if you plan to sell the phone).
Flash
Once the firmware is in place, the device will automatically restart. It can take up to 15 minutes to start up, which is normal. If the phone doesn't turn on after the firmware is in place or if it's stuck on the Mi logo, try:
- π Repeat the firmware with a different mode (Clean all instead of Clean all and lock).
- π Check cable and port USB (Sometimes it helps to change the port on the back of the PC).
- π± Switch a different firmware version (for example, instead of Global try it) EEA).
| Xiaomi model | Recommended firmware regime | Possible errors |
|---|---|---|
| Redmi Note 11 Pro+ 5G (peux) | Clean all | Anti-Rollback 4 error when rolling back to old MIUI |
| POCO X4 Pro 5G (veux) | Clean all and lock | IMEI loss after firmware (solved by QCN recovery) |
| Xiaomi 12 Lite (taoyao) | Clean all | Logo getting stuck due to incompatibility with HyperOS |
| Redmi 10 2022 (selene) | Clean all | Invalid sparse file format error (you need to use firmware in.tgz format) |
π‘
Firmware via the Mi Flash Tool is the only method that is guaranteed to remove all traces of ROOT, including modifications in the system, vendor and boot partitions. However, it requires an unlocked bootloader and can lead to data loss if you do not backup.
Method 4: Remove ROOT via ADB (for advanced users)
If you have experience with ADB and Fastboot, you can manually remove ROOT by sniffing through the original boot and recovery partition images. This method is useful when Magisk is installed in A/B mode (on dynamic partition devices).
Required commands:
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot rebootWhere boot.img and recovery.img are the original firmware files for your model, and you can download them from the official firmware archive (they are in the images folder).
For HyperOS devices (e.g. Xiaomi) 14) Additional section firmware may be required init_boot:
fastboot flash init_boot init_boot.imgβ οΈ Note: On some models (Redmi) K50 Pro, POCO F4 GT) firmware boot.img without dtbo.img You can always flash all modified partitions!
7. Method 5: Recovery via EDL Mode (for "bricks")
If the phone has turned into a brick after the failed removal of the ROOT (it does not turn on, does not respond to buttons), then the last chance is firmware via EDL Mode (Emergency Download Mode), which allows you to flash the device even with a damaged bootloader, but requires an authorized Xiaomi account or a special box (for example, a UFi Box).
How to log into EDL:
- Turn off the phone.
- Press Volume Up + Volume Down and connect the USB cable to the PC.
- Hold the buttons for 10-15 seconds until the PC identifies the device as Qualcomm HS-USB QDLoader 9008.
For firmware in EDL, use:
- π₯οΈ Mi Flash Tool (with tick) EDL customized).
- π Firmware in.mbn or.elf format (special files for the use of.mbn or.elf) EDL).
- π Authorization through Xiaomi Developer Account (for new models).
Without authorization, you can't flash through EDL - Xiaomi blocks this mode to protect against unauthorized access. If you don't have an authorized account, contact the service center.
How to get around EDL authorization on older models?
8.Result Check: How to Make Sure ROOT Is Removed
After applying any of the methods, you need to check whether the superuser rights have been deleted.
- π Install the Root Checker app from Google Play and run the check.
- π± Try running the su command in the terminal (must issue an error permission denied).
- π³ Check the operation of banking applications (for example, SberBank Online or Tinkoff).
- π² Make sure that OTA-Updates are available again (Settings) β Updating the system).
If ROOT It's still detectable, repeat the deletion procedure, or try another method. On some devices (e.g. Xiaomi). 13T) After removal, Magisk may remain modified. init_boot, which also needs to be stitched with the original file.
Also check the SafetyNet status:
- Install the SafetyNet Test application.
- Run the CTS Profile Match and Basic Integrity check.
- If both are green, the device has been certified by Google and is considered βclean.β
π‘
Even after successful removal of ROOT, some applications (such as PokΓ©mon GO or Netflix) may continue to block access, which requires additional cleaning of the traces of modifications through MagiskHide or a reset of Google Play Services.