How to remove root rights from Android to Xiaomi: the complete guide

Owning a superuser device opens up limitless customization opportunities, but often leads to unstable system performance. Many Xiaomi and Redmi users are faced with banking applications stopping running and anti-cheat games blocking entry. There is an urgent need to return the gadget to its original state to ensure the security of personal data and service performance.

The procedure for completely removing administrator rights may vary depending on how they were obtained. In some cases, it is enough to turn off the module in the manager, in others it is necessary to completely flash the device through Fastboot. Understanding the current configuration of your bootloader is critical before starting any manipulation of system files.

In this guide, we will look at all the current methods of root deactivation on POCO and Xiaomi smartphones.You will learn how to safely clean the system partition, restore the original boot image and avoid blocking your Mi Account.

Diagnostics of the current state of root rights

Before you start taking any action, you need to determine exactly which method of obtaining extended rights has been used before. Most often on Xiaomi devices you will find Magisk, which is embedded in the boot partition, or the classic SuperSU, which modifies system files, and the algorithm of your further cleaning actions depends on this choice.

Check for specific apps on the menu. If you see a black mask icon, it's Magisk, and if you see a red shield, it's SuperSU. It's also worth checking your settings and checking the status of Bootloader. If it's unlocked, simply removing the manager app won't bring the device back to factory safety.

For accurate diagnostics, you can use specialized tools like Root Checker, which not only confirm the rights, but also point the way to the su binary file, which helps you understand the depth of implementation in the system, and without this information, you can leave tails that will interfere with the banking software.

⚠️ Note: If you have used custom recavers (for example, TWRP) If you want to install root, simply delete files is not enough. You will need to reflash the original recovery image, otherwise the system may be recognized as modified.

Gather all the information about your model, MIUI version, and current bootloader status, which you will need to find the original firmware files, and ignoring this step can lead to incompatible components being installed and a cyclical reboot.

Device preparation and backup

Any manipulation of system rights carries the risk of data loss or software corruption. Before starting the root rights removal procedure, it is strongly recommended to create a full backup of important files, contacts and messages. Use Mi Cloud cloud services or local copying to your computer.

Make sure that the battery is at least 60-70%. The process of flashing or cleaning partitions can take time, and a sudden power outage at a critical moment will lead to serious consequences. USB-cable and check its serviceability.

β˜‘οΈ Checklist before removing Root

Done: 0 / 4

You also need a computer with Windows operating system and installed drivers ADB and Fastboot. Without these tools, a full cleaning of the boot partition will not be possible.

Remember to disable Find Device in your Mi Account settings if it is active, and in some cases, when you reset your access rights, the system may request a reauthorization, and blocking may be an obstacle to login.

Removal of rights through the Magisk application

If the superuser rights were obtained through Magisk Manager, the process of removing them is as simple as possible thanks to the built-in feature, which is considered the most secure method, since it automatically restores the original boot image, replacing the modified one.

Open the Magisk app on your smartphone. In the main menu, you'll see a button that says "Uninstall." Click on it and select the "Complete Uninstall" option in the window that appears.

Once confirmed, the automatic cleaning process will begin, the smartphone will go into reboot, and the next time it turns on, the root rights will be completely removed, and the Magisk application will disappear from the list of programs, a standard method that does not require a connection to a PC.

What to do if the removal button is inactive?
If the uninstall option is blocked or hidden, it is possible that the Magisk module has been damaged or hidden by other modifications, in which case, try going to the settings of the application itself (cog) and disabling "Zygisk" or "DenyList", then try again. If this does not help, you will need to manually flash boot.img.

It’s important to understand that this method only works if you don’t make changes to the system partition in other ways. Magisk does a great job of cleaning up its own implementation, but is powerless against traces of other, more aggressive routers.

Cleaning the system from SuperSU and other managers

For the outdated but still-a-coming SuperSU manager, the procedure looks different, and the settings of this app have a Settings tab where the Full Unroot button is located, and clicking on it triggers a script that deletes binary files and restores the original system libraries.

If the application has been removed before and the rights are retained, or if another method (such as KingRoot or OneClickRoot) is used, the situation becomes more complicated, and in such cases, manual deletion of files through the root file manager or through ADB Shell is often required.

You need to delete the su executable files from /system/bin/ and /system/xbin/ directories, and remove the application manager from /system/app/ or /system/priv-app/. You need to change the permissions to the folders and execute a command to reassemble the cache.

ComponentLocation.Action.
Binary SU/system/bin/suDelete
SU Binary (alt)/system/xbin/suDelete
SuperSU Manager/system/app/SuperSUDelete the folder
Library/system/lib/libsupol.soDelete

After all the deletions are done, you need to restart the device. If the files have been blocked from deleting, you may need to download to Safe Mode or use Recovery Mode to perform operations with the file system.

bootloader recovery and Stock ROM firmware

The most reliable way to securely remove all traces of root rights and return the warranty is through the official firmware (Stock). ROM) This method completely replaces all parts of the device, including boot, system and recovery, with factory copies.

To do this, you will need the Mi Flash Tool and the Fastboot firmware archive (extension.tgz). It is important to download the firmware specifically for your model and region. The process involves switching your smartphone to Fastboot mode (clamping the volume button when you connect the cable) and selecting the appropriate firmware mode in the program.

πŸ“Š Which Root Removal Method Do You Prefer?
Through the Magisk app
Complete flashing.
Reset via Recovery
I'm afraid to try.

When using the Mi Flash Tool, select the "Clean all" option to erase user data and settings. This will ensure a clean installation without residual file conflicts. The "Clean all and lock" option will also block the bootloader, but you should use it with extreme caution only if you are confident in the firmware region.

⚠️ Attention: Locking the bootloader with firmware from another region (e.g. China firmware on Global) will result in a hard brick. Use lock mode only with the original firmware for your region.

The firmware process will take 5 to 15 minutes. Don't interrupt the connection or touch the cable until the process is complete and automatically restarted. Once you first turn on, the system will be completely clean, like from the store.

Checking the results and safety

Once root rights are successfully removed, you need to make sure the system is working correctly, run the Root Checker app again, it should report that root access has not been detected, and check the banking applications and services that have previously failed to function.

Note the status of the bootloader. If you did not block it during the firmware process, the Fastboot menu will have an orange Unlocked indicator on it. For complete security and some features (for example, Mi Pay in some regions), you may need to re-lock it through the fastboot flashing lock command, but only after checking the stability of the system.

πŸ’‘

Tip: After removing root rights, it is recommended to perform a full reset (Wipe Data) through Recovery to exclude any software conflicts from the old superuser settings.

Now your Xiaomi or Redmi device is back in a safe state.Regularly update your system through OTA to close security vulnerabilities that may have previously been used to gain administrator rights.

Frequently Asked Questions (FAQ)

Will the guarantee disappear after the root rights are removed?
Technically, unlocking the bootloader and getting root rights is recorded on Xiaomi servers. Even if you remove root and reflash the device, the service center can see the history of changes in deep diagnostics. However, if you return the stock firmware and lock the bootloader, visually detect the intervention will be difficult.
Can I remove root without a computer?
Yes, if you used Magisk or SuperSU, you can use the built-in removal features inside these applications, but if the bootloader is unlocked, you can't completely return the device to a "store-like" state without a PC and Fastboot firmware.
What if the phone went into an endless reboot after removing root?
Most likely, the system files necessary to download were deleted, or the boot partition was damaged. In this case, only flashing the device through Fastboot using the Mi Flash Tool will help. If the phone is not in Fastboot mode, Emergency Download (EDL) mode may be required.
Will my data remain after root is deleted?
When you use the "Full Delete" function inside Magisk, the data is stored. When you run through Fastboot with the "Clean all" option, all data will be deleted. Always back up before you start any procedures.

πŸ’‘

The only way to guarantee the existence of root rights in the past is a complete flashing stock image with the bootloader lock.