Xiaomiβs current smartphones, which run MIUI or HyperOS shells, have the widest functionality out of the box. However, many advanced users face system limitations that prevent them from installing specialized software, deep customizing the interface, or removing undeletable system debris, and require access to a super-user level known as root rights.
Getting administrator rights on Xiaomi devices is not the easiest process, but it is quite real, with all the technical nuances. You will need not only the desire to modify the system, but also an understanding of the risks associated with loss of warranty and possible blocking of banking applications. In this article, we will discuss in detail each step from the official unlock of the bootloader to the final installation of Magisk.
Before you take action, you should realize that you are responsible for the health of the device. Any interference with the system partition /system can lead to the failure of the gadget if you act carelessly. However, proper preparation and availability of backups allow you to minimize the risks and successfully complete the procedure.
Preparation of the device and necessary tools
The foundation of a successful procedure is the quality preparation of the workplace and the smartphone itself. You can not just take the phone and start typing commands into the console without first adjusting the developer's settings. The first thing you need to do is activate the hidden menu by going to Settings β About phone and quickly pressing 7-10 times on the MIUI version (or OS version).
Once the developer mode is activated, a new section will appear on the menu where you need to enable USB debugging, which is a critical parameter that allows your computer to send commands to your device via the ADB interface. You also need to allow the installation of applications from unknown sources if you plan to use third-party file managers or APK installers.
- π Charge your smartphone to a minimum 60-70%, Avoid turning off at a critical moment.
- πΎ Make a full backup of all important data to a cloud service or PC.
- π Use the original. USB-cable or quality analogue with data transmission support.
- π» Install the drivers. ADB and Fastboot to your computer with Windows operating system.
The Mi Account must be tied to the device for at least 7 days (168 hours) to be officially unlocked. If the account is recently attached, the system will issue an error when you try to unlock, and you will have to wait for the timer to expire.
βοΈ Checklist for training for root rights
Official Unlock Bootloader (Unlock Bootloader)
The most difficult and important step is unlocking the bootloader. Without this step, obtaining root rights to Xiaomi is impossible, since the bootloader blocks the modification of the system partition. The process requires the use of the official Mi Unlock Tool, which can be downloaded from the MIUI site.
β οΈ Attention: The bootloader unlock procedure will completely remove all data from the smartphone's internal drive.The device will be reset to factory settings at the time of unlocking.
To get started, start the Mi Unlock utility on your computer and log in to your account. Then turn your smartphone into Fastboot mode, holding down the Volume Down + Power buttons at the same time when the device is off. Connect your phone with a cable to your PC and press the Unlock button in the program. If all the conditions are met, the unlock process will begin.
In some cases, the system may require a period of time (from 7 to 360 hours) before allowing unlocking, a device-theft-protection mechanism, which must be repeated after the timer has expired, and successful unlocking is confirmed by the appearance of the android-fixing hare icon on the device screen when booting.
What if Mi Unlock canβt see the phone?
Installation of custom TWRP Recovery
Xiaomiβs standard Recovery menu doesnβt allow you to install modified files or patch system images. To obtain superuser rights, weβll need a third-party recovery, and the best choice here is TWRP (Team Win Recovery Project), which supports file systems, creating full backups and installing zip archives.
Finding the right version of TWRP is a big challenge. You need to find an image (.img) that's designed specifically for your CPU and device model. Installing an inappropriate version can lead to a brick or a broken touchscreen in the recave menu. You should only download files from trusted sources, such as the official XDA Developers forum or Telegram developer channels.
The firmware process is carried out through Fastboot mode. After connecting the phone in this mode to the PC, open the command line in the folder with ADB tools and enter the command to download the image:
fastboot flash recovery twrp_image_name.imgAn important nuance for Xiaomi owners: after the firmware TWRP can not immediately boot into the Android system. If you do, the stock recavator will overwrite TWRP, and all efforts will be in vain. Immediately after the firmware is finished, you need to go to the Recovery menu (volume Up + Power) and only from there download the system or patch files.
π‘
Use the command fastboot boot twrp_image_name.img temporary-launch TWRP without firmware to check the operability of the touchscreen and functionality before permanent installation.
Install Magisk and get Root rights
When TWRP is successfully installed and launched, the final step is to install the Magisk rights manager, a modern solution that is embedded in the boot.img and provides system access while remaining as undetectable as possible for the systemless root.
First, download the actual APK-Magisk file from the official GitHub repository. Rename the file extension from.apk to.zip (in some older versions) TWRP It was necessary, but modern versions are often able to put APK directly, but the method through zip remains universal. Download the file to the phone, go to the TWRP, Select Install and point the way to the archive.
Once you have confirmed the installation of the slider, you will start patching the partitions. When you have finished the process, click the Reboot System button. Once you download Android, you will see the Magisk icon. When you open the app, you will see the installation status; if everything has been successful, the version bar will say "Installed".
| Component | Function | Status of necessity |
|---|---|---|
| Bootloader | Loader OS | Must be unlocked. |
| TWRP | Recovery environment | It is necessary for installation |
| Magisk | Root rights manager | I'll be sure. |
| ADB/Fastboot | Debugging tools | I need a PC. |
Magisk setup and hiding rights from banks
After successful installation, many users face a problem: banking apps, Google Pay (Wallet), and some games refuse to work, claiming that the device is compromised. This is because Magisk is open to detection scanners by default. To get around this, you need to activate the Zygisk feature and configure the exception list.
Open the Magisk settings and turn on the Zygisk switch. After the reboot, the menu will see "Set up DenyList." This list will include all applications that require no rights (banks, payment systems, anticheat games), which will hide the root rights and modified bootloader.
β οΈ Attention: Continuous updates to DenyList and Magisk modules are required after each update to Magisk or Android, and ignoring this rule will result in renewed locks on banking applications.
It is also recommended to install the Play Integrity Fix module (formerly known as MagiskHide Props Config) that helps emulate a certified device.This is especially true for newer versions of Android, where system integrity verification has become stricter.
π‘
Activation of Zygisk and proper configuration of DenyList are key conditions for the operation of banking applications on a rooted Xiaomi.
Possible problems and ways to solve them
The firmware modification process rarely goes perfectly smoothly for all users. The most common problem on Xiaomi is a cyclic reboot after installing a module or patch. If the phone is stuck on the logo, don't panic. Boot back to TWRP, go to Advanced β File Manager, and remove the problem module folder from the /data/adb/modules directory.
Another common difficulty is losing a broadband module (IMEI, Wi-Fi, Bluetooth) after improper firmware. To avoid this, never format a persist or modem partition unless you are 100% sure of your actions. Before any experiments, back up these partitions via TWRP.
- π± Bootloop: Removes modules through TWRP Adb wait-for-device reboot bootloader.
- πΆ Missing. IMEI: Requires restoration of a backup copy of the persist partition or flashing of a stock image.
- π bootloader blocked: Re-attempting to unlock via Mi Unlock from another account is impossible, binding is on the Internet ID device.
If nothing helps, the final argument remains β full firmware of the device through the program Mi Flash Tool in Clean All mode. This will return the phone to factory state, remove root rights and close the bootloader (if you do not choose the option unlock), but guaranteed to save the device from software failure.