How to completely disable root rights on Xiaomi: 3 working ways

Getting root rights on Xiaomi smartphones gives you access to advanced system settings, but often users are faced with the need to disable them. The reasons are different, from problems with banking applications (Google Pay, SberBank Online) to the desire to return the warranty or update the firmware through MIUI OTA. However, simply removing superuser rights is not enough – you need to properly β€œclose” all changes in the system, otherwise you risk getting a β€œbrick” or reboot cycles.

In this article, we will discuss three proven methods of disabling root on Xiaomi, Redmi and POCO: through Magisk (the safest way), using TWRP (for power users), and standard MIUI tools (if root was obtained through official utilities).

Why you should turn off root rights on Xiaomi

Even if you no longer use the superuser, the changes left to the system can cause inconvenience:

  • 🚫 Blocking banking applications: SafetyNet detects modified firmware, and services like Google Pay or Tinkoff refuse to work.
  • πŸ”„ Problems with OTA-update: MIUI may not install updates over the air due to modified system files.
  • πŸ›‘οΈ Security vulnerabilities: root access opens up potential loopholes for malware, especially if you’ve installed unofficial modules.
  • πŸ“¦ Inability to return the warranty: service centers Xiaomi easily determine the facts of hacking the system bootloader logs.

In addition, some games (like PUBG Mobile or Genshin Impact) block users from root because of anticheats, and if you plan to sell the phone, the new owner may experience errors when first turned on.

⚠️ Note: If you turn off root before selling your smartphone, be sure to complete a full Factory Reset via Settings β†’ Additionally. β†’ Recovery and reset: Otherwise, personal data (including Wi-Fi passwords) may remain in the system!

πŸ“Š Why do you want to disable root rights?
To use banking applications
I'm planning to sell my phone.
We need to update the firmware.
No longer need access to system files
Another reason.

Preparing for root shutdown: what to do in advance

Before you start the procedure, follow a few critical steps:

  1. Backup your data. Use Mi Cloud (in Settings) β†’ Xiaomi account β†’ Mi Cloud β†’ Backups or third-party utilities like Swift Backup (requires root: πŸ“± Contact and SMS πŸ“· Photos and videos (including hidden folders) DCIM/.thumbnails) 🎡 Music and downloads πŸ“ Application files (for example, saving games in the /Android/obb)

Check the battery charge

60%

Find out the firmware version

Settings β†’ The phone. β†’ Version. MIUI

MIUI 14.0.5 Global

Disable the DM-Verity (DM-Verity)

If you used Magisk to get root, download the latest version of Magisk Uninstaller (uninstall.zip file) from the official GitHub repository. For methods with TWRP, you will also need a stock firmware for your model, which can be found on the Xiaomi Firmware Updater website.

β˜‘οΈ Checklist before root shutdown

Done: 0 / 5

Method 1: Turning Root off via Magisk (the safest method)

If you get root rights with Magisk (the most popular way for Xiaomi), then it is easiest to disable them through the same utility. 10/11/12, POCO X3/X4/X5, Mi 11/12/13 others.

Step-by-step:

  1. Open the Magisk Manager app (if not, download from GitHub).
  2. Go to the Settings section (cog in the upper right corner).
  3. Scroll down and click Full Delete Magisk (Complete Uninstall).
  4. Confirm the action and wait for the phone to restart.
  5. After turning on, check root status with the Root Checker app (should show Root access: Not available).

If for some reason Magisk is not removed via the menu (for example, the app is dyed), use an alternative method:

  1. Download the uninstall.zip file from the Assets section of Magisk's latest release on GitHub.
  2. Rename him in magisk_uninstaller.zip and move to the root of the internal memory.
  3. Boot to TWRP (hold Power + Volume up when turned on).
  4. V TWRP Choose Install β†’ point the way magisk_uninstaller.zip β†’ run through.
  5. After completion, press Reboot System.
SituationDecision
Magisk is not removed from the menu.Use uninstall.zip via TWRP
SafetyNet fails after removalInstall Universal SafetyNet Fix in Magisk before uninstallation
The phone is fixated on the MI logoDownload to Fastboot and flash the stock boot.img
Banking applications are not workingClear the app data and restart the phone

⚠️ Note: If you have installed additional modules in Magisk (e.g, ViPER4Android or LSposed), they must be removed before root is disabled, otherwise the system may lose stability!

πŸ’‘

If the phone stopped booting after deleting Magisk, try flashing the original boot.img for your MIUI version via Fastboot.The file can be extracted from the official firmware using the MIUI Rom Unpacker tool.

Method 2: Remove root via TWRP (for power users)

This is a method that works if you're rooting through customized recavatories (TWRPs) or installing informal firmware, and it's more sophisticated, but it allows you to completely return your phone to a runoff state.

What you need:

  • πŸ“± Smartphone with unlocked bootloader and installed TWRP.
  • πŸ’» Computer with drivers installed ADB/Fastboot and the Mi Flash Tool.
  • πŸ“ Stock firmware for your model (.tgz or.zip format).

Instructions:

  1. Download the official firmware for your model from the Xiaomi Firmware Updater website. Choose the Stable (not Developer) version that matches your region (Global, EEA, China).
  2. Unblock the firmware into a folder on your computer. You'll need a file. flash_all_except_storage.bat (for Windows or flash_all_except_storage.sh (for Linux/Mac).
  3. Connect your phone to your PC in Fastboot mode (hold Power + Volume down when turned on).
  4. Launch the file. flash_all_except_storage.bat Wait until the process is completed (the phone will reboot several times).
  5. After the reboot, check the root status in Root Checker and the SafetyNet operation in the YASNAC app.

If you want to save user data (photos, applications), use the script flash_all_except_storage_and_data.bat. However, in this case, there is a risk of unstable system operation - it is better to make a backup and flash clean firmware.

What to do if the phone does not turn on after the firmware?
If after firmware through the Mi Flash Tool, the phone hangs on the logo MI Or flashing a red light, try it: 1. Repeat the firmware with complete data erasure (flash_all.bat). 2. Use a different firmware version (for example, try Global instead of Global). EEA). 3. Just pass it. boot.img and recovery.img Fastboot: Fastboot Flash boot boot.img fastboot flash recovery recovery.img fastboot reboot If nothing helps, it may be damaged partition EFS β€” In this case, specialized repairs will be required.

Method 3: Disable root through MIUI settings (official method)

This method only works if the root rights were obtained through official Xiaomi utilities (for example, in Chinese firmware with an unlocked bootloader), it is the simplest, but not suitable for all models.

How to check if the method is suitable:

  • πŸ“Œ Root was obtained through Settings β†’ The phone. β†’ Version. MIUI (push-up).
  • πŸ“Œ You have not installed Magisk, SuperSU or other custom solutions.
  • πŸ“Œ Phone does not swear at modified firmware when checking SafetyNet.

Instructions:

  1. Open the settings β†’ About the phone β†’ version of MIUI.
  2. Click on the version line several times until you get a message: You are a developer!
  3. Return to the main settings menu and go to Additional β†’ For developers.
  4. Find the option to disable root access and activate it.
  5. Confirm the action and restart the phone.

If there is no option to disable root in the developer menu, then the rights were obtained informally – use methods with Magisk or TWRP.

πŸ’‘

The official method of disabling root via MIUI only works for clean firmware without third-party modifications. If you have installed Magisk, custom cores or changed system files, this method does not help - you need a complete firmware reflash.

How to Check if Root Rights Are Actually Disabled

Just not having Magisk Manager is not enough, you need to make sure that the system is back to stock state completely.

  1. Root Checker: Install the Root Checker app from Google Play. Run the check - status must be Root access is not properly installed on this device.
  2. SafetyNet: Download YASNAC (Yet Another SafetyNet Attestation Checker) and run the check, both CTS Profile Match and Basic Integrity must be green.
  3. Checking banking applications: Install Google Pay or SberBank Online. Try adding a card or logging in to your account β€” if there are no errors, root is successfully deleted.
  4. System File Analysis (for advanced users): Connect your phone to your PC and check the integrity of the /system partition using ADB: adb shell su -c "mount -o ro,remount /system" adb shell ls -la /system/bin/su If /system/bin/su is missing, root is deleted.

If SafetyNet still doesn’t go away, even after root removal, try:

  • πŸ”„ Install Universal SafetyNet Fix in Magisk (if you haven’t already removed it).
  • πŸ”„ Clear Google Play Services Data in Settings β†’ Annexes.
  • πŸ”„ Sweep through the stock. boot.img for your version MIUI.

Frequent Mistakes and How to Avoid Them

When root rights are disabled, users often face typical problems, and here are the most common ways to address them:

Mistake.Reason.Decision
The phone will not turn on after removing MagiskDamaged. boot.img module conflictSwitch the original boot.img through Fastboot
SafetyNet does not occur after root removalRemains of modifications to /systemSwitching to the Mi Flash Tool
Banking applications are not workingGoogle Play Services Cash Not ClearedClear Google Play Services Data and Reboot
The phone is stuck on the load.Incompatible firmware version or data corruptedExecute Wipe Data in TWRP and flash it again
The camera or sensors do not work after firmwareThe persist or EFS section is damagedSwitch stock firmware with a clean all checkmark in the Mi Flash Tool

If after all the manipulations the phone behaves unstable (spontaneous restarts, lags), perform a full reset (Factory Reset) via TWRP or the MIUI recovery menu. This will delete all user data, but return the system to working condition.

⚠️ Note: If you plan to give your phone to Xiaomi service center under warranty, note that even after removing root in the bootloader logs, there is an unlock record. To completely cover the tracks, you will need to reflash the anti-rollback section (a risky operation can lead to a brick). In most cases, service centers do not check this for standard malfunctions (screen, battery), but in case of firmware problems, a denial of warranty is likely.

FAQ: Answers to Frequent Questions

Can I turn off root without losing data?
Yes, if you use the Magisk Uninstaller method or the official MIUI shutdown, but when you run through TWRP or Mi Flash Tool, the data is usually erased. Always back up!
Why are the banking apps still not working after Magisk is removed?
There are probably some modifications in the section. /system Or Google Play Services cache is not cleared. Try: Clear Google Play Services data. Install Universal SafetyNet Fix in Magisk (yes, even if Magisk is remote, temporarily reinstall it). boot.img.
How to return the guarantee after disabling root?
Technically, it is impossible to return the full warranty, since the bootloader logs still contain an unlock record. However, if the problem is not related to the firmware (for example, a broken screen), the service center may not check this moment. For maximum camouflage: Sweat the stock firmware through the Mi Flash Tool with the Clean All option. Close the bootloader back (fastboot oem lock command), but this is risky - if the firmware is not stock, the phone will turn into a "brick." Do not mention the root when you pass for repair.
What if the root phone is not turned on after removal?
Most likely, boot.img is damaged or modules conflict. Try: Load into Fastboot (Power + Volume Down) and flash the original boot.img: fastboot flash boot.img fastboot reboot If it doesn't work, run the full stock firmware through the Mi Flash Tool. For models with Anti-Rollback (e.g., Redmi Note 8 Pro) may require firmware via EDL (only for power users!). If nothing helps, contact the service center - self-attemptting can exacerbate the problem.
Can I turn root on again after shutting down?
Yes, but the process will be the same as the first time: Unlock the bootloader (if it was blocked); Install TWRP or patched boot.img via Fastboot; Ask Magisk or another root manager. Note that re-unblocking the bootloader will reset all data on the phone!