How to completely cancel root rights on Xiaomi smartphones: 3 working methods

Why Users Want to Remove Root Rights and When It Is Necessary

Getting root rights on Xiaomi opens up access to advanced system settings, but over time, many users face the need to cancel them. The main reason is security problems: rooted devices are vulnerable to malware, and banking applications (Sberbank, Tinkoff) and services (Google Pay, Netflix) often block work on such devices. The second weighty argument is the denial of warranty service. The manufacturer has the right not to repair the smartphone if traces of the root are found, even if the breakdown is not directly related to it.

Another common situation is that you can't update MIUI through OTAs, and the system blocks the installation of official updates on modified devices, and attempts to circumvent this restriction often lead to a "brick" (complete failure) of the phone. Finally, some users are simply disappointed in the benefits of the root: the battery goes down faster, applications fly out, and the promised "system acceleration" turns out to be a myth. If you recognize your situation in this description, it's time to act.

Preparing for root removal: what to do in advance

Before you start, back up all your data. Undoing your root rights can cause you to reset your settings or even completely clear your memory. Use Mi Cloud, Google Drive, or local storage on your PC.

  • ๐Ÿ“ฑ Contacts and Messages (Export through Settings) โ†’ Google โ†’ Backup)
  • ๐Ÿ“ท Photo and video (copy to external drive)
  • ๐Ÿ”‘ Passwords from Wi-Fi (Settings) โ†’ Wi-Fi โ†’ Save networks)
  • ๐ŸŽฎ Save games (use cloud services like Helium)

Then check the current status of root rights. Install the Root Checker app from Google Play to show if the superuser is active. If the phone is not turning on or stuck on the logo, you will need Fastboot mode (press Power + Volume down when booting). It is not superfluous to charge the battery to at least 60% - the process can take up to 30 minutes.

๐Ÿ“Š How to Get Root Rights on Your Xiaomi?
Through Magisk
With SuperSU
Used KingRoot.
Another way.

Method 1: Remove root through Magisk (the safest way)

If you used Magisk to get root rights, you'll have the cleanest way to undo it, and it saves your user data 90 percent of the time, and doesn't require you to unlock the bootloader.

  1. Open the Magisk Manager app (if not, download the latest version from the official GitHub).
  2. Go to the Uninstall section โ†’ Complete Uninstall.
  3. Confirm the action and wait for the reboot.
  4. After turning on, check the status of the root through the Root Checker.

If after the reboot the phone is stuck on the logo MIUI, Don't panic. Turn it off with a long press on the power button (10-15 Then turn it on again. 10% In some cases, additional cleaning of the cache is required:

โ˜‘๏ธ Actions when hanging after removal of Magisk

Done: 0 / 4

Important: If you installed modules through Magisk (for example, ViPER4Android or Xposed), traces of them may remain in the system.

1. Sign in to TWRP (Volume Up + Power)


2. Go to Mount โ†’ System




3. Connect the phone to the PC and delete folders:




/system/su




/system/bin/su




/system/xbin/su




/system/app/SuperSU (if any)




4. Run Wipe Cache and restart

๐Ÿ’ก

If your banking applications are still not working after you delete Magisk, check SafetyNet status through the SafetyNet Test app. Sometimes you need to add some firmware to the original boot.img.

Method 2: Complete reset via TWRP (for power users)

This is a good way to do it if Magisk isn't installed or if it's not removed, and you'll need to know that it causes total data loss, but it's guaranteed to remove all traces of the root.

  • ๐Ÿ”ง Unlocked bootloader (if the lock has been removed earlier)
  • ๐Ÿ“ฑ Established TWRP Recovery (version for your model)
  • ๐Ÿ’พ Official firmware MIUI in.zip format (download from the official website)

Step-by-step:

  1. Copy the firmware to the external SD-card.
  2. Enter TWRP (Put Power + Volume Up when Enabled).
  3. Select Wipe โ†’ Advanced Wipe and mark Dalvik / ART Cache System Data Internal Storage (optional if you want to erase everything)

Install

Wipe Cache

The first download can take 10-15 minutes.If the phone has been stuck on the logo for longer than 20 minutes, repeat the procedure, but in step 3 add cleaning Cache and Vendor.

What to do if TWRP asks for a password?
If you previously encrypted data in MIUI, TWRP may require a password. Enter the same PIN/password as you used to unlock the screen. If you don't remember, you'll have to format Data (all files will be deleted).

โš ๏ธ Note: Some Xiaomi models (e.g. Redmi Note 10 Pro) POCO F3) firmware TWRP This can lead to an Anti-Rollback error. MIUI Choose a firmware no older than the current one.

Method 3: Fastboot Firmware (Guaranteed Root Removal)

The most radical, but also the most reliable way is to flash your phone through the Fastboot using the official Mi Flash Tool, which is suitable for "brick" devices and guaranteed to remove all modifications.

ComponentWhere to find it.Note
Mi Flash ToolOfficial websiteVersion 2023.4.1 or later
Fastboot firmwareXiaomi Firmware UpdaterChoose a version for your model
Qualcomm driversQualcomm DeveloperIt's necessary for phone recognition.
USB cableOriginal from the kitIt is better to use the USB 2.0 port on your PC.

Instructions for Windows:

  1. Install the Mi Flash Tool and drivers.
  2. Unpack the downloaded firmware into a folder without Cyrillic characters (for example, C:\Xiaomi\ROM).
  3. Turn off the phone and switch to Fastboot mode (Power + Volume down).
  4. Connect to a PC. The Device Manager should appear Qualcomm HS-USB QDLoader 9008.
  5. In the Mi Flash Tool, click Select and specify the firmware folder.
  6. Select Clean All mode and press Flash.

๐Ÿ’ก

Fastboot is the only way to get your phone back to factory status if it doesn't turn on or bootloop. However, this method requires an unlocked bootloader. If the lock is active, unlock it first through the Mi Unlock Tool.

How to Check if Root Rights Have Been Completely Removed

Even after a successful root removal, traces of the root may remain in the system. To make sure the device is clean, do 4 checks:

  1. Root Checker: Launch the app and press Verify Root. Root access is not properly installed.
  2. SafetyNet: Install SafetyNet Test and check the status of ctsProfile โ€“ it must be true.
  3. System Files: Through any file manager (e.g. Solid Explorer) check for the absence of: Folders /system/su Files /system/bin/su Applications SuperSU or Magisk Manager in Settings โ†’

Banking applications

Sberbank Online

Tinkoff

If SafetyNet still doesnโ€™t pass (ctsProfile: false), itโ€™s likely that the modified files are still in the system, in which case only full firmware through Fastboot (Method 3) will help.

โš ๏ธ Note: Some Xiaomi models (e.g. Mi 11 or Redmi) K40) They have a hardware integrity check, and even after the root is removed, they can block banking applications, and that requires official firmware from the service center.

Frequent mistakes and their solutions

The process of removing root rights rarely goes smoothly, and here are the most common problems and ways to solve them:

Mistake.Reason.Decision
The phone will not turn on after removing MagiskDamaged. boot.img module conflictSweep the original boot.img through Fastboot: fastboot flash boot.img
The Anti-Rollback Error in TWRPTrying to flash the old version of MIUIDownload firmware no older than the current one or use the Mi Flash Tool
SafetyNet does not pass (ctsProfile: false)Remains of modified system filesComplete reset via Fastboot (Method 3)
The camera does not work after removing the rootCamera drivers in /vendor are damagedSweep the original vendor.img or the entire firmware

If after all the manipulations the phone still does not work correctly, try to return stock recovery:

fastboot flash recovery recovery.img


fastboot reboot

Where recovery.img โ€” original recovery file from official firmware. A/B-sections (e.g, POCO F4) You may need to install both slots:

fastboot --set-active=a


fastboot flash boot boot.img




fastboot --set-active=b




fastboot flash boot boot.img

Can root be deleted without data loss?
Yes, but only if you've used Magisk and you haven't installed system modifications (e.g. Xposed), in which case you just select Complete Uninstall in the Magisk settings, and if you've changed system files manually or through TWRP, data loss is inevitable.
Why does the bank application still not work after removing the root?
The reasons may vary: There are traces of modifications to /system or /vendor. MagiskHide is active - it must be disabled in the Magisk settings before being deleted. The device is on the bank's "gray list" (for example, if pirated versions of applications were previously used). Try flashing your phone through Fastboot or contacting the bank to request that restrictions be reset.
How do I know if my Xiaomi bootloader is unlocked?
Turn off your phone and turn it on in Fastboot mode (Power + Volume down). Connect to your PC and type the command: fastboot oem device-info If the answer is Device unlocked: true, the bootloader is unlocked. If false, the lock is active, and you need to unplug it to Fastboot.
Can I return the warranty after removing the root?
Theoretically, yes, if you completely return the phone to the drain state (firmware via Fastboot + stock recovery), but Xiaomi can check the bootloader's unlock history through its server. If the lock has ever been removed, it will be visible at the service center, and the chances of warranty repair in this case are minimal.
What if the phone is slower after removing the root?
This is normal if you've been flashing your phone through Fastboot or TWRP. A clean MIUI system can seem slower because of: No optimizations that were in custom firmware; Background indexing of files after reset; Automatic restore of factory applications (bloat). Give the phone 24-48 hours to adapt. If the lags remain, reset to factory settings (Settings โ†’ About phone โ†’ Reset).