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.
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.
- Open the Magisk Manager app (if not, download the latest version from the official GitHub).
- Go to the Uninstall section โ Complete Uninstall.
- Confirm the action and wait for the reboot.
- 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
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:
- Copy the firmware to the external SD-card.
- Enter TWRP (Put Power + Volume Up when Enabled).
- 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?
โ ๏ธ 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.
| Component | Where to find it. | Note |
|---|---|---|
| Mi Flash Tool | Official website | Version 2023.4.1 or later |
| Fastboot firmware | Xiaomi Firmware Updater | Choose a version for your model |
| Qualcomm drivers | Qualcomm Developer | It's necessary for phone recognition. |
| USB cable | Original from the kit | It is better to use the USB 2.0 port on your PC. |
Instructions for Windows:
- Install the Mi Flash Tool and drivers.
- Unpack the downloaded firmware into a folder without Cyrillic characters (for example, C:\Xiaomi\ROM).
- Turn off the phone and switch to Fastboot mode (Power + Volume down).
- Connect to a PC. The Device Manager should appear Qualcomm HS-USB QDLoader 9008.
- In the Mi Flash Tool, click Select and specify the firmware folder.
- 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:
- Root Checker: Launch the app and press Verify Root. Root access is not properly installed.
- SafetyNet: Install SafetyNet Test and check the status of ctsProfile โ it must be true.
- 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 Magisk | Damaged. boot.img module conflict | Sweep the original boot.img through Fastboot: fastboot flash boot.img |
| The Anti-Rollback Error in TWRP | Trying to flash the old version of MIUI | Download firmware no older than the current one or use the Mi Flash Tool |
| SafetyNet does not pass (ctsProfile: false) | Remains of modified system files | Complete reset via Fastboot (Method 3) |
| The camera does not work after removing the root | Camera drivers in /vendor are damaged | Sweep 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 rebootWhere 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