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.
2.Selection of the Magisk installation method
There are two main ways to install Magisk Manager on Xiaomi:
- TWRP is suitable for customized Recovery devices and requires TWRP pre-installing for your model (e.g. TWRP for Redmi Note 11).
- 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).
| Method | Pluses | Cons | Suitable for |
|---|---|---|---|
| TWRP | Full control of the system, backups | Harder to install, risk of "brick" | Xiaomi Mi 11, POCO F3 and others. |
| Patching boot.img | Easy, less risk. | Requires PC and ADB | All models with unlocked loader |
| Magisk in the RAM-disk | Does not affect the system partition | Temporary root, disappears after reboot | Testing 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.
- Download the full Fastboot ROM for your model from Xiaomiβs website (e.g. Redmi Note 12 Pro+ Global).
- 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 rebootData 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:
- Download the latest version of Magisk in.zip (not APK!) format from GitHub.
- Reboot to TWRP: Turn off the phone, then press Volume up + Power.
- In TWRP, select Install, specify the path to Magisk-vXX.X.zip, and swipe for installation.
- 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?
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:
- Install Universal SafetyNet Fix module via Magisk β Modules β Install from storage.
- Activate MagiskHide (newer versions called Zygisk + DenyList):
- 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 version | Download Magisk again from official GitHub, check check the checksum (SHA-1) |
| Hanging on the Mi logo after firmware | Incompatible boot.img or patch error | Switch the stock boot.img through Fastboot and repeat the process |
| "Magisk is not installed" after the reboot | Improperly sewn boot or init_boot | Check 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 DenyList | Enable 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:
- Open Magisk Manager.
- Press Delete. β Complete removal.
- Reset the device.
Step 2: Switch to stock boot.img:
fastboot flash boot boot.img
fastboot rebootStep 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.