Obtaining superuser rights on a Xiaomi Redmi 9 smartphone opens up limitless possibilities for customization of the system, but requires a deep understanding of the processes occurring in the Android kernel. The standard MIUI shell, although functional, often restricts access to system files necessary to fine-tune the performance or remove preinstalled software.
The process of gaining full access to the file system is not a trivial one-click action and involves certain risks that you need to know about before you start any manipulation. Unlocking the bootloader is the first and mandatory step that completely erases all data from the device, so pre-creating a backup is critical. In this article, we will discuss in detail each step, from applying to Mi Unlock to installing the Magisk privilege manager, ensuring maximum security of the procedure.
It is worth noting that after modification of the system partition, some banking applications and services with a high degree of protection can stop working correctly without additional settings. However, modern methods of hiding root rights allow you to successfully circumvent these restrictions, keeping the functionality of the smartphone at a high level.
Preparation of the device and necessary tools
Before any firmware modifications are initiated, you need to carefully prepare the workspace and software. You will need a computer running Windows OS, as most of the Xiaomi utilities are optimized for this platform. Also make sure that the USB cable you plan to use supports data transfer, not just charging, as an unstable connection can lead to critical errors in the firmware process.
On the Redmi 9, you need to activate the hidden menu for developers. To do this, go to the settings, select About Phone and quickly click on the version seven times. MIUI. After you have become a developer, go back to the main settings menu and find the “More” section» → «For developers. You need to include debugging on this. USB and permit installation through USB.
⚠️ Attention: Activation of the developer mode and debugging by USB This makes the device more vulnerable to external attacks when connected to public charging stations, and once all work is complete, it is recommended to disable these functions to improve the security of personal data.
Be sure to create a full backup of all important data, as unlocking the bootloader, which is the next step, will initiate a complete reset of the device to factory settings. Wipe Data is a standard MIUI security procedure that cannot be bypassed, so save photos, contacts and documents to cloud storage or to an external medium in advance.
Unlock the bootloader via Mi Unlock
The fundamental step in getting superuser rights on Xiaomi devices is unlocking the bootloader. Without this step, installing a customized recavator or modified boot image is impossible. First, you need to link your Mi Account account to your device. In the Developer menu, find Mi Unlock Status and click Add Account and Device. Make sure your smartphone is connected to the mobile Internet, as the Wi-Fi binding may not work.
Once successfully linked, you will need to wait a certain period of time, which is usually between 7 and 168 hours (one week).The Mi Unlock Tool on your computer will show the exact time remaining until you allow unlocking. Attempts to bypass this timer or use third-party services to speed up the process can lead to locking the device by the Xiaomi server verification service.
When the timer expires, turn off your smartphone and go to Fastboot mode, holding the power and volume buttons simultaneously. Connect the device to your PC, launch the Mi Unlock utility and log in to the same account you previously linked. Press the Unlock button and wait for the process to complete, which will take a few minutes. At which point the phone will be reset and all data will be deleted.
- 🔓 bootloader status: After successful unlocking, the Unlocked logo will appear when you turn on the phone with the image of a hare in a repair cap.
- 🔄 Data reset: The procedure is guaranteed to delete all user files, so re-creating a backup after linking an account is mandatory.
- ⏳ Waiting timer: The time countdown is by the server, not the device, so resetting settings or flashing will not nullify the wait.
☑️ Checking before unlocking
Installation of custom TWRP Recovery
Staff_recovery_ on the Redmi 9 has limited functionality and does not allow to install modified boot images or ZIP-This is done using Team Win Recovery Project (TWRP) — Open source third-party recovery environment: Before installation, download the current version of the image (img file) that is compatible with your model (codename lancelot for the global version or merlin for other regions).
The installation process is done via a computer using the command line and tools ADB and Fastboot. Place the downloaded image file in the folder with the platform tools and rename it to twrp.img for convenience. Transfer the smartphone to Fastboot mode (power buttons and volume down), connect it to the PC and open the command prompt in the folder with the utilities.
fastboot flash recovery twrp.imgAn important nuance for Xiaomi owners: after the firmware TWRP can not immediately boot into the system, otherwise the staff loader will rewrite the custom recavator back to the stock. Immediately after executing the flash command, you need to pinch the combination of power buttons and increase the volume, holding them until the TWRP logo appears. If you accidentally booted into Android, the process of firmware image will have to be repeated.
What if TWRP asks for a password?
Magisk installation for Root access
The most modern and secure method of obtaining superuser rights is the use of the Magisk system. Unlike the old methods (SuperSU), Magisk works on the principle of systemless, that is, it does not make changes to the system partition directly, which makes it easier to hide the presence of modifications from applications with a security check. Magisk.apk from the official GitHub repository.
Since we already have TWRP installed, the installation process is as simple as possible. Copy the Magisk.apk file (or renamed Magisk.zip) into the internal memory of your smartphone. Reboot to Recovery Mode (clamping the power and volume up) and select "Install." Find the magic file and swipe to confirm the installation.
Once installed successfully, click the Reboot System button. When you boot, you will see a pop-up from Magisk reporting additional downloads. If that doesn't happen, find the Magisk app installed on the menu, it may be called "Superuser" or have a mask icon. Inside the application, you will see the installation status and the ability to manage rights for each application separately.
- 🛡️ Systemless interface: Magisk is not a modifies system partition, which allows integrity checks in banking applications when properly configured.
- 📦 Modules: Through the wizard manager, you can install font-changing modules, sound profiles or system libraries without flashing.
- 🔄 Update: To update root rights in the future, it is enough to repeat the installation procedure ZIP-archive TWRP or use the built-in update function in the application.
It is important to note that after installing Magisk, it is recommended to immediately go to the application settings and enable the “Zygisk” function, as well as hide the Magisk program itself through the “Hide the Magisk application” function, renaming it so that security systems do not detect it by the name of the package.
License Check and Basic Security Setup
Once the operating system is successfully booted, you need to make sure that the superuser rights are actually active and working correctly, and you can download Root Checker or any similar program from the app store, and when it starts, it will request permission to access the superuser rights — click “Provide” in the Magisk window that appears.
But access is not enough, it is important to ensure basic security of the device. Many applications, especially banking (Sberbank, Tinkoff, etc.) and payment systems (Google Pay, Mir Pay), block their work when root rights are detected. Newer versions of Magisk use the Zygisk mechanism and the exception list to bypass this.
⚠️ Warning: Don't give superuser rights to apps you're not sure of origin. Root-enabled malware can take full control of your device, including access to passwords, photos and microphones.
To set up root rights hiding, open the Magisk app, go to the settings (cogwheel) and turn on Stealth Mode (formerly called MagiskHide). Then, under Set up a stealth list (or "DenyList"), select all of Google Play's banking apps and services. After that, you need to fully restart the device to make the changes take effect.
Possible problems and ways to solve them
While modifying the Redmi 9, users may encounter various technical difficulties, one of the most common problems is the “bootloop” – a cyclical reboot of the device when the phone gets stuck on the manufacturer’s logo, which often happens when installing an incompatible version of the TWRP or corrupting system files during the patching process.
If the device is in the bootloop, try going into TWRP mode and clearing Dalwick's cache and system cache (Wipe → Advanced Wipe → Dalvik / ART Cache + Cache). If that doesn't work, you may need a full reset (Format Data) that will delete all data but bring the phone back to life. In the worst case, you will have to return the stock firmware via EDL mode, which requires an authorized Mi Account or special patch tools.
Another common problem is the Widevine L1, which causes streaming services (Netflix, Amazon Prime) to stop tranching content in HD quality, because unlocking the bootloader changes the security status of the device, and it is impossible to return L1 back on most Xiaomi devices without replacing the hardware keys.
| Problem. | Probable cause | Method of decision |
|---|---|---|
| Cyclical reboot | Incompatible TWRP image or module | Wipe Cache/Dalvik in Recavator or Reflashing of the drain |
| NFC/Google Pay is not working | Blocking from the annex | Setup DenyList in Magisk and hide root rights |
| The computer can't see the phone. | There are no drivers or bad cables | Installation of drivers Xiaomi/ADB, replacement USB-cable |
| Error "Device is locked" | The bootloader is not unlocked | Unlock the device using the Mi Unlock Tool |
💡
If the sound in the headphones or speakers is gone after installing Magisk, try removing all installed audio modules and resetting the audio settings in the Magisk app.
Frequently Asked Questions (FAQ)
Will the Xiaomi Redmi 9 warranty fly after getting root rights?
Can I update Android to OTA after I get root rights?
Is it safe to use root-right banking apps?
What is A/B Partition and How Does It Affect Redmi 9?
💡
Getting root rights is a powerful tool for power users, but it requires accountability.Always weigh the need to modify the system against potential data loss or security risks.