Owners of the Chinese giantβs devices often face limitations of MIUI, which prevent them from removing system debris or installing specialized modules. Getting root rights to Xiaomi opens the door to full control of the gadget, allowing you to change system files, block ads at the kernel level and increase autonomy.
Before you start modifying your firmware, you need to be aware that you are interfering with the Android operating system. Standard security guarantees at this point cease to apply, and any errors can lead to the failure of the device. In this article, we will discuss in detail how to securely obtain superuser rights, what tools will be needed for this, and how to minimize the risks.
The main tool for modern rooting is Magisk, which hides the fact that you have rights from banking applications, and unlike the old methods, this approach is more flexible and secure, you will need a computer, a USB cable and a stable Internet connection to go through all the stages of the procedure.
β οΈ Note: The procedure for unlocking the bootloader and obtaining superuser rights voids the device warranty in most service centers.
Preparation of the device and account Mi
The first and most important step is to link the device to your Mi Account. Without this step, the official unlock tool will simply prevent you from starting the process. Go to your phone's settings, select About Phone, and click on the MIUI version several times to activate the developer menu.
Then you need to enable USB debugging. Go to Settings β Advanced Settings β Developer and activate the USB Debugging switch. Also, in the same menu, look for Mi Unlock Status and make sure your account is tied. If the status shows that your account is not tied, turn on the mobile Internet and press the anchor button.
Usually, the Mi Unlock Tool requires a wait of 7 to 168 hours (7 days) before the first attempt to unlock. If you try to unlock the device earlier, you will get an error indicating the wait time.
Don't ignore the need to back up. When you unlock the bootloader, all the data on the internal drive will be permanently deleted, use cloud services or transfer photos and documents to your computer in advance.
Unlocking the bootloader (Bootloader)
Unlocking the bootloader is a critical step without which installing a custom recavator or obtaining superuser rights is impossible. To do this, you will need the official Mi Unlock Tool, which should be downloaded from miui.com/unlock. Install the program on your computer and log in to it under the same account as on your phone.
Put your smartphone in Fastboot mode. Turn it off completely, then press the Down volume and power buttons at the same time. The screen will show a picture of a rabbit fixing an android. Connect the phone with a cable to your PC. In Mi Unlock, press the Unlock button.
What if Mi Unlock is running a 10008 error?
Error 10008 often occurs due to network connection or antivirus issues. Try using mobile internet (phone distribution) instead of Wi-Fi, as providers sometimes block ports needed for Xiaomi servers. Also temporarily disable Windows firewall or antivirus software. If this doesn't help, try running the program on behalf of the administ.<|endoftext|> The unlocking process can take a few minutes. At this time, don't turn off the cable and don't touch the device. Once successfully completed, the phone will automatically reset and perform a data reset. This is the normal behavior of the security system. Once the Android device is installed, you will see the open-lock path. β οΈ Note: Some banking apps and anti-cheat games (e.g, PokΓ©mon GO) They can stop working on the unlocked bootloader. They will require additional manipulations to hide root rights. Install Magisk to get root. The current standard for obtaining superuser rights is Magisk. It works on the principle of systemless, that is, it does not change the system partition directly, which makes it easier to update the system and hide modifications. First you need to download the current version of Magisk in.apk format from the official GitHub repository. Since the bootloader is unlocked, you will need a custom recapver, most often TWRP. Find the right version TWRP Download the.img image and the Magisk firmware file (rename.apk to.zip or leave it as is, the installer will offer options in the new versions). Boot into Fastboot mode again and connect the phone to your PC. Open the command line in the ADB tool folder and enter the command to launch the recovery: fastboot boot twrp.img When the phone boots into TWRP, plug it into your computer and copy the Magisk installation file to your internal memory. In the Recovery menu, select the file and confirm the installation. Once you have finished, clicking "Reboot System." Once the system is loaded, find the Magisk icon in the application menu and when you log in, you can successfully manage the "Player" application, then you can now use the "Player permissions for the installed version. The Magisk app should have a green indicator on the home screen that says "Installed." However, just accessing is not enough - you need to configure security. In the Magisk settings, turn on "Zygisk." This is a new code implementation mechanism that replaces the old MagiskHide. Also activate "Enforce DenyList." legacy>Outdated concealment method (for Android 10 and below) Function Description Recommended status Zygisk Module Launch Included Enforce DenyList Root hides from selected applications (This is a modified from the game) Remember that after you set up DenyList, you need to fully restart the device, not just restart the applications. Only after you restart the changes will take effect and banking applications will stop swearing about the presence of root rights. π There is experience on other brands Rutil already a lot Xiaomi I fear and do not dare to solve problems and errors In the process of modifying Xiaomi, users often face specific problems. One of the most common is a cyclic bootloop after you install the module. TWRP and remove the problem module through the file manager or module section if the recovery allows. Another common problem is a broken fingerprint or camera after flashing. TWRP or damage to the partition persist. Always use a reavers designed specifically for your CPU model (Snapdragon, MediaTek or Exynos). π‘The main reason for errors in rooting Xiaomi is the use of old versions of the Mi Unlock Tool or incompatible images. TWRP. Always check the release dates. If the Mi Unlock Tool can't see the phone, try installing the original cable, replace it. USB-port or reinstall drivers ADB. Sometimes it helps to switch the cable from the USB 3.0 on USB 2.0 port. Also worth mentioning is the problem of locking your Mi Account after unlocking. If you reset your settings but didn't untie your device from your account before unlocking it, the system may require a password from your old account when you first set it up, which is anti-theft protection, and you can't legally get around it. Useful modules and utilities for Xiaomi After obtaining the rights of the superuser, the world of modules opens up before you. Xiaomi devices are particularly affected by modules that remove ads from system applications, such as AdAway using a hosts file to block ad servers throughout the system β MIUI Tools or similar modules that allow you to unlock hidden shell features, such as second space in any applications or advanced battery settings. Also popular are audio enhancement modules, such as Dolby Atmos, if they are not built into your firmware version. For managing autoload and freezing background processes, Servicely or built-in Magisk functions are excellent. This allows you to significantly increase battery life, forcibly closing unnecessary services. MIUI. Should I be updated on OTA Direct Update by Air? Direct Update by Air (OTA) On a rooted device, it usually results in loss of rights or even a bootloop. It is recommended to remove the root before updating (complete uninstall in Magisk), update, and then repaint the boot image. Remember to regularly update Magisk itself. Developers often release security patches and compatibility improvements with new versions of Android. You can monitor updates right inside the application. Using file managers with root-access, such as MT Manager or Solid Explorer, will allow you to edit system files, change fonts, icons and download animations, making the interface unique. Does the phone performance decrease after obtaining root? On the contrary, competent use of root-rights can often increase the cost of the system, however, you can not control the installation of the system. Can you turn it back and close the bootloader? Yes, there is a "Lock bootloader" feature in the Mi Unlock Tool. However, this should be done with extreme caution: before closing, you need to return all system partitions to the stock state. If you close the bootloader with the modified firmware, the phone will go into eternal boot. Do contactless payments work after rooting? Google Pay (Wallet) can work if you configure the DenyList list in Magisk and Zygisk is enabled. However, some banking applications can be blocked dead, and you will have to put up with this or look for the rooting of the computer, you need to start the installation of the computer from the installation.