How to remove root rights from Xiaomi phone: 5 working ways

Getting root rights on Xiaomi smartphones gives you access to advanced system settings, but often leads to problems: denial of warranty service, blocking of banking applications, unstable firmware. If you are faced with the need to return the device to its original state - for example, before selling, contacting a service center or after unsuccessful experiments with custom firmware - this guide will help completely remove root rights without the risk of "filling" the phone.

Unlike standard guides, here we will look not only at universal methods (via Magisk or SuperSU), but also specific solutions for Xiaomi, taking into account the features of the company. MIUI. Special attention is paid to the restoration of the status OFFICIAL Fastboot, which is critical for testing in service centers, all tested on Redmi Note models. 10/11/12, POCO F3/F4, Xiaomi 12/13 s MIUI 14-15.

Why you should remove root rights on Xiaomi

Even if you no longer plan to use the extended rights, their presence poses hidden risks:

  • πŸ”΄ Blocking banking applications: Sberbank Online, Tinkoff, Google Pay and other services detect root through SafetyNet and refuse to work, even if you use masking through MagiskHide.
  • πŸ”΄ Problems with OTA-updates: System MIUI may refuse to install official updates, citing "uncertified software" and this applies to critical security patches.
  • πŸ”΄ Denial of warranty repair: Xiaomi service centers check bootloader status via EDL-Even if you reset the settings, traces of the root will remain in the miscta section.
  • πŸ”΄ System instability: Conflicts between Magisk modules and regular services MIUI (Mi Cloud or Game Turbo can cause random reboots.

Also, some Xiaomi features (e.g. Mi Share or Mi Share) AI Call Assistant may not work properly on rooted devices, and if you notice that the phone is running out faster or warming up for no apparent reason, that could be due to active root modules.

πŸ“Š Why You Are Removing Root Rights?
Preparation for sale
Restoration of the guarantee
Solving application problems
Accidentally got root.
Other

Preparing for root removal: what to do before you start

Before you start the procedure, follow the mandatory steps to avoid data loss or turning your phone into a brick:

β˜‘οΈ Checklist before root removal

Done: 0 / 5

Pay special attention to backup, not using cloud services (they can block downloads from a rooted device), but local methods:

  • πŸ“± Contact and SMS: Export through the Contacts app β†’ Import/export to.vcf file.
  • πŸ“· Photo and video: Copy folders DCIM and Pictures on PC or external drive.
  • πŸ”‘ Passwords and tokens: If you used Magisk to bypass SafetyNet, record account data (for example, for Netflix or banking apps).

Also check if you have bootloader unlocked. If not, some root removal methods won't work.

fastboot oem device-info

If it's false, you'll have to unlock the bootloader first through the Mi Unlock Tool (this will take you to do it). 7-14 Waiting days for permissions from Xiaomi).

⚠️ Note: If you delete root before selling your phone, note that the new owner will be able to recover your data through specialized software (such as Dr.Fone) if you simply reset through Settings.

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

If you got root rights through Magisk (the most popular method for Xiaomi), then the easiest way to remove them is the same way, which is suitable for 90% of users and does not require a connection to a PC.

Instructions:

  1. Open the Magisk Manager app (if not, download the latest version from the official GitHub).
  2. Go to the Modules section and disable all active modules (click on the cart next to each).
  3. Return to the home screen and tap the Remove Magisk button (or Uninstall in English).
  4. Select Complete Uninstall and confirm the action.
  5. After the reboot, check the root status through the Root Checker app or the command in the terminal: su If a Permission denied message appears, root is deleted successfully.

However, this method does not restore the original firmware. If you have modified system files (for example, deleted embedded applications). MIUI), For complete cleaning, go to Method 4.

πŸ’‘

If after removing Magisk, banking applications still do not work, clear the data of Google Play services (Settings) β†’ Annexes β†’ Google Play Services β†’ Warehouse β†’ Clear the data) and restart the phone.

Method 2: Remove via SuperSU (for older versions) MIUI)

If you have used SuperSU (relevant to devices on the MIUI 8-10), It's a little bit different, and it's less reliable, because SuperSU doesn't always completely clean out traces from the system.

Steps:

  1. Open the SuperSU app.
  2. Go to the Settings section (cog in the upper right corner).
  3. Scroll down and select Full root removal (Full unroot).
  4. Confirm the action and wait for the reboot.
  5. After turning on the phone, delete the SuperSU app itself via Settings. β†’ Annexes.

The problem with this method is that it does not restore the original. boot.img. If you plan to carry the phone to the service, additionally run the stock boot through fastboot (instructions in the Method) 4).

Deleting methodSuitable forDoes SafetyNet Restore?PC required
Magisk (complete removal)MIUI 11-15, Magisk 20.0+Yeah (after rebooting)No.
SuperSUMIUI 8-10, SuperSU 2.82No (more cleaning needed)No.
Hand-held firmware boot.imgAll versions of MIUIYes.Yes.
Fastboot firmware stock ROMAll Xiaomi modelsYeah (full clean-up)Yes.

Method 3: Recovery through TWRP (power-user)

If you have a custom recavator installed TWRP, You can remove root and return stock. boot.img This is a good method if you want to save user data.

Step-by-step:

  1. Download the original boot.img for your version MIUI From the Xiaomi Firmware Updater.
  2. Reset the phone to mode TWRP (clamp down on power. + Volume up when the phone is off).
  3. V TWRP Choose Install β†’ find the downloaded boot.img and swipe for confirmation.
  4. After the firmware, go back to the main menu and select Reboot. β†’ System.
  5. Delete the folder. /magisk in the root directory through any root-access file manager (e.g., Root Explorer).

If after this procedure the phone is fixated on the logo MI, So the version boot.img It doesn't match the firmware installed. In this case, you'll have to run the full firmware through fastboot.

⚠️ Attention: Some versions TWRP Xiaomi has encryption bugs /data. If after the firmware boot.img phone requires password, but does not accept it – reset through TWRP (Wipe β†’ Format Data, but it will delete all user data.

Method 4: Complete Firmware Stock ROM Fastboot (100% cleanup)

This is the most radical, but also the most reliable method that will return the phone to the "out of the box" state.

  • πŸ”„ Planning to give up your phone under warranty.
  • πŸ› οΈ Facing serious failures after root removal in other ways.
  • πŸ“¦ Want to sell your device and completely clear your data.

You'll need:

  • Computer with installed Xiaomi drivers (you can download through the Mi Flash Tool).
  • The original Fastboot firmware ROM For your model (download only from the official website).
  • The Mi Flash Tool (last version)

Instructions:

  1. Unpack the downloaded.tgz file with firmware in a folder without Cyrillic characters (for example, C:\Xiaomi\ROM).
  2. Turn off the phone and press Power + Volume down to log into the Fastboot.
  3. Connect your phone to your PC through USB-cable (use the original Xiaomi cable for a stable connection).
  4. Open the Mi Flash Tool, press Select and point the path to the firmware folder.
  5. At the bottom of the program, select Clean All mode (this will completely clean the phone, including: /data).
  6. Press Flash and wait for the process to complete (usually takes a lot of time). 5-10 minute).

After the firmware through fastboot, the bootloader status will remain unlocked (UNLOCKED). To regain status LOCKED, Re-blocking via Mi Unlock Tool will be required, but this will result in a reset of all data.

πŸ’‘

Use clean all mode rather than clean all and lock.The latter can result in your phone being locked if the bootloader has been unblocked unofficially.

Method 5: Remove root through ADB (alternative)

If you do not have access to Magisk or TWRP, but it's debugging. USB, You can try to remove root through ADB. This method is less reliable, but sometimes helps in emergency situations.

Steps:

  1. Connect your phone to your PC and allow debugging over USB (Settings β†’ About Phone β†’ MIUI Version (shoot 7 times) β†’ Additional β†’ For developers β†’ USB debugging).
  2. Open the command line in the folder with ADB (You can download from Android SDK) and perform: adb shell su -c "magisk --remove-modules" su -c "magisk --uninstall"
  3. If the commands don’t work, try to delete files manually: adb shell su rm -rf /data/adb/magisk* rm -rf /cache/magisk* rm -rf /cache/magisk
  4. Reboot your phone with the adb reboot command.

This method does not guarantee complete root removal, especially if you have modified the root. boot.img. To check, use the Root Checker app or the adb shell su command – if a password invitation appears, root is not completely deleted.

How to Check if Root is Completely Deleted

It's not enough to just remove Magisk or SuperSU, you have to make sure that the system no longer has root signs.

  1. Checking through the terminal: adb shell su If the message Permission denied or su: not found - root is deleted.
  2. SafetyNet Check: Install SafetyNet Test (e.g. SafetyNet Helper Sample) if ctsProfile: True status, banking applications will work.
  3. Check bootloader: Enter fastboot: fastboot getvar all Look for the lines unlocked: yes (bootloader unlocked) and orange-state: unlocked (if any - the phone has been rooted).
  4. System Files Verification: Through the file manager, check if folders exist: /magisk /sbin/su /system/bin/su

Their absence confirms the removal of root.

If banking apps still don’t work, even after successfully removing root, try:

  • Clear the data of Google Play Services and Google Play Store.
  • Install Universal SafetyNet Fix in Magisk (if root is still active).
  • Reset your phone to factory settings (Settings β†’ Additional β†’ Recovery and Reset).

Frequent mistakes and their solutions

When removing root on Xiaomi, users often face typical problems.

Mistake.Reason.Decision
The phone is stuck on the logo MI rootingIncompatible version boot.img or damaged system filesSwipe through the full Fastboot ROM (Method 4)
Magisk is not deleted ("Deletion failed")Damaged files in the section /data/adbDelete the folder. /data/adb/magisk manually TWRP or ADB
After Fastboot firmware ROM phone outMi Flash Tool mode is not selected correctly (e.g. clean all and lock on unlocked bootloader)Repeat the firmware in clean all mode without blocking
Banking applications don’t work even after root removalThere are traces of modifications in /system or not reset by SafetyNetPlease Fastboot. ROM Use the Universal SafetyNet Fix module

If you encounter an error not described in the table, check the logs through ADB:

adb logcat | grep -i "error"

This will help identify the problem, such as the E:unknown command error. [log] indicates a damaged recovery partition, and E:footer is wrong indicates an incorrect firmware file.

What if the Mi Flash Tool can't see the phone?
1. Install drivers manually through Device Manager (select "Xiaomi Composite" MDB Interface. 2. Try another one. USB-cable (preferably original from Xiaomi). 3. Run the Mi Flash Tool on behalf of the administrator. 4. Enable Developer Mode and allow Unlock OEM" (Settings β†’ For developers β†’ Unlocking OEM). 5. If you are using Windows 11, disable driver signature verification (via download options, F7).

FAQ: Answers to Frequent Questions

Can root be deleted without data loss?
Yes, but only if you use Magisk (the method of using it) 1) or TWRP (Method 3). In these cases, user data (/data) It is not affected. 100% cleaning (e.g. before sale) is recommended to completely reset.
Why did the root phone slow down after the root was removed?
This is because some optimizations are MIUI (for example, MIUI Optimization) could be disabled via Magisk. Return performance will help: Cache reset (Settings) β†’ Warehouse β†’ Clear cache. Remove remaining Magisk modules (check folder) /data/adb/modules). Firmware for the full Fastboot ROM (Method 4).
How to remove root if the phone is not turned on (bootloop)
If the phone is looping on the boot: Try logging into the Fastboot (Power) + Volume down) and stitch the stock boot.img: fastboot flash boot boot.img Fastboot reboot If it doesn’t work, run the full Fastboot ROM (Method 4). For models with a locked bootloader (e.g. Redmi Note) 9 Pro will be required EDL-Mode and Authorized Xiaomi Account.
Will the warranty be restored after root removal?
Even after the root is completely removed, the service center can check the status of the bootloader through internal Xiaomi tools (for example, the Mi Service Tool). Some service centers, for an additional fee, "close their eyes" to an unlocked bootloader. For models bought in Russia, the chances are higher - local SCs are less strict than in Europe or China. To increase the chances, before visiting the SC: ROM Make sure that fastboot getvar all doesn't have orange-state: unlocked. TWRP (Wipe β†’ Format Data).
Can I remove root on Xiaomi without a computer?
Yes, but with reservations: If the root was obtained through Magisk, use the method 1 (removal through the application itself. If you have installed TWRP β€” follow the Way 3 (stock-fixing boot.img). However, for complete cleaning (for example, before selling) without a PC can not do – you will need firmware through fastboot.