How to Remove Root Rights from Xiaomi Phone: 5 Proven Methods

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).

πŸ“Š Why you are removing root rights on Xiaomi?
I'm planning to sell my phone.
I need a guarantee.
Banking stopped working.
Too many bugs.
Other

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 -v

If 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:

  1. Open the Magisk app (if not, download the latest version from the official GitHub).
  2. Go to the Settings section (cog in the upper right corner).
  3. Select Remove Magisk β†’ Complete Deletion.
  4. 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.

  1. Download the original firmware for your model from the Xiaomi Firmware website.
  2. Remove the boot.img file from the archive.
  3. 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:

  1. Download the stock firmware for your model (for example, fastboot-rom or recovery-rom) from the official Xiaomi website.
  2. Transfer the firmware file (usually.zip) to your phone or external memory card.
  3. Boot into TWRP: Turn off the phone, then press Volume Up + Power.
  4. In TWRP, select Wipe β†’ Advanced Wipe and select Dalvik/ART Cache, Cache, Data.
  5. Return to the main menu, select Install and indicate the path to the downloaded firmware.
  6. 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 removalYou 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:

  1. Unpack the downloaded firmware into a folder without Cyrillic characters (for example, C:\Xiaomi\fastboot_rom).
  2. Install Xiaomi drivers (if not installed) through MiFlash.
  3. Turn off the phone and press Volume Down + Power to enter Fastboot mode.
  4. Connect your phone to your PC. In MiFlash, press Refresh, the device needs to be determined.
  5. Select the firmware folder, specify Clean all and lock mode (this will block the bootloader and delete all data).
  6. 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:

  1. Go to Settings β†’ About Phone β†’ MIUI version and tap 7 times on the build number to activate Developer Mode.
  2. Back to Settings β†’ Additionally. β†’ For developers.
  3. Find the option to Remove root access (in English firmware - Remove root access).
  4. 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/magisk

Also check the /system/build.prop file for strings:

ro.debuggable=1


ro.secure=0

If you have them, replace them with:

ro.debuggable=0


ro.secure=1

To 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




exit

Once cleaned, restart your phone and check for SafetyNet status. If the ctsProfile flag is still false, try resetting Google Play Services:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Find Google Play Services, click Storage β†’ Clear Data.
  3. Reset the device.
What if SafetyNet doesn’t go away even after root removal?
In some cases, the problem is that the device’s fingerprint is not matched in the build.prop file. Compare it to the original one for your model (you can find it on the 4PDA forums). If the prints are different, correct the ro.build.fingerprint string and restart the phone.

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.

  1. Root Checker: Install the app from Google Play and run the check. If Root access: Not available status, there is no root.
  2. SafetyNet: Use SafetyNet Test or YASNAC (Yet Another SafetyNet Attestation Checker) both flags (basicIntegrity and ctsProfile) must be true.
  3. Banking applications: Try installing and running Sberbank Online or Tinkoff, and if they work without errors, the problem is solved.
  4. 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:

  1. Turn off the phone.
  2. Press Volume Down + Power to enter Fastboot.
  3. Connect your phone to your PC and type in the command: fastboot oem device-info
  4. 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 lock

Warning: 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 MagiskDamaged. boot.img module conflictSwitch to stock boot.img via Fastboot
SafetyNet does not pass (ctsProfile=false)Remains of modifications to /system or /vendorComplete Fastboot Firmware with Cleaning of All Partitions
Camera or sensors fail after root removalSystem libraries or drivers removedRestore stock firmware or flash separately the vendor and system sections
The phone does not turn on after fastboot oem lockThe loader is locked on the modified firmwareUnlock 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:

  1. Contact the Xiaomi service center with a request to reflash the phone with official firmware (payment may be required).
  2. 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.

FAQ: Answers to Frequent Questions

Can root be deleted without data loss?
Yes, but only if the root was installed through Magisk in "systemless" mode, in which case you just select the "Full Delete" option in the Magisk settings and reboot the phone, but banking applications may need to reset data, since they cache the root access information.
Why does SafetyNet still not go away after removing the root?
This is because SafetyNet not only checks the presence of the root, but also the integrity of the system partitions. If you modify /system, /vendor or boot, the ctsProfile flag will be false.
How do I know if the bootloader is blocked after removing the root?
Enter Fastboot Mode (Loudness Down) + Power) and connect the phone to the PC. Enter the command: fastboot oem device-info If the output line is Device unlocked: false - the bootloader is locked. If true, unlocked.
Can I return the warranty after removing the root?
Technically, yes, if you return the phone to a fully stocked state (locked bootloader, original firmware, no trace of modifications), however, Xiaomi can check the device log and refuse warranty repair if the bootloader was previously unlocked, depending on the policy of the specific service center.
What to do if the phone does not turn on after removing the root?
It was probably damaged by boot.img or another critical section. Solution: Log in to Fastboot (Loudness down + Power). Run the stock firmware through MiFlash in Clean all mode. If the phone is not identified, try the EDL mode (requires a Xiaomi authorized account and a special cable). If nothing helps, contact the service center.