Removing root rights from Xiaomi devices is a reverse procedure to unlock the bootloader, but no less important. Many users get root access to install custom firmware or remove system applications, but later face problems: failure of banking applications, blocking OTA- updates or unstable system operation. Returning the phone to the factory state without traces of the root can be done in several ways, from simple disconnection in Magisk to complete flashing through Fastboot.
In this article, we will discuss all the current methods of removing root rights to Xiaomi, Redmi and POCO, including the nuances for different versions of MIUI (12-14) and Android (10-14).
1.Preparation for root removal: what you need to know
Before you start the procedure, check out three critical factors that affect the success of the operation:
- πΉ bootloader status: If it was officially unlocked through the Mi Unlock Tool, it can be blocked again. If you used "grey" methods (for example, EDL), it will be more difficult to return the original state.
- πΉ Version MIUI: Firmware older than MIUI 12.5 may not be automatically updated via OTA after the root is removed.
- πΉ Having a backup: Deleting a root often requires a data reset. Save photos, contacts, and files to an external drive or to the cloud.
Also note that some banking applications (such as SberBank Online or Tinkoff) may continue to block work even after the root is deleted.This is due to the AVB (Android Verified Boot) flag, which records changes in the system partition, in which case you will need a complete firmware reflash through Fastboot with the cleaning of all partitions.
β οΈ Warning: If you have removed system applications (e.g., com.miui.analytics) through the root, their absence may cause errors even after returning to stock firmware, in which case you will have to manually restore deleted files.
To check the current status of root rights, use the Root Checker app or enter the command in the terminal:
su -vIf the team returns a version of SuperSU or Magisk, the root is active, and if the Permission denied error is displayed, the rights are not valid or disabled.
2. Method 1: Root removal via Magisk (the easiest way)
If the root rights were obtained using Magisk, they can be disabled or completely deleted through the application itself.This method does not require a data reset and is suitable for most users.
Instructions:
- Open the Magisk app (if not, download the latest version from the official GitHub).
- 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 through Root Checker. If the permissions are deleted, but the banking applications still do not work, follow the additional steps:
Delete /data/adb/magisk folder manually through file manager
Clear the cache and data of Google Play Services and Google Play Services
Reinstall banking applications
Check SafetyNet status through SafetyNet Test-->
If Magisk was installed in the boot section instead of in recovery, it may be necessary to restore the stock boot image.
- Download the original firmware for your model from the Xiaomi Firmware website.
- Remove the boot.img file from the archive.
- Fastboot: fastboot flash boot.img fastboot reboot
β οΈ Warning: If the phone boots to a bootloop after removing Magisk, the modified boot.img was critical to the system, in which case you would have to stitch the full image through Fastboot (method 4).
Method 2: Recoil through TWRP (for power users)
If you have a custom TWRP recap, you can delete the root rights through it, which is suitable if you have modified system files or installed Magisk modules.
Step-by-step:
- Download the stock firmware for your model (for example, fastboot-rom or recovery-rom) from the official Xiaomi website.
- Transfer the firmware file (usually.zip) to your phone or external memory card.
- Boot into TWRP: Turn off the phone, then press Volume Up + Power.
- In TWRP, select Wipe β Advanced Wipe and select Dalvik/ART Cache, Cache, Data.
- Return to the main menu, select Install and indicate the path to the downloaded firmware.
- After installation, run Wipe Cache/Dalvik and restart.
If the firmware is fastboot, it cannot be installed via TWRP β you will need a computer and a MiFlash utility (method 4).
| Method of root removal | You need a PC? | Data dump? | Is it suitable for banking applications? |
|---|---|---|---|
| Through Magisk | β No. | β No. | β οΈ Partially (SafetyNet check needed) |
| Through TWRP | β No. | β Yes. | β Yes (with full cleaning) |
| Through Fastboot. | β Yes. | β Yes. | β Yes. |
| Through the MIUI- menu | β No. | β Yes. | β Yes. |
Important: If you have used the βsystemless rootβ method (e.g., using Magisk in βKeep Force encryptβ mode), you may need to re-encrypt the /data partition after removing the root. Go to Settings β Additional β Privacy β Encryption and credentials and start the encryption process.
4. Method 3: Complete Fastboot Flashing (100% result)
This is the most reliable way to get your phone back to factory status, but it requires a computer and completely erases all data, suitable for devices with a locked bootloader or if other methods have failed.
What you need:
- π₯οΈ Windows computer (for MiFlash).
- π Cable USB (preferably original).
- π₯ Fastboot firmware for your model (download from the official website).
- π οΈ MiFlash (last version).
Instructions:
- Unpack the downloaded firmware into a folder without Cyrillic characters (for example, C:\Xiaomi\fastboot_rom).
- Install Xiaomi drivers (if not installed) through MiFlash.
- Turn off the phone and press Volume Down + Power to enter Fastboot mode.
- Connect your phone to your PC. In MiFlash, press Refresh, the device needs to be determined.
- Select the firmware folder, specify Clean all and lock mode (this will block the bootloader and delete all data).
- Press Flash and wait until it is completed (usually 5-10 minutes).
Once you flash it, the phone will turn on as new, all data, including photos and apps, will be deleted, the bootloader will be locked, and SafetyNet will return to true.
π‘
If the phone doesn't turn on after you've run through Fastboot (black screen), try clamping Volume Up + Power for 20 to 30 seconds to force you to restart. If that doesn't help, repeat the firmware with Clean all mode (without locking the bootloader).
5. Method 4: Remove root through MIUI menu (for some models)
On some Xiaomi devices (such as the Redmi Note 10 Pro or POCO X3 Pro) there is a factory reset option with root-right removal in the settings menu.This method does not guarantee 100% results, but it can work if the root was obtained through standard methods.
How to do this:
- Go to Settings β About Phone β MIUI version and tap 7 times on the build number to activate Developer Mode.
- Back to Settings β Additionally. β For developers.
- Find the option to Remove root access (in English firmware - Remove root access).
- Confirm the action and wait for the reboot.
If this option is not available, then your model does not support this deletion and you need to use other methods.
After the reset, check:
- π Whether banking applications (e.g. SberBank or VTB Online) work.
- π Does the SafetyNet certification pass (can be checked through the SafetyNet Test app)
- π Is Update OTA Available in Settings β System Update
β οΈ Warning: Some firmware may have a dm-verity flag on the MIUI menu after removing the root, which blocks the modified system from booting, in which case only a full Fastboot flashing will help.
Method 5: Manual removal of root traces (for advanced)
If you removed Magisk or SuperSU, but the banking applications are still not working, you may still have root traces in the system, which can be manually removed via ADB or a root-access file manager (if it is still active).
List of files and folders that need to be deleted:
/system/bin/su
/system/xbin/su
/system/xbin/daemonsu
/system/xbin/supolicy
/system/app/SuperSU
/system/etc/init.d/99SuperSUDaemon
/data/adb/magisk
/data/magisk
/data/su
/cache/magiskAlso check the /system/build.prop file for strings:
ro.debuggable=1
ro.secure=0If you have them, replace them with:
ro.debuggable=0
ro.secure=1To remove via ADB, use the following commands:
adb shell
su
mount -o rw,remount /system
rm -rf /system/bin/su
rm -rf /system/xbin/su
and so on, from all the paths above the list.
mount -o ro,remount /system
exitOnce cleaned, restart your phone and check for SafetyNet status. If the ctsProfile flag is still false, try resetting Google Play Services:
- Go to Settings β Applications β Application Management.
- Find Google Play Services, click Storage β Clear Data.
- Reset the device.
What if SafetyNet doesnβt go away even after root removal?
7.Result Check: How to Make Sure Root Is Removed
After using any of these methods, you need to verify that the root rights are gone and the system is back to its original state.
- Root Checker: Install the app from Google Play and run the check. If Root access: Not available status, there is no root.
- SafetyNet: Use SafetyNet Test or YASNAC (Yet Another SafetyNet Attestation Checker) both flags (basicIntegrity and ctsProfile) must be true.
- Banking applications: Try installing and running Sberbank Online or Tinkoff, and if they work without errors, the problem is solved.
- OTA- Updates: Go to Settings β System Update and check if updates are available. If so, bootloader and system partitions are fine.
If any of the tests fail, go back to method 3 or 4 (complete Fastboot flashing).
Also, look at the status of the bootloader to check it out:
- Turn off the phone.
- Press Volume Down + Power to enter Fastboot.
- Connect your phone to your PC and type in the command: fastboot oem device-info
- Look at the Device unlocked: false line. If it's true, the bootloader is unlocked.
If the bootloader remains unlocked but the root is removed, it can be blocked by the command:
fastboot oem lockWarning: This command will erase all data and return the phone to factory settings!
π‘
If, after all the manipulations, the banking applications still donβt work, the problem may be the hardware identifier of the device (IMEI or serial number), which was blacklisted, in which case only replacing the motherboard or contacting the Xiaomi service center with a request to unlock the device officially will help.
8. Frequent errors and their solutions
When removing root rights on Xiaomi, users often face typical problems, and letβs look at the most common ones and how to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| Bootloop after removing Magisk | Damaged. boot.img module conflict | Switch to stock boot.img via Fastboot |
| SafetyNet does not pass (ctsProfile=false) | Remains of modifications to /system or /vendor | Complete Fastboot Firmware with Cleaning of All Partitions |
| Camera or sensors fail after root removal | System libraries or drivers removed | Restore stock firmware or flash separately the vendor and system sections |
| The phone does not turn on after fastboot oem lock | The loader is locked on the modified firmware | Unlock the bootloader and flash the stock firmware again |
If the phone has slowed down or warmed up after removing the root, there may be background processes from the Magisk modules.
- πΉ Settings β Battery β Battery use β are there any suspicious processes?
- πΉ Settings β Applications β All applications β whether Magisk Manager, SuperSU, and the like are removed
- πΉ Folder /data/adb β sometimes there are autoload scripts left.
If none of the methods worked and the banking applications still didnβt work, there are two options:
- Contact the Xiaomi service center with a request to reflash the phone with official firmware (payment may be required).
- Buy a new phone β in some cases (for example, if the modem partition is damaged), the recovery costs more than the device.
Remember, Xiaomi warranty does not apply to devices with unlocked bootloader or root rights. If you plan to use the service, first return the phone to a fully stock state.