Many Xiaomi smartphone users decide to get super-user rights to expand the functionality of the device, but often face the need to return everything as it was. The reasons can be different: unstable banking applications, problems with warranty service or the desire to sell the gadget at the maximum price. The process of removing Root requires care, as improper actions can lead to software errors.
Unlike simple installation, deactivating administrator rights on the MIUI or HyperOS shell has its own nuances, depending on how the system was modified. If you used the standard Magisk tool, the procedure will go relatively smoothly, but if the intervention was deep, you will need a complete firmware reflash. It is important to understand that just removing the application manager is not enough, you need to clean the system partitions.
Before you start any manipulation, make sure that the battery is at least 60%, and all important data is copied to the cloud or to the computer.Resetting the rights is often accompanied by a complete cleanup of the device memory, and restoring contacts or photos without a backup will be impossible. Below we will look at proven methods of returning to a drain state.
β οΈ Attention: You perform all actions to change system files at your own risk.The author is not responsible for turning the smartphone into a "brick" in case of violation of the process technology.
Why you may need to remove the rights of a superuser
The main reason for the return to factory settings is the inability to use popular banking applications: Programs like SberBank Online, Tinkoff or Mir Pay use SafetyNet (or its newer version of the Play Integrity API), which blocks work on modified devices. Even if you hide root rights, some services can stop functioning correctly, requiring complete cleanliness of the system.
Another factor is operating system stability: Third-party modifications to the kernel or system libraries can cause spontaneous reboots, fast battery drain or body heat. Xiaomi carefully optimizes its firmware, and any interference in this balance can violate energy efficiency. Removing modifications often solves problems with autonomy.
Also worth mentioning are warranty obligations: Xiaomi's official service centers have tools to verify the integrity of the software. If a faulty master finds traces of an unlocked bootloader or a modified system partition, warranty repairs may be refused. Returning to the drain is the only way to protect yourself from unnecessary costs.
Preparing the device for system recovery
Before you start taking action, you have to do a number of preparatory procedures, the first step is to create a full backup of data, built-in MIUI allows you to save contacts, SMS and settings, but for photos and documents, you better use a computer or cloud services like Google Drive.
The second important step is to check the firmware version and the availability of the original bootloader. If you installed custom Recovery (like TWRP), you will need the original recovery.img image for your model to return the standard recovery mode. Without this step, a standard reset through the settings may not work or result in a cyclical reboot.
Remember to disable all debugging and unlocking functions if they are active in the developer menu. While some methods will require USB-Debugging, it is better to minimize interference with the debugging interfaces initially. Also make sure that the USB cable is functional and capable of transmitting data, not just charging the device.
βοΈ Checklist of preparations
Removal method through Magisk application
If the superuser rights were obtained using the popular Magisk manager, the uninstallation process is as simple as possible for developers, which is suitable for those who did not change the system partitions manually, but used a patched image boot.img. You do not need a computer, all actions are performed directly on the smartphone.
Open the Magisk app and go to the main menu. In the center of the screen, you'll see a button that says Uninstall. Click on it and the system will offer two options: "Complete Uninstall" and "Restore Images." To completely remove the root rights, select the first option.
Once confirmed, the app will begin the clean-up process. The smartphone will automatically restart in Recovery or Fastboot mode (depending on the version), where the modified boot image will be replaced with the original one.
What happens if Magisk doesnβt open?
β οΈ Note: The method through Magisk only works if the bootloader has not been reflashed by third-party Recovery. TWRP, First we need to return the stock Recovery.
Complete Fastboot Fastboot Fastboot Fastboot
The most reliable way to ensure that any traces of modifications are removed is to completely reflash the device and clean all partitions. For this, you will need a computer, a Xiaomi Flash Tool utility and a.tgz (Fastboot ROM) stock firmware image.
Put your smartphone in Fastboot mode. To do this, turn off the device, then press the power and volume buttons at the same time. FASTBOOT. Connect your phone to your computer through USB-cable.
Launch Xiaomi Flash Tool on your PC. Press the "Refresh" button to detect the device. In the lower left corner, select Clean all mode. This mode completely erases data and partitions, installing a clean system. Press "Flash" and wait for the process to finish, which can take 5-10 minutes.
fastboot flash recovery recovery.img
fastboot rebootThe above command may be needed if you want to manually restore the recovery partition before the firmware, but using the Xiaomi Flash Tool in Clear All mode automatically does this, since the tool itself writes all the necessary sections from the firmware archive.
π‘
The βClean Allβ mode in Xiaomi Flash Tool completely removes Root rights, unlock bootloader and all user data, returning the phone to factory state.
Resetting settings via Recovery Mode
If you can't use a computer, you can try resetting through the built-in recovery menu. However, this method is only effective if the modifications did not affect critical system files. Standard Recovery on Xiaomi has limited functionality compared to custom counterparts.
To enter recovery mode, turn off your phone and press the power and volume buttons. In the menu that appears (which may be in Chinese or English), select Wipe Data. Confirm the action by pressing Confirm.
Once you've cleaned your files, select "Reboot." If the system boots normally and the administrator rights disappear, the modifications were superficial, and if the phone requests permissions again or goes into reboot, you can't do without flashing through Fastboot.
| Method | A PC is needed. | Data retention | Efficiency |
|---|---|---|---|
| Magisk Uninstall | No. | Yeah (backup welcome) | High (for Magisk) |
| Fastboot (Clean all) | Yes. | No (complete removal) | Maximum |
| Recovery Wipe | No. | No. | Medium |
| OTA Update | No. | Yes. | Low (often blocked) |
Possible problems and solutions
When removing Root rights, Xiaomi users may encounter a βStatus 7β error when trying firmware or an endless bootloop cycle, often because the firmware version installed is lower than the bootloader version or the current Android version.
Another common problem is blocking Mi Account, where if the device has been searched for, it will require you to enter a password from the account you were linked to after reset, so make sure you remember the login details, otherwise the phone will turn into a useless piece of plastic.
If banking applications still complain about root rights after the procedure, it may be that the system has file tails, in which case only re-routing with a complete clean command or using specialized scripts to deep clean the Dalvik and ART cache helps.
π‘
If the phone is slow after flashing, give it 1-2 hours in a Wi-Fi-connected state.The system optimizes applications in the background, which can cause heating and lag.