Disabling root access on Xiaomi Mi 9 SE: 3 proven methods

Xiaomi Mi 9 SE With an unlocked bootloader and root rights, the user has unlimited customization options, but often the need to return the device to a factory state. OTA-But simply removing Magisk or rolling back the firmware is not enough β€” residual root access traces can cause system failures.

In this article, we will discuss three officially supported methods for completely disabling root on Mi 9 SE (codename grus), including the nuances of working with TWRP, Fastboot and Xiaomi standard tools. We will focus on typical errors, such as bootloop after incorrect removal of Magisk, and how to fix them. All instructions are relevant for firmware based on MIUI 12-14 and Android 10-12.

Why can’t you just delete Magisk through your settings?

Many users mistakenly believe that just clicking β€œUninstall” on the Magisk Manager menu will disappear, and in practice this only works partially:

  • πŸ”Ή Modified files remain in the section /system, blockage OTA-update.
  • πŸ”Ή V boot.img patches are saved that anticheats (for example, in games) recognize as root.
  • πŸ”Ή SafetyNet and Play Integrity API Errors continue to be issued even if MagiskHide is activated.
  • πŸ”Ή When selling a phone, the new owner may face problems when trying to block the bootloader.

Moreover, on the Mi 9 SE with Unlocked Bootloader, even after removing Magisk, it remains possible to re-enter the root rights without further manipulation, posing security risks if the device falls into the wrong hands.

πŸ“Š Why do you want to remove root on Mi 9? SE?
I'm getting ready to sell.
Need to. OTA-update
Games are not running (antichit)
Returning the guarantee
Other

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

If your Mi 9 SE is stable and Magisk is installed correctly, start with this method.It saves user data and minimizes the risks of bootloop.

β˜‘οΈ Preparing for the removal of Magisk

Done: 0 / 4

Steps to complete removal:

  1. Open Magisk Manager and go to Settings β†’ Uninstall.
  2. Select the option Complete Uninstall.This will remove Magisk and restore the original boot.img.
  3. After the reboot, check the root access status through the Root Checker app or the command in Terminal: su If the command returns Permission denied, the root is disabled.

⚠️ If after removing Magisk phone is stuck on the logo Xiaomi (bootloop), then modified boot.img The solution is to flash the original boot through Fastboot (see Method). 3).

πŸ’‘

Before removing Magisk, disable all modules in the Modules section – this will reduce the chance of conflicts when restoring boot.img.

Method 2: Recoil through TWRP (for power users)

If Magisk is not removed correctly or you want to return stock recovery, you will need TWRP. This method is suitable for firmware with modified recovery, but requires caution - errors can lead to data loss.

Download the official firmware for Mi 9 SE (grus code) from Xiaomi Firmware. It is important to choose the version that matches your current firmware (check in Settings β†’ About Phone β†’ MIUI version).

  • πŸ“₯ For MIUI 12-14 Fastboot firmware (.tgz file) is suitable).
  • πŸ“₯ For Android 10-12, check compatibility in the table below.
MIUI versionAndroidCompatibility with TWRPRecommended method
MIUI 12.0–12.5Android 10Yes (TWRP 3.5.2+)Firmware through TWRP
MIUI 13.0Android 11Partially (bootloop risk)Fastboot (Method 3)
MIUI 14.0Android 12No (patch required)Fastboot or EDL

Instructions for TWRP:

  1. Download the firmware and place it in the root of the phone’s memory (not in folders!).
  2. Boot to TWRP (hold Power + Volume up when turned on).
  3. Select Wipe β†’ Format Data (this will delete all data!), then go back to the main menu.
  4. Press Install, select a firmware file and confirm the installation.
  5. After you complete the search, swipe Magisk-uninstaller.zip (if any) and restart.

⚠️ Attention: MIUI 14 use of TWRP If you don't have a patch, you can encrypt your data and you can't download it, and if you're running your phone, you need a password, and you didn't set it, you'll need a full Fastboot reset.

Method 3: Complete Fastboot reset (guaranteed result)

This is the most reliable way to return the Mi 9 SE to the factory state, but it requires an unlocked bootloader and erases all data.

  • πŸ”§ Phone not loaded after Magisk is removed.
  • πŸ”§ You need to return the warranty (but remember: unlocked bootloader remains in the Xiaomi logs).
  • πŸ”§ SafetyNet continues to issue errors even after root rights are removed.

You will need to:

  • πŸ–₯️ Computer with installed ADB/Fastboot and Xiaomi drivers.
  • πŸ“ Official Fastboot Firmware for Grus (download from the official website).
  • πŸ”Œ Cable USB Type-C (preferably original).

Step-by-step:

  1. Unpack the firmware in a folder on your computer. flash_all.bat (for Windows or flash_all.sh (for Linux/Mac).
  2. Turn off the phone and press Power + Volume down to log into the Fastboot.
  3. Connect your phone to your PC and start it. flash_all.bat. The process will take 5–10 minute.
  4. Once complete, the phone will automatically restart. The first turn on can take up to 15 minutes.

Important: This method does not block the bootloader!To completely hide the traces of unlocking, you will need an official procedure through the Mi Unlock Tool, but it is only available for accounts with a phone link over 30 days.

What if Fastboot can’t see the phone?
Make sure the drivers are installed (check in Device Manager). USB-port (preferably) USB Run the command line on behalf of the administrator and type: fastboot devices If the list is empty, do: adb kill-server adb start-server Then repeat the command fastboot devices.

Check Out: How to Make Sure that Root is Completely Deleted

Even after successfully removing Magisk or running a firmware through Fastboot, residual traces can remain.

  1. Root Checker: Install the app from the Play Market and run the check. If Root access: Not available status is completed, the first step is passed.
  2. SafetyNet: Use the YASNAC app or type in Terminal: su -c "getprop ro.boot.verifiedbootstate" The correct answer is green (if orange - traces of the root are left).
  3. Play Integrity API: Take the test at playintegrityapi.com. The ctsProfileMatch setting must be true.
  4. Logs of the bootloader: On the Mi 9 SE, even after the reset, there is an unlock record in the logs. Check through ADB: adb shell getprop ro.boot.veritymode If the response is enforcing - the bootloader is blocked (but this does not guarantee the absence of traces of the root).

If at least one of the tests shows the presence of root rights, repeat the deletion procedure or use Method 3 (Fastboot).

πŸ’‘

The only way to completely hide the fact of unlocking the bootloader is to officially lock it through the Mi Unlock Tool. However, this is only possible if you meet the terms of Xiaomi (account binding, wait 30+ days).

Typical errors and their solutions

When disabling root on Mi 9 SE, users often face the following problems:

Mistake.Reason.Decision
Bootloop after removing MagiskIncompatibility of patched boot.img with current firmwareSweep the original boot.img through Fastboot: fastboot flash boot.img
Error E: Unknown command [log] in TWRPAn outdated version of TWRPUpdate TWRP to 3.6.0+ or use Fastboot
SafetyNet does not pass (ctsProfile: false)Residual modifications to /system or /vendorComplete reset via Fastboot (Method 3)
The phone does not turn on after the firmwareThe modem or dtbo partition is damagedSwipe the full Fastboot firmware with the flag --erase: fastboot flashall -w

If none of the methods worked, it is possible that the phone has custom firmware installed (for example, LineageOS or Pixel Experience). MIUI only through EDL-Mode (requires an authorized Xiaomi account and a special cable).

FAQ: Frequent questions about turning off root on Mi 9 SE

Can I turn off root without losing data?
Yes, but only if you use Method 1 (delete via Magisk) and the phone loads normally. Otherwise (TWRP, Fastboot) the data will be erased. We recommend backing up beforehand via Mi Cloud or Titanium Backup (if the root is still active).
Will it work? OTA-rooting?
If you have fully restored your firmware through Fastboot, OTA should work. However, if the bootloader is unlocked, Xiaomi can block updates. The solution is to temporarily block the bootloader (if possible) or install updates manually through TWRP.
How to check if the loader is blocked?
Turn off your phone and press Power + Volume down. If you see Phone Unlocked with an open lock, the bootloader is unlocked. If there is no label or a lock, it is locked. Note that even after locking, Xiaomi logs still have information about the previous unlock.
Can I get a warranty back after removing root?
No, not technically. Xiaomi records the bootloader unlocked in hardware logs (efuse), and even after returning to stock firmware, the service center may refuse warranty repairs. However, if the problem is not related to the software part (for example, a broken screen), the chances of repair under warranty remain.
What if the root has been removed and the banking applications have stopped working?
Banking applications (e.g., SberBank Online or Tinkoff) often block access on devices with an unlocked bootloader, even if the root is remote: πŸ”Ή Use MagiskHide Props Config to change your device’s fingerprint (fingerprint). πŸ”Ή Install Universal SafetyNet Fix (works even after Magisk is removed). πŸ”Ή Fly the phone through Fastboot and block the bootloader (if possible).