How to Install Magisk Manager on Xiaomi: A Complete Guide to Unlocking the bootloader

Getting root rights on Xiaomi, Redmi or POCO smartphones opens up access to hidden Android capabilities, but requires caution. Magisk Manager is not just a rooting tool, but a whole solution for modifying the system with the bypass of SafetyNet, which is critical for banking applications and games. However, installing on Xiaomi devices has nuances, from unlocking the bootloader to choosing the right version of Magisk for your firmware.

Many users experience errors such as "Installation failed" or hanging on the Mi logo after wrong actions. This article will help avoid typical mistakes using current methods for the use of the most effective methods of the user's work. MIUI 14/15 We will look at two main scenarios: installation through TWRP (For the experienced, and patching the boot image (for beginners), prepare for the process to take place from the beginning. 30 minutes to several hours – it all depends on the model and current state of the device.

⚠️ Warning: Unlocking the bootloader and rooting will void the Xiaomi warranty.On some models (e.g. Xiaomi 13 Ultra or Redmi Note 12 Pro)+) This can lead to a camera lock or denial of service.Before you start, backup your data via Mi Cloud or ADB backup.

Preparation of the device: unlocking the loader

Without an unlocked bootloader, Magisk Manager cannot be installed. Xiaomi uses a system to link the Mi Account account to the device, so the first step is to link the phone to the account. Importantly, new models (released after 2023) may require waiting 72–168 hours after the account is tied to unlock.

To start, turn on Developer Options: go to Settings β†’ About Phone β†’ MIUI version and tap the build number 7 times. Then activate USB Debugging and OEM Unlock in the developer menu. Make sure the PC has Mi Flash Tool and ADB/Fastboot drivers installed.

  • πŸ”— Link your account: Go to Settings β†’ Xiaomi account and log in. Make sure the device is linked to your account (check Settings). β†’ Additionally. β†’ Special facilities β†’ Status of release).
  • ⏳ Waiting: On new devices (Xiaomi 14, Redmi) K70) You can check the status by fastboot oem device-info - look for the line Device unlocked: false.
  • πŸ–₯️ Unlock Utility: Download the official Mi Unlock Tool from Xiaomi (Windows only) and run it on behalf of the administrator and follow the instructions.

⚠️ If you have a "Couldn't unlock" or "10008" error when unlocking, try it:

Disable the antivirus and firewall on the PC. Use the original USB-Reboot your phone in Fastboot manually: turn off the device, then press Volume down. + Nutrition.

πŸ“Š What Xiaomi model are you rooting out?
Redmi Note 12/13
POCO F5/X5
Xiaomi 13/14
Another model

2.Selection of the Magisk installation method

There are two main ways to install Magisk Manager on Xiaomi:

  1. TWRP is suitable for customized Recovery devices and requires TWRP pre-installing for your model (e.g. TWRP for Redmi Note 11).
  2. Patching boot.img is a universal method that works even without TWRP. Suitable for most modern Xiaomi smartphones.

For beginners, the second option is recommended, as it is less risky. Power users can choose TWRP if they want additional features (for example, creating NANDroid backups).

MethodPlusesConsSuitable for
TWRPFull control of the system, backupsHarder to install, risk of "brick"Xiaomi Mi 11, POCO F3 and others.
Patching boot.imgEasy, less risk.Requires PC and ADBAll models with unlocked loader
Magisk in the RAM-diskDoes not affect the system partitionTemporary root, disappears after rebootTesting before full installation

πŸ’‘

If your device is on HyperOS, check Magisk compatibility on the forum. XDA Developers.Some builds require special patches for init_boot.img instead boot.img

3. Install Magisk via boot.img patching (Step-by-step)

This method is suitable for most Xiaomi devices and is considered the most secure.

  • πŸ’» PC Windows/Linux/macOS and established ADB/Fastboot.
  • πŸ“± Smartphone with unlocked bootloader and enabled debugging USB.
  • πŸ”— The latest version of Magisk Manager (download only from GitHub).

Step 1: Remove boot.img from your device's firmware.

  1. Download the full Fastboot ROM for your model from Xiaomi’s website (e.g. Redmi Note 12 Pro+ Global).
  2. Unpack the archive and find the file. boot.img (or init_boot.img for HyperOS).

Step 2: Transfer boot.img to your smartphone and patch it with Magisk Manager:

1. Install Magisk Manager APK on your phone.


2. Open the application and click "Install" β†’ "Select and patch file".




3 Specify the path to boot.img and wait for the file to be created magisk_patched.img.

Step 3: Sweat the patch image through Fastboot:

adb reboot bootloader


fastboot flash boot magisk_patched.img




fastboot reboot

Data backup created|Battery charge > 50%|PC and phone connected by original cable|File. magisk_patched.img is in the folder with ADB-->

Installation via TWRP (for power users)

If your device is already installed TWRP, But be careful: an incompatible version of the recovery can lead to a "soft-brick." TWRP for your model on XDA or 4PDA.

Instructions:

  1. Download the latest version of Magisk in.zip (not APK!) format from GitHub.
  2. Reboot to TWRP: Turn off the phone, then press Volume up + Power.
  3. In TWRP, select Install, specify the path to Magisk-vXX.X.zip, and swipe for installation.
  4. After completion, press Reboot System.

⚠️ If after the reboot the phone is stuck on the Mi logo, then, TWRP It's not compatible with your firmware:

Reboot back to TWRP (clip Volume Up + Power for 10+ seconds). Install stock boot.img via Fastboot: fastboot flash boot.img

What if TWRP doesn’t see internal memory?
If TWRP does not detects an internal drive, it is due to FBE (File-Based Encryption) encryption. Solution: 1. When you first start TWRP, enter the screen unlock password. 2. If it does not help, format /data (all data will be deleted!): - In TWRP, select Wipe β†’ Format Data, type yes. 3. After formatting, reboot to TWRP and re-install Magisk.

5. Checking the health and bypass SafetyNet

Once you install Magisk Manager, you need to check if the root rights are working correctly and if the device is tested by SafetyNet, which is critical for applications like Google Pay, SberBank Online or PokΓ©mon GO.

Step 1: Open Magisk Manager and check the status of the following:

  • βœ… Magisk: It should be written Installed: XX.X (YYYYY).
  • βœ… SafetyNet: If it's written FAIL, additional adjustment is required.

Step 2: To complete SafetyNet:

  1. Install Universal SafetyNet Fix module via Magisk β†’ Modules β†’ Install from storage.
  2. Activate MagiskHide (newer versions called Zygisk + DenyList):
  3. Restart the device and check the status again.

⚠️ Note: MagiskHide may not work on HyperOS due to changes in the kernel, in which case try an alternative module Shamiko or roll back to an older version of Magisk (for example, try an alternative module, v25.2).

No other modifications (e.g. Xposed)

- Google Play Services (update via Play Market)

- Lock on the boot loader (must be Unlocked).-->

Typical errors and their solutions

Even with the instructions being followed accurately, there can be problems, and here are the most common errors on Xiaomi and how to fix them:

Mistake.Reason.Decision
"Installation failed: Invalid ZIP"A damaged Magisk file or incompatible versionDownload Magisk again from official GitHub, check check the checksum (SHA-1)
Hanging on the Mi logo after firmwareIncompatible boot.img or patch errorSwitch the stock boot.img through Fastboot and repeat the process
"Magisk is not installed" after the rebootImproperly sewn boot or init_bootCheck what type of image is patched (for HyperOS you need to use it). init_boot.img)
Applications do not receive root (e.g. Root Explorer)Not activated by Zygisk or not added to DenyListEnable Zygisk in Magisk settings and add the app to exceptions

If none of these methods worked, try:

  • πŸ”„ Firmware rollback: Install an older version MIUI/HyperOS, where Magisk is guaranteed to work.
  • πŸ› οΈ Clean installation: Scroll through the full Fastboot ROM Use the Mi Flash Tool, then repeat the rooting.
  • πŸ’¬ Contact the forum: Describe the problem 4PDA or XDA, specifying the device model and firmware version.

7.How to remove Magisk and return stock firmware

If you need to return the device to its original state (for example, for sale or warranty repair), follow the following steps:

Step 1: Remove Magisk through the app itself:

  1. Open Magisk Manager.
  2. Press Delete. β†’ Complete removal.
  3. Reset the device.

Step 2: Switch to stock boot.img:

fastboot flash boot boot.img


fastboot reboot

Step 3 (optional): Return the stock Recovery and block the bootloader:

fastboot flash recovery recovery.img


fastboot oem lock

⚠️ Attention: Locking the bootloader erases all data! make a backup before this step.

For complete cleanliness, run the full Fastboot ROM through the Mi Flash Tool with the clean all option, which will remove all traces of modifications, but also erase internal memory.

FAQ: Frequent questions about Magisk on Xiaomi

Can I install Magisk without unlocking the bootloader?
No, unlocking the bootloader is mandatory for all Xiaomi devices, the only exception being the temporary root through Magisk in RAM, but it disappears after the restart and does not give full control of the system.
Why are banking applications not working after Magisk is installed?
Banking applications (e.g., SberBank or Tinkoff) block access on rooted devices. Solutions: Activate Zygisk + DenyList in Magisk and add a banking application to exceptions. Install Universal SafetyNet Fix. Use alternative versions of applications (e.g., SberBank Online for rooted 4PDA devices).
How to upgrade Magisk to Xiaomi?
Update is done via the Magisk Manager app itself: Open Magisk and check for updates in the Updates section. Download the new version and select Install β†’ Direct installation (if available) or Install in an inactive slot (for devices with A/B-Reset the device in partitions. ⚠️ Do not update Magisk via Google Play – only use the official.apk with GitHub.
Does Magisk work on HyperOS?
Yes, but with reservations: HyperOS may need to patch init_boot.img instead boot.img. Some Magisk modules may not work due to changes in the kernel. check compatibility on the forum XDA before installation. At the time of writing the article (2026 year v26.4+ It officially supports HyperOS, but for individual models (e.g. Xiaomi). 14) Additional patches may be required.
Can I get root on Xiaomi without a PC?
Theoretically, yes, but in practice, it's extremely risky. There are methods using the terminal on the device itself (e.g., via Termux), but: It requires an unlocked bootloader already; high risk of errors due to adb limitations on mobile devices; you can't flash boot.img without a Fastboot (which requires a PC).