How to Remove Magisk on Xiaomi: 5 Verified Ways (2026)

Removing Magisk from Xiaomi devices is a challenge that users face after obtaining root rights, installing custom firmware, or preparing for official updates. While Magisk provides advanced features for system modification, it can cause problems, from blocking banking applications to inability to install. OTA-Moreover, incorrect deletion can lead to data loss or device "brick" due to conflict of modules.

In this article, we will discuss all the current ways to remove Magisk on Xiaomi, Redmi and POCO smartphones, from a standard uninstaller to manual removal via fastboot. We will focus on the nuances for devices with a locked bootloader, and also tell you how to check the success of the procedure. If you plan to sell the phone, return it to the service center or just want to return the stock firmware, this guide is for you.

Why you should remove Magisk from Xiaomi

Even if you no longer use Magisk features, its presence on the system can create hidden problems:

  • 🚫 Blocking banking applications: SberBank Online, Tinkoff and other applications with SafetyNet refuse to work on devices with root rights.
  • πŸ”„ Problems with OTA-Xiaomi blocks installation of official updates on modified devices.
  • πŸ›‘οΈ Security breach: Root access opens up potential vulnerabilities for malware.
  • πŸ“¦ Custom firmware conflicts: When switching to another firmware (e.g. Pixel Experience), Magisk residues can cause errors.
  • πŸ”§ Service center: In warranty repair, the presence of root rights can be the reason for refusal.

Additionally, some games (like PUBG Mobile or Genshin Impact) block startup on devices with detected Magisk, even if you don't use cheats.This is due to anti-hacking mechanisms that scan the system for root access.

πŸ“Š Why you should remove Magisk from Xiaomi?
Preparation for the sale of the telephone
You need to install a banking application
Problems with updates
Firmware conflicts
Other

Preparing for Magisk removal: what to do in advance

Before you start removing, follow a few critical steps:

  1. Backup data. Deleting Magisk can result in resets or file loss, especially if you use flashback techniques.We recommend copying photos, contacts and apps to your PC or to the cloud (Mi Cloud, Google Drive).
  2. Check bootloader status. Go to Settings β†’ About Phone β†’ MIUI version and tap 7 times on the build number to activate Developer Mode. Then go to Settings β†’ Additional β†’ Developer For Developers and find bootloader Status. If it's unlocked, you have more options to uninstall.
  3. Make sure you have the original firmware. If you have installed custom firmware (like LineageOS), return to stock MIUI before removing Magisk.
  4. The charge level must be at least 50% to avoid a sudden shutdown during the procedure.

If you delete Magisk due to problems with banking applications, please note that even after uninstallation, some applications may continue to block access, in which case additional cleaning of root access traces will be required (we will discuss this in a separate section).

β˜‘οΈ Checklist before deleting Magisk

Done: 0 / 5

Method 1: Remove Magisk through the built-in uninstaller (the safest)

If you have access to the Magisk Manager app, it is the easiest and most secure method, and it is suitable for most Xiaomi, Redmi, and POCO devices with an unlocked bootloader.

  1. Open the Magisk Manager app (if not, download the latest version from the official GitHub).
  2. Go to the Modules tab and remove all installed modules (if any).
  3. Return to the home screen and click Delete Magisk (or Uninstall in English).
  4. Select Complete Uninstall and confirm the action.
  5. After the reboot, check the root rights status using the Root Checker app.

If Magisk is still determined after the reboot, try repeating the procedure or using the alternative methods described below.

πŸ’‘

If Magisk Manager does not open due to an error, try renaming it. APK-file manager.apk And install it again through adb install.

Method 2: Remove via TWRP (for users with custom recaps)

If your Xiaomi has TWRP installed, you can remove Magisk through it.This method is suitable for devices with an unlocked bootloader and works even if Magisk Manager does not start.

  1. Download the latest Magisk-uninstaller.zip from the official repository.
  2. Reboot the phone to TWRP mode (press Power + Volume up when turned on).
  3. In TWRP, select Install and specify the path to the downloaded file Magisk-uninstaller.zip.
  4. Swipe to confirm the installation (actually, it is uninstallation).
  5. After completion, press Reboot System.

If Magisk is still detected after the reboot, it may be that there are modules or modified files left in the system, in which case a complete firmware reflash (method 4) will help.

Deleting methodAn unlocked loader is requiredData retainedDifficulty
Through Magisk Managerβœ… Yes.βœ… Yes.⭐⭐ (simple)
Through TWRPβœ… Yes.βœ… Yes.⭐⭐⭐ (middle-of-the-road)
Through ADBβœ… Yes.βœ… Yes.⭐⭐⭐⭐ (difficult)
Complete flashing.βœ… Yes.❌ No, I need a backup)⭐⭐⭐⭐⭐ (difficult)
Through the patch of the boot imageβœ… Yes.βœ… Yes.⭐⭐⭐⭐ (difficult)

Method 3: Remove Magisk via ADB (for power users)

If Magisk Manager doesn’t work and TWRP doesn’t, you can try removing Magisk via ADB. This method requires connecting the phone to a PC and basic command line knowledge.

  1. Install ADB and Fastboot on your computer.
  2. Enable USB debugging in the developer settings on your phone.
  3. Connect the phone to your PC and execute the command: adb shell su rm -rf /data/adb/magisk rm -rf /data/adb/post-fs-data.d rm -rf /data/adb/service.d rm -rf /cache/magisk.log rm -rf /cache/magisk
  4. Reboot the device: reboot

This method removes the main Magisk files, but does not guarantee complete cleanup.

adb shell getprop | grep magisk

If the output is empty, Magisk is successfully removed.

What if the ADB can’t see the device?
Make sure USB debugging is enabled and drivers are installed. Try changing the cable or USB port. Some Xiaomis require additional debugging permission in the pop-up window on the phone.

Method 4: Complete flashing through Mi Flash (radical method)

If none of the previous methods worked, you'll have to completely reflash through the Mi Flash Tool, which removes Magisk completely, but erases all the data from the device. Use it only as a last resort.

  1. Download the official firmware for your Xiaomi model (choose the Fastboot version).
  2. Unpack the firmware archive into a folder without spaces (e.g., C:\MIUI\).
  3. Install the Mi Flash Tool on your PC.
  4. Transfer the phone to Fastboot mode (clip Power + Volume down when turned on).
  5. Connect your phone to your PC and in the Mi Flash Tool, point the way to the unpacked firmware.
  6. Select the Clean All option and press Flash.

It takes 5-10 minutes. Once completed, the phone will reboot to a clean system without any trace of Magisk. Attention: this method also resets FRP (Reset Protection), so you may need to re-authorize your Mi Account after you have firmware.

πŸ’‘

Full flashing through Mi Flash is the only way to guarantee that you can remove Magisk if other methods don’t work, but it erases all data, so only use it after you’ve created a backup.

How to Check if Magisk is Completely Removed

After removing Magisk, you need to make sure that there are no traces of root access left in the system.

  • πŸ” Root Checker: Install the app from Google Play and run the check. If there is no root permission, you will see the message Root access is not properly installed.
  • πŸ›‘οΈ SafetyNet: Use the SafetyNet Test application (e.g., SafetyNet Test, YASNAC). If both ctsProfile and basicIntegrity are completed, Magisk is successfully deleted.
  • πŸ“± Banking applications: Try installing and running Sberbank Online or Tinkoff, and if they work without errors, there is no problem.
  • πŸ”§ Terminal: Enter the su command in Termux or through ADB. If a permission denied error occurs, the root access is disabled.

If some tests fail, the system has modified files, in which case only complete flashing (method 4) will help.

πŸ’‘

If SafetyNet doesn’t pass because of an unlocked bootloader, try hiding this fact with the MagiskHide Props Config module (before removing Magisk) or use the official method of locking the bootloader through the Mi Unlock Tool.

Frequent Mistakes and How to Avoid Them

When you delete Magisk, users often face typical problems, and here are the most common ones and how to solve them:

⚠️ Warning: If after removing Magisk, the phone stopped loading (hang on the logo) MI), This means that the system has modified files that conflict with the stock firmware, and in this case, only the flashing through Fastboot will help.

  • πŸ”„ "Bootloop after deletion: Occurs if Magisk has been integrated into boot.img. The solution is to stitch the original boot.img via fastboot flash boot boot.img.
  • πŸ“΅ Magisk Manager won't open: Download the latest version from GitHub and install it manually. If the app closes immediately, delete Magisk via GitHub. TWRP or ADB.
  • πŸ”Œ ADB Does not see the device: Check the drivers, enable debugging by USB And try another cable. Some Xiaomis require you to allow debugging in the pop-up window.
  • πŸ”’ bootloader locked: If you haven't unlocked the bootloader before, most Magisk removal methods will not be available. In this case, only complete flashing through Mi Flash remains.

If you delete Magisk before selling your phone, please note that some customers check the device for root rights. To avoid claims, complete a full reset after removal (Settings β†’ Reset).

Answers to frequent questions

Can I remove Magisk without unlocking the bootloader?
No, if the bootloader is locked, you can't use TWRP or Fastboot to remove it. The only option is to try the uninstaller through Magisk Manager if it's still working. Otherwise, you'll need to unlock the bootloader through the Mi Unlock Tool (this erases all data!).
After removing Magisk, the banking apps still don't work. What do we do?
The problem may be with the unlocked bootloader or the remaining modified files. Try: Install the MagiskHide Props Config module (if Magisk is not yet removed) and hide root access for specific applications. Complete a full reset (Settings β†’ Resettings). Flash your phone through the Mi Flash Tool with the Clean all option. If nothing helps, contact the bank support - some applications block devices with the unlocked bootloader regardless of the availability of root rights.
Will Magisk remove factory reset?
No, a regular reset via Settings β†’ Settings reset does not remove Magisk, as it is built into boot.img or installed in the system partition. Use the methods described in this article to completely remove.
Can I return Magisk after removal?
Yes, you can re-install Magisk at any time if the bootloader is unlocked. Magisk.zip It's from GitHub. TWRP patch boot.img Reboot the device, note that re-installing Magisk may cause problems with banking applications and OTA-update.
Will Google Pay work after Magisk is removed?
Yes, but only if: Magisk is completely removed (including modules). SafetyNet is checked (ctsProfile = true). bootloader is locked (on some Xiaomi devices, the unlocked bootloader automatically makes ctsProfile = false). If Google Pay still doesn't work, try clearing the data from the Google Play Services app and restarting the phone.