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.
Preparing for Magisk removal: what to do in advance
Before you start removing, follow a few critical steps:
- 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).
- 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.
- Make sure you have the original firmware. If you have installed custom firmware (like LineageOS), return to stock MIUI before removing Magisk.
- 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
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.
- Open the Magisk Manager app (if not, download the latest version from the official GitHub).
- Go to the Modules tab and remove all installed modules (if any).
- Return to the home screen and click Delete Magisk (or Uninstall in English).
- Select Complete Uninstall and confirm the action.
- 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.
- Download the latest Magisk-uninstaller.zip from the official repository.
- Reboot the phone to TWRP mode (press Power + Volume up when turned on).
- In TWRP, select Install and specify the path to the downloaded file Magisk-uninstaller.zip.
- Swipe to confirm the installation (actually, it is uninstallation).
- 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 method | An unlocked loader is required | Data retained | Difficulty |
|---|---|---|---|
| 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.
- Install ADB and Fastboot on your computer.
- Enable USB debugging in the developer settings on your phone.
- 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
- Reboot the device: reboot
This method removes the main Magisk files, but does not guarantee complete cleanup.
adb shell getprop | grep magiskIf the output is empty, Magisk is successfully removed.
What if the ADB canβt see the device?
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.
- Download the official firmware for your Xiaomi model (choose the Fastboot version).
- Unpack the firmware archive into a folder without spaces (e.g., C:\MIUI\).
- Install the Mi Flash Tool on your PC.
- Transfer the phone to Fastboot mode (clip Power + Volume down when turned on).
- Connect your phone to your PC and in the Mi Flash Tool, point the way to the unpacked firmware.
- 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).