Removing root rights on Xiaomi smartphones is a procedure that can be required for many reasons, from restoring warranty to fixing system failures. However, incorrect actions often lead to a device โbrickโ or data loss. In this article, we will discuss all the current ways to remove the root, taking into account the features of the firmware MIUI and HyperOS, and explain why some methods work only on certain models.
It's important to understand that the process of removing a root is not just about clicking the "Cancel" button, it involves unlocking the bootloader, installing a stock firmware, and sometimes even manually deleting superuser files. We will describe each step in detail, specify the critical moments at which the device can turn into a "brick", and give recommendations for recovery after unsuccessful attempts.
Why you might need to remove root rights on Xiaomi
The main reasons why users decide to get rid of the root:
- ๐ Firmware update: many OTA-Updates are blocked on devices with root due to modified system files.
- ๐ก๏ธ Restoration of warranty: Xiaomi service centers refuse to repair under warranty if modifications are detected.
- ๐ System Errors: An improperly installed root can cause lags, reboots, or application problems (e.g., a ban in banking services).
- ๐ฑ Selling the device: The new owner may not know how to handle a rooted smartphone, which is fraught with problems.
In addition, some apps (such as Google Pay, Netflix, or Denuvo-enabled games) refuse to work on devices with root due to security policies, in which case removing the rights of the superuser becomes the only solution.
Preparing for root removal: what to do in advance
Before starting the procedure, be sure to follow the following steps:
โ๏ธ Preparation for root removal
Pay special attention to backup. Root removal is often accompanied by factory reset, so:
- ๐ Save photos, contacts and files to the cloud (Google Drive, Mi Cloud) or PC.
- ๐ Export. SMS and a call log using apps like SMS Backup & Restore.
- ๐ฎ Move save games (for example, through Helium or manual folder copying) /Android/obb/ and /Android/data/).
โ ๏ธ Note: If you used Magisk to mask the root (MagiskHide option), turn it off in the module settings before removing it. Otherwise, the stock firmware may install with errors.
Method 1: Remove the root through Magisk (the safest method)
If the root rights were obtained with Magisk, they can be removed directly from the application without full flashing, a method that is suitable for most Xiaomi, Redmi and POCO models on MIUI 12-14 and HyperOS.
Instructions:
- Open the Magisk Manager app (if itโs hidden, find it in the app menu or through search).
- 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 status of the root using the Root Checker app. If the superuser rights are retained, try an alternative method:
1. Install the "Magisk Uninstaller" module via Magisk Manager.
2.Reboot to recovery (turn off the phone, then press Power + Volume up).
3. In recovery, select Install โ specify the path to the file Magisk-uninstaller.zip โ Swipe to confirm.โ ๏ธ Note: Some HyperOS firmware (e.g., Xiaomi) 13/14) Magisk may not be removed completely due to integrated protection MIUI Optimization. In this case, you'll need a complete flashing.
๐ก
If the phone is stuck on the logo after removing Magisk, press Power + Volume up for 10-15 seconds to force a reboot to fastboot. Then stitch the stock boot through the Mi Flash Tool.
Method 2: Install stock firmware via Mi Flash Tool
This method is suitable for devices where the root was obtained through unlocking the bootloader and installing custom firmware, it is guaranteed to remove all traces of modifications, but requires a connection to a PC.
Step-by-step:
- Download the official firmware for your model from the Xiaomi Firmware website. Choose the Stable version (not Developer!) and the region corresponding to your device (e.g. Global or EEA).
- Unclose the firmware file (you should get a directory with the.tgz extension or a folder with.img files).
- Install the Mi Flash Tool (download here) and ADB/Fastboot drivers.
- Turn the phone into Fastboot mode: Turn off the device โ pinch Power + Volume down until the hare appears in the eardress cap.
- Connect your smartphone to your PC, open the Mi Flash Tool and point the way to the unpacked firmware.
- Select Clean All mode and press Flash.
| Firmware mode | What's he doing? | When to use |
|---|---|---|
| Clean all | Deletes all data, including internal memory | If you want to return the device to the "factory" state |
| Clean all and lock | Clean all + lock the loader | To restore the warranty (requires authorization of the Mi Account) |
| Save user data | Stores user data | Only if the root is removed without resetting settings (not recommended) |
The firmware process takes 5-15 minutes. Upon completion, the phone will automatically restart. If the device does not turn on after the firmware is installed (black screen or logo getting stuck), repeat the procedure by selecting a different mode (Clean all and lock).
What to do if the Mi Flash Tool gives you a "Couldn't load device" error
Method 3: Root removal through custom recovery (TWRP)
If you have TWRP installed on your device, you can remove the root directly from recovery without having to completely flash it, a method that is suitable for advanced users because it requires working with system partitions.
Instructions:
- Download the official ZIP-file to delete the root (for example, SuperSU-uninstaller.zip or Magisk-uninstaller.zip).
- Reboot to TWRP (turn off the phone โ pinch Power + Volume up).
- V TWRP Choose Install โ indicate downloaded ZIP-file โ Swipe it out for confirmation.
- After installation, select Wipe โ Format Data (enter yes for confirmation).
- Reboot to the system.
If the root remains after the restart, follow the additional steps:
- ๐ง Delete the folders. /su, /magisk and the busybox files manually through TWRP File Manager.
- ๐ Check the file. /system/build.prop For lines with a mention of the root (for example, ro.secure)=0). If necessary, correct them to ro.secure.=1.
โ ๏ธ Note: On some models (Xiaomi Mi) 11, Redmi Note 10 Pro) TWRP may not see the section /system dynamically partitioned (dynamic_partitions). In this case, use OrangeFox Recovery or reflash through Fastboot.
Method 4: Reset via service codes (for some models)
Some Xiaomi devices support root removal through service commands, a method that doesnโt work on all firmware, but can save time.
Try the following commands (enter the standard Phone app):
#3646633## โ Go to the engineering menu โ Connectivity โ Root Permission โ Disable
##7780## โ Resetting (saves data)
# #7378423## โ Service menu test (some models have the option of resetting the root)If the commands donโt work, try an alternative:
- Install Terminal Emulator from Google Play.
- Enter the command: su --install su --uninstall
- Reset the device.
This works about 30% of the time and depends on the version of MIUI. On HyperOS, root removal service codes don't usually work.
๐ก
Service codes are the fastest, but the least reliable way, and if you have any root left after you use them, you can go to the firmware methods.
Problems after root removal and their solutions
Even after successful root removal, users often face the following problems:
| Problem. | Possible cause | Decision |
|---|---|---|
| Phone not turned on (black screen) | Damage to the boot or system partition | Switch to stock boot.img via fastboot flash boot.img |
| Hanging on the MIUI/HyperOS logo | Conflict of remaining root files | Run Wipe Data in Fastboot (fastboot erase userdata) |
| Error "Device is corrupted" when downloading | Disparity between hash sums of system files | Swipe the full stock firmware through the Mi Flash Tool with a clean all and lock tick |
| Banking applications are not working | Remains traces of MagiskHide or modified build.prop | Check the /system/build.prop file for ro.debuggable=1 strings and delete them |
If the device behaves unstable after removing the root (for example, spontaneously restarts), follow the following steps:
- Install the Logcat Extreme app and check logs for errors related to sepolicy or selinux.
- If you have a mention of avc: denied in your logs, run stock vendor.img through fastboot.
- HyperOS models may require a rollback to an older version of MIUI followed by an update via OTA.