How to get a root rights on Xiaomi Mi 9T: a safe guide with unlocking the bootloader

Xiaomi Mi 9T (aka Redmi K20 in the global version) remains a popular smartphone among customization enthusiasts, but getting root rights on it requires carefulness. Unlike the newer Xiaomi models, where the manufacturer has tightened protection, the Mi 9T can still be unlocked officially โ€” but with nuances. This article will examine the entire process in detail, from unlocking the bootloader to installing Magisk and bypassing SafetyNet, taking into account the current versions of MIUI 14/15 and Android 13/14.

Before you start, consider that root rights void warranties, block banking applications (unless you configure the cloaking), and increase security risk, but you get full control of the system, from removing the embedded software to fine-tuning the performance. In the guide, we only use proven methods, but on models with a Snapdragon 730 processor and a locked bootloader in 2026, unlocking takes up to 168 hours of waiting.

What are root rights and why do they need on Xiaomi Mi 9T

Root rights (or superuser rights) give access to Android system files, which are normally locked. On the Mi 9T, this allows you to:

  • ๐Ÿš€ Remove pre-installed Xiaomi apps (com.miui.analytics, com.xiaomi.midrop, etc.) without disabling via ADB.
  • โšก Optimize autonomy by disabling background processes (e.g., via Greenify or Battery Charge Limit).
  • ๐ŸŽฏ Install custom firmware (LineageOS, Pixel Experience) or cores for overclocking / undervoltage.
  • ๐Ÿ”ง Modify system settings (e.g. enable Dolby Atmos on unofficial firmware).

But there is a downside: some apps (like Google Pay or SberBank Online) refuse to work on rooted devices because of the SafetyNet trigger, which is solved by masking through MagiskHide or modules like Universal SafetyNet Fix.

โš ๏ธ Attention: On Mi 9T s MIUI 14+ Unlocking the bootloader resets the device to factory settings. backup data via Mi Cloud or Titanium Backup (if root already exists).

Preparation for unlocking the loader

The first step is to unlock the bootloader. Xiaomi officially allows this, but the process has become more complicated than in 2019-2021.

  1. Link your Mi Account to your device (required via Settings โ†’ Xiaomi Account).
  2. Connect Mi. 9T Mi Unlock Tool and wait for it SMS confirmation-coded.
  3. Pass the 168-hour waiting period (7 days) if the bootloader has not previously unlocked.

List of necessary tools:

  • ๐Ÿ–ฅ๏ธ Windows PC 10/11 (on macOS/Linux Mi Unlock Tool is not working properly).
  • ๐Ÿ”Œ Cable USB Type-C (original or certified โ€“ cheap cables can cause errors) 0x8007001F).
  • ๐Ÿ“ฑ Charging the Mi battery 9T at least 60% (the device must not be switched off when unlocked).
  • ๐Ÿ” Xiaomi account with a confirmed phone number (Chinese accounts are not suitable!).

Link Mi Account to device |Install Mi Unlock Tool (version 5.5.224.30 or later)|Deactivate antivirus on PC |Enable USB debugging and OEM unlock |Data backup-->

If you have previously tried to unlock the bootloader and received the Couldn't unlock error, check:

  1. Whether you are using a VPN or proxy (Xiaomi blocks unlocking from some regions).
  2. Is the Mi 9T connected to the PC via a hub โ€“ only a direct connection?
  3. Is there a MIUI beta on the phone (only stable builds are supported by the Mi Unlock Tool).

Step-by-step: unlocking the loader

When the preparation is complete, follow the algorithm:

  1. Activate Developer Modes: Go to Settings โ†’ About Phone. Tap 7 times on the MIUI version until a notification appears You became a developer.
  2. Enable USB debugging and OEM unlocking: Return to Settings โ†’ Additional โ†’ Developer. Activate USB debugging and OEM unlock (the last item may be called Factory Unlock).
  3. Link your Mi Account to your device: Settings โ†’ Xiaomi Account โ†’ Mi Cloud โ†’ Find your device Make sure the Mi 9T appears in the list of devices.
  4. Install Mi Unlock Tool: Download the latest version from the official website. Unpack the archive and launch miflash_unlock.exe on behalf of the administrator.
  5. Connect your phone to your PC: Select file transfer mode (MTP) when you request it on your phone. In Mi Unlock Tool, click Agree, then log in to your Mi Account.

Start unlocking:

  • Press Unlock and the phone will reboot to Fastboot.
  • If you see a Couldn't unlock 100% error, try again in 24 to 168 hours.
What if the Mi Unlock Tool is 99% locked?
The 99% error is usually related to Xiaomi servers. Solutions: 1. Try another PC or change IP (reconnect router). 2. Use the Mi Flash Tool to firmware the older version of MIUI (e.g. 12.5), then re-unlock. 3. If the phone is stuck in Fastboot, exit by command: fastboot reboot

Once successfully unlocked, the Mi 9T will automatically reset to factory settings, and you can now start installing a custom recaveri.

Install TWRP and get root through Magisk

With the bootloader unlocked, the next step is to install TWRP (TeamWin Recovery Project) and then Magisk to manage root rights. For the Mi 9T (davinci), the official TWRP 3.7.0+ build is suitable.

Download the necessary files:

  • ๐Ÿ“ Official TWRP for Redmi K20 (davinci (select the.img version).
  • ๐Ÿ“ The Last Magisk (v26.4+) (Magisk-apk).
  • ๐Ÿ“ Disable_Dm-Verity_ForceEncrypt (Optionally, if you need to disable encryption).

Installation instructions:

  1. Please. TWRP Fastboot: Fastboot Flash Recovery twrp-3.7.0_davinci.img fastboot reboot recovery โš ๏ธ Note: If after rebooting the TWRP asks for a password, which means that encryption is enabled. Disable_Dm-Verity Or do a reset via Wipe. โ†’ Format Data (Erase Everything!).
  2. Install Magisk: Copy the Magisk-v26.4.apk file to your phone (via MTP to TWRP). In TWRP, select Install โ†’ Select Magisk.apk โ†’ Swipe to Confirm.

Reboot to the system:

Reboot System

After downloading, check root through the Magisk app or command in the terminal:

su

๐Ÿ’ก

If after installing Magisk, the phone is stuck with the Xiaomi logo, run through TWRP file boot.img from stock firmware, and then re-install Magisk (the method of "patch boot image").

Bypassing SafetyNet and solving problems with banking applications

Even after rooting, many apps (such as Google Pay or Tax.ru) refuse to work because of SafetyNet. On the Mi 9T, this is solved by a combination of:

  • ๐Ÿ”ง MagiskHide (built into Magisk) v24+).
  • ๐Ÿ›ก๏ธ Universal SafetyNet Fix (installed via Magisk).
  • ๐Ÿ“ฑ Hiding bootloader Unlock Status (requires patching) boot.img).

Step-by-step:

  1. Open Magisk, go to Settings โ†’ Enable MagiskHide.
  2. Install Universal SafetyNet Fix: 1. Download ZIP from GitHub. 2. In Magisk, select Modules โ†’ Install from storage โ†’ Select ZIP. 3. Reboot your phone.
  3. Check SafetyNet status through the YASNAC application (green ticks must be lit on ctsProfile and basicIntegrity).

If SafetyNet doesn't work anyway:

  • Remove all Magisk modules except Universal SafetyNet Fix.
  • Try the alternative SafetyPatch module.
  • For Google Pay, add com.google.android.gms and com.android.vending to MagiskHide.

I'll stay on stock MIUI|LineageOS|Pixel Experience|Havoc OS|Other custom firmware |I don't know-->

Frequent mistakes and their solutions

The process of rooting on the Mi 9T is rarely without problems, and here are the most common errors and ways to fix them:

Mistake.Reason.Decision
Couldn't unlock 100% of Mi Unlock ToolThere was no 168 hours of waiting or problem with Mi's account.Wait 7 days, check your account binding, try another PC.
The phone does not boot after installing Magisk (bootloop)Incompatible version of Magisk or patch boot.img.Sweep through the original boot.img via Fastboot, then re-install.
Fastboot: error: Failed to boot into recoveryA damaged TWRP file or an incorrect device model.Download TWRP for davinci (not raphael โ€“ this is Mi 9T Pro!).
This package is for "davinci" devices; this is a ""Model Definition Error in TWRP.Edit the updater-script in ZIP-Firmware file by removing the model check.
SafetyNet does not work after all manipulationsModule conflict or outdated version of Magisk.Remove all modules, upgrade Magisk to the latest version, and install Universal SafetyNet Fix.

If none of the methods worked, try returning your phone to stock firmware via the Mi Flash Tool (choose the clean all and lock option), then repeat the process from scratch.

Alternative methods of root without TWRP

If installing TWRP seems complicated, you can get root via patching boot.img directly.This method is suitable for the Mi 9T on Android 10โ€“14 and does not require custom recovery.

Algorithm:

  1. Download the stock firmware for your MIUI version from the Xiaomi Firmware Updater website.
  2. Remove boot.img from the firmware file (use 7-Zip or Mi Firmware Extractor).
  3. Move it. boot.img Get on the phone and patch through Magisk: 1. Open Magisk. โ†’ Install โ†’ Select and patch a file. 2. Choose. boot.img, wait for the creation magisk_patched.img.
  4. Fastboot: Fastboot Flash Boot magisk_patched.img fastboot reboot

Advantages of the method:

  • โœ… No risk of damage to the recovery section.
  • โœ… Opportunity remains OTA-Updates (unless you modify the system).
  • โœ… Less chance of getting into a bootloop.

โš ๏ธ Attention: MIUI 15 Android 14 patching boot.img It might not work because of the new Xiaomi checks, but it's going to have to use it. TWRP Wait for the Magisk update.

Can I get root on the Mi 9T without unlocking the bootloader?
No. Xiaomi blocks modifications to system partitions without unlocking the bootloader. All "unlocked methods" (e.g., through vulnerabilities in MIUI) either don't work on current versions or lead to soft-brick.
How to return the guarantee after obtaining root?
Officially, no. But you can: Swipe stock firmware through the Mi Flash Tool with the clean all and lock option. Reset the bootloader unlock meter (on some models, fastboot oem lock helps, but not all). However, Xiaomi can detect traces of modifications to the EDL logs, so 100% warranty recovery is unlikely.
Why Google Pay and Netflix stopped working after root?
These apps check system integrity through SafetyNet and Widevine L1. Solutions: For Google Pay: turn on MagiskHide and add the app to the hidden list. For Netflix: install the Widevine L1 Fix module (if available for your model); If it doesn't, use alternatives like Revoke or YooMoney.
Can I update my MIUI after I get root?
Yes, but with reservations: If you patched boot.img, after OTA-You'll lose root. You'll have to patch the new boot again. TWRP, Updates through System Update can lead to bootloop. ZIP-squirting and squirting through the river.
How to completely remove root and return stock firmware?
Order of action: Download stock firmware for your model with Xiaomi Firmware Updater. unpack ZIP and run through the Mi Flash Tool with the clean all option. Manually block the bootloader with the command: fastboot oem lock โš ๏ธ This will erase all data and return the phone to factory condition!