How to completely disable root on Xiaomi: 3 working methods and consequences

Getting root rights on Xiaomi smartphones opens up wide opportunities for customization, but users often face the need to disable them, and the reasons can be different from problems with banking applications (SafetyNet) to preparing the device for sale or warranty repair. In this article, we will discuss all the current ways to remove root on Redmi, POCO Mi-series, including nuances for devices with a locked bootloader and features of working with Magisk.

It is important to understand that the process of disabling root is not always reduced to simply pressing the "Unroot" button, depending on the method of obtaining rights (via Magisk, SuperSU or custom restoration). TWRP) And the algorithms will be different, and we'll look at three basic approaches: software removal through Magisk Manager, full reset via Fastboot, and clean firmware reflashing with official Xiaomi tools. MIUI Anti-Rollback, which can lock the device if you do not act correctly.

Why You Should Turn Off Root on Xiaomi

Not all users understand that root rights affect not only the functionality of a smartphone, but also its security and compatibility with services, and here are the key reasons why Xiaomi owners decide to remove super-user privileges:

  • ๐Ÿฆ Blocking banking applications: SberBank Online, Tinkoff, Google Pay and other services refuse to work on devices with an unlocked bootloader or modified firmware due to SafetyNet requirements.
  • ๐Ÿ”ง Warranty repair: Xiaomi service centers have the right to refuse warranty service if they find traces of rooting or custom firmware (even if the problem is not related to the software part).
  • ๐Ÿ“ฑ Updates MIUI: On some devices (for example, Redmi Note 10 Pro or POCO F3) OTA-Updates cease to come after root rights are obtained due to system partition changes.
  • ๐Ÿ›ก๏ธ Security: Root access opens up potential vulnerabilities for malware, especially if you have installed modules from unreliable sources.
  • ๐Ÿ’ฐ Device Sale: Buyers often check the smartphone for rooting, and its presence can lower the cost or cause distrust.

Interesting fact: even after rooting some apps (like Netflix or Netflix) Pokรฉmon GO) They can continue to block access if there are traces of modifications in the system, in which case a complete flashing is required, cleaning all partitions, including data and vendor.

โš ๏ธ Note: If you have rooted through Magisk and installed modules that modify system files (e.g., Xposed or X-rated). ViPER4Android), Just removing Magisk won't bring the device back to its original state. You'll need to manually clean or flash it.

Method 1: Root removal via Magisk Manager (the easiest way)

If you were rooting with Magisk (which is true for 90% of Xiaomi users in 2023-2026), the fastest way to disable them is to use the built-in Uninstall feature in the Magisk Manager app.

  • ๐Ÿ“ฑ The bootloader is unlocked but not locked back
  • ๐Ÿ”„ No critical modifications to system partitions (e.g., remote system applications)
  • ๐Ÿ“ Stock firmware is used. MIUI (or near-custom)

Step-by-step:

  1. Open the Magisk Manager app (if not, download the latest version from the official GitHub).
  2. Go to the Settings section (cog in the upper right corner).
  3. Scroll down and select Delete (Uninstall) โ†’ Complete removal (Complete Uninstall).
  4. Confirm the action and wait for the device to restart.
  5. After the reboot, check root status using the Root Checker app or command in the terminal: su If the command returns the permission denied error, root is successfully deleted.

This method saves user data but does not guarantee the passage of SafetyNet. If banking applications still do not work, additional cleaning through Fastboot will be required (see Method 3).

Make a backup copy of the data (photos, contacts, SMS)

Check the battery (minimum 50%)

Remove all Magisk modules in the "Modules" section

Disable Xposed Framework (if installed)

Download the latest version of Magisk Manager-->

โš ๏ธ Note: On some devices (e.g. Xiaomi) 12T or POCO X5 Pro) after deleting Magisk, access to encrypted storage may be lost /data. If this happens, reset through Settings. โ†’ Additionally. โ†’ Recovery and discharge.

Method 2: Recoil through TWRP (for power users)

If you have installed root through custom restoration TWRP, Then, it will be necessary to return the stock to remove it. boot.img It's a more complex method, but it allows you to save some of the data with the right approach.

Important: Before you start, make sure you have:

  • ๐Ÿ”— Backup copy of the data section (can be made in the data section itself) TWRP)
  • ๐Ÿ“ Stock firmware for your model (download from Xiaomi Firmware Updater)
  • ๐Ÿ”ง Working ADB and Fastboot on PC

Instructions:

  1. Boot to TWRP (hold Power + Volume up when turned on).
  2. Go to the Install section and select the stock file boot.img firmware.
  3. Switch boot without the checkmark Reboot after installation.
  4. Back to the main menu TWRP and choose Wipe โ†’ Format Data (this will delete all user data!).
  5. Reboot to the system. If the device does not boot, repeat the process with a complete flashing through Fastboot.

On devices with Dynamic Partitions (e.g. Xiaomi) 13 or Redmi K60) instead boot.img may need to be sewn init_boot.img. Check this out for your model on the forum. XDA Developers.

What if TWRP doesnโ€™t see internal memory?
If after formatting the data section TWRP stopped seeing internal storage, connect the device to the PC USB mode MTP copy the necessary files (firmware, Magisk) to the external SD-map OTG-Then the flash drive. TWRP Select "Select Storage" and select an external drive.

Xiaomi modelRequired file for rollbackFeatures
Redmi Note 11/12boot.imgYou may need to turn it off. AVB 2.0 TWRP
POCO F4/F5init_boot.imgBe sure to check the firmware version (Global/EU/China)
Xiaomi 12/13 seriesboot + dtboIt is recommended to use the Mi Flash Tool for full flashing.
Redmi K50/K60vendor_boot.imgFrequent Anti-Rollback issues โ€“ check the version before firmware

Method 3: Complete Fastboot Flashing (Guaranteed Results)

The most reliable way to get the device back to stock is to flash the official firmware through Fastboot mode.

  • โœ… Remove all traces of root and modifications
  • โœ… Restores the stock loader
  • โœ… SafetyNet is checked (if the bootloader is locked back)
  • โŒ Deletes all user data (photos, apps, settings)

The work will require:

  • ๐Ÿ’ป Computer with Windows/Linux and installed Xiaomi drivers
  • ๐Ÿ”Œ Cable USB (preferably original)
  • ๐Ÿ“ Fastboot firmware for your model (download from the official website)
  • ๐Ÿ› ๏ธ Mi Flash Tool (Last version)

Step-by-step:

  1. Unpack the downloaded firmware into a folder without Cyrillic characters (for example, C:\Xiaomi\fastboot_rom).
  2. Turn off the phone and press Power + Volume down to log into the Fastboot.
  3. Connect the device to your PC and start the Mi Flash Tool.
  4. In the program, click Select and specify the path to the folder with the firmware.
  5. Choose Clean All (Full Cleaning) or Clean All and Lock (Cleaning + Lock bootloader) mode.
  6. Press Flash and wait until it is completed (usually 5-10 minutes).
  7. After successful firmware, the device will automatically restart to the stock MIUI.

Critical: If your device has anti-Rollback protection (e.g., Redmi Note 8 Pro or POCO X3 NFC), Just stitch the version MIUI You're not lower than the one you're currently setting, or you're at risk of getting a brick with the error "Anti Rollback Check Fail".

Magisk Manager (simple and fast)

Through TWRP (preservation)

Full Fastboot Firmware (Guaranteed Results)

I haven't decided yet.-->

How to Check if Root is Completely Removed

Even after the instructions are successfully executed, some applications can continue to identify the device as rooted.

  1. Root Checker: Install an app from Google Play (like Root Checker Basic) and run the check. If you see a message Root access is not properly installed, root is removed.
  2. SafetyNet: Use SafetyNet Test or enter: su -c "getprop ro.boot.verifiedbootstate"Admissible values: green (passed) or orange (not passed).
  3. Loader check: Enter in the terminal: fastboot oem device-info Device unlocked: false means that the bootloader is locked.
  4. Banking App Test: Try installing and running Sberbank Online or Google Pay, and if they work without errors, it's okay.

If SafetyNet fails (ctsProfile: false), try:

  • ๐Ÿ”„ Check the clean all and lock box in the Mi Flash Tool.
  • ๐Ÿ”ง Install MagiskHide Props Config (if you use Magisk).
  • ๐Ÿ“ฑ Reset the settings to factory through Settings โ†’ Recovery and discharge.

๐Ÿ’ก

If the root device fails to pass SafetyNet, but you need to use banking applications urgently, a temporary solution may be to install Magisk Delta with MagiskHide enabled and Universal SafetyNet Fix module.

Frequent mistakes and their solutions

When you remove root on Xiaomi, users often face typical problems, and we have collected the most common ones and ways to solve them:

Mistake.Reason.Decision
Fastboot flash not allowed in locked stateThe bootloader is locked, but you are trying to flash the custom boot.imgUnlock the bootloader through the Mi Unlock Tool or flash the official lock firmware
Anti Rollback Check FailTrying to re-shoot an older version MIUI, more currentSweep through the firmware of the same or newer version. Check the Anti-Rollback list for your model.
The device does not turn on after firmwareIncompatible firmware or interrupted processRepeat the firmware through Fastboot with a clean all choice. If it doesn't work, use it. EDL-Regime (Authorized Account Required)
Invalid sparse file format at headerA damaged firmware file or an incorrect version of the Mi Flash ToolDownload the firmware again, use the latest version of Mi Flash (2023.4.1 or later)
After root removal, system applications (for example, Magisk Manager) remain.Incomplete cleaning of the data sectionPerform reset through Settings โ†’ Recovery and discharge โ†’ Resetting settings

If your device gets into a bootloop after root manipulation, try:

  1. Download to Fastboot and flash stock boot.img: fastboot flash boot boot.img fastboot reboot
  2. If it doesnโ€™t work, run the full firmware through the Mi Flash Tool.
  3. Anti-Rollback devices (such as the Redmi Note 9 Pro) may require firmware through the EDL using QFil or Mi Flash Pro.

๐Ÿ’ก

If after all the manipulations the device does not turn on or gives errors when booting, do not try to flash it again without diagnosis. Contact the service center indicating that you tried to return the stock firmware - this will increase the chances of warranty repair (if the bootloader was blocked back).

Data recovery after root removal

One of the biggest fears of root removal is data loss, and fortunately, most of the information can be recovered if you're prepared in advance.

  • ๐Ÿ“ฑ Contact and SMS: If they were synced to a Google or Mi Account, they will be restored automatically after logging in.
  • ๐Ÿ“ท Photo and video: If you backed up through Google Photos or Mi Cloud, you can download back files. Use DiskDigger or Recuva for local recovery (if the data partition has not been formatted).
  • ๐ŸŽฎ Apps and Games: The list of installed apps will be restored from Google Play, and game saves will be restored if they were linked to an account (for example, through Google Play Games).
  • ๐Ÿ“ Notes and documents: If you used Mi Notes or Google Keep, the data is synced automatically.

To recover data from a formatted data partition (if there was no backup):

  1. Install Dr.Fone or EaseUS MobiSaver on PC.
  2. Connect the device in mode MTP (post-fix).
  3. Select the type of files to scan (photos, messages, etc.).
  4. Wait for the analysis to be completed and save the files found on the PC.

Importantly, the less you use your device after formatting, the better the chances of recovering data, and each new record to the disk reduces the likelihood of successful recovery.

How to recover data if the device is not turned on?
If the smartphone does not load even in Fastboot, but is defined by the computer as Qualcomm HS-USB QDLoader 9008 can be used to extract data from the EDL-tool-play UFED But it requires special equipment and skills, so you better go to the service center.

FAQ: Answers to Frequent Questions

Can I turn off root on Xiaomi without losing data?
Yes, but only if you've used Magisk and you haven't modified the system partitions, in which case you just need to delete Magisk through Magisk Manager (Settings section). โ†’ Delete. If you have changed system files (delete applications, edit build.prop), then completely remove root will require a data reset.
What if the banking applications do not work after root removal?
This means that the device does not pass SafetyNet. Try: Swipe the device through Fastboot with a clean all and lock tick; Install Universal SafetyNet Fix in Magisk (if you haven't blocked the bootloader); Use alternative versions of applications (e.g., SberBank Online for unrooted devices from APKMirror); If nothing helps, contact the bank to ask for your device to be added to the whitelist (some banks are going to meet customers).
How do I know if the bootloader is blocked after root removal?
There are two ways: Turn on the device and go to Settings. โ†’ The phone. โ†’ Version. MIUI. Press 7 times on the version MIUI, Then go back and select additional โ†’ For developers, see the status of the bootloader. Connect the device to the PC, go to Fastboot and type in the command: fastboot oem device-info Search for Device unlocked: false.
Can I get a root on Xiaomi after itโ€™s removed?
Yes, but there are nuances: If you lock the bootloader after removing root, it will need to be unlocked again (waiting 7-14 days for new Mi accounts). On some devices (for example, Xiaomi 13 Ultra) after blocking the bootloader, Anti-Rollback can work, which will make it difficult to re-get root. If you have flashed the device through the Mi Flash Tool with a clean all and lock tick, the root process will be identical to the original. We recommend that you make a full backup before rerooting, since the process of unlocking the bootloader resets the device.
Which Xiaomi models are the hardest to โ€œruinโ€?
The greatest difficulties arise with devices that have: ๐Ÿ”’ Hard-to-reference anti-Rollback (e.g. Redmi Note) 8 Pro, POCO X3 NFC). ๐Ÿ“ฑ Dynamic Partitions (e.g. Xiaomi) 12/13 series, Redmi K50), stitch init_boot boot. ๐Ÿ”ง Blocked bootloader Unlocking (Some Devices for the Chinese Market). ๐Ÿ“Ÿ Outdated closed-source models (e.g. Redmi) 4X or Mi A1). For such devices, we recommend using the method 3 (Full Fastboot Firmware Reflashing and Check the Firmware Version for Compatibility with Anti-Rollback.