Xiaomi Mi 9T (The codename davinci remains one of the most popular smartphones for firmware experiments years after its release, AMOLED-screen and retractable front camera β make the device an ideal platform for testing as official updates MIUI, It's also custom builds like LineageOS or Pixel Experience, but firmware is a process that requires attention to detail, from unlocking the bootloader to choosing the right version of the software.
In this article, we will look at all the current ways to run the Mi 9T firmware in 2026: through Fastboot (the official method), TWRP (for custom firmware), and MIUI Recovery (update without losing data), and pay special attention to common errors such as anti-rollback, brick after improper kernel firmware or problems with IMEI after a region change. If you are a beginner, start with the section on preparation: without an unlocked bootloader and backup of data, even the official firmware can turn into a problem.
Preparation for firmware: what to do before the start
The Mi 9T firmware without preparation can lead to loss of warranty, locking IMEI or a full βbrickβ of the device. First and foremost, check the status of the bootloader. If it is blocked (and by default it is), it will have to be unlocked through the official Mi Unlock Tool. Note: Xiaomi imposes a restriction on unlocking β after linking the account to the device you will have to wait 7 days (sometimes more).
The second is backup. Even if you plan to flash the official MIUI through Recovery, save:
- π± Contact and SMS (through settings β Google β Backup or Mi Cloud Backup)
- πΈ Photos and videos (copy to PC or cloud)
- π Application Data (use Swift Backup or Titanium Backup for rooted devices)
- π‘ IMEI Serial number (write them down on paper or take a screenshot from Settings) β The phone)
The third is charging. Make sure the battery is at least 60 percent charged. It can take up to 20 minutes to run the firmware through the Fastboot, and if the phone turns off in the process, the consequences will be dire.
- π₯οΈ Computer on Windows 10/11 (Mi Unlock Tool and Fastboot)
- π Original. USB-cable (cheap cables can cause data transmission errors)
- π οΈ Drivers (Qualcomm) HS-USB QDLoader 9008 and ADB/Fastboot)
β οΈ Note: If you are using the Mi 9T version MIUI older than 12.0.3.0, before unlocking the bootloader, update to the latest official firmware via Settings β System Update: Older versions of software may contain vulnerabilities that cause unblocking failures.
Unlock the bootloader on Xiaomi Mi 9T
Without the unlocked bootloader, you can flash the Mi 9T only through MIUI Recovery β and then if the update is official. To install custom firmware, cores or Magisk, unlocking is mandatory. The process consists of three stages:
- Linking your Mi Account to your device Go to Settings β Mi Account β Linked devices and make sure your phone is linked to your account. If not, log in.
- Request permission to unlock Download Mi Unlock Tool, launch it on behalf of the administrator and log in to the same Mi Account as on your phone. Connect Mi 9T in Fastboot mode (turn off the phone, then press Volume Down + Power).
- After successful binding, the tool will show a timer β usually 168 hours (7 days) β at the end of this period, you can unlock the bootloader.
If the Mi Unlock Tool displays a "Couldn't unlock" or "Current account is different from the account info on the device" error, check:
- π Does the Mi Account match on the phone and in the tool.
- πΆ Is the phone connected to the Internet (via mobile data or Wi-Fi).
- β³ Is it 7 days since the first tether (the timer is not reset even after the phone is reset!).
β οΈ Attention: After unlocking the Xiaomi Mi bootloader 9T It automatically resets to the factory's Wipe data, and all the data in the internal memory will be deleted.
π‘
If the Mi Unlock Tool doesnβt see the phone in Fastboot mode, try disabling driver signatures in Windows: run the command prompt from the administrator and execute.
bcdedit /set testsigning onXiaomi Mi 9T firmware methods: which one to choose?
The choice of firmware method depends on your goal. Below is a comparison table with the pros and cons of each option:
| Method | Suitable for | Pluses | Cons | Do you need to unlock the bootloader? |
|---|---|---|---|---|
| MIUI Recovery | Official updates without data loss | β Simplicity (via phone menu)β User data is stored | β Official firmware onlyβ There is no possibility of reversing the old version. | β No. |
| Fastboot (MiFlash) | Official firmware, recovery after failure | β Reliability (recommended by Xiaomi)β Suitable for "brick" phones | β All data is deletedβ Demands a PC. | β No (but I need to unlock for custom firmware) |
| TWRP + Castom firmware | LineageOS, Pixel Experience, MIUI ports | β Flexibility (any firmware and modifications)β The possibility of backup through TWRP | β The risk of a brick in an errorβ Maybe it won't work. OTA-update | β Yes. |
| ADB Sideload | Update without TWRP (for example, via OrangeFox) | β No need to unlock for official firmwareβ Suitable for Firmware with Errors in Recovery | β Slower than Fastbootβ Not all custom firmware is supported | β No (but it is for unofficial collections) |
For most users, the best option is Fastboot (if you need clean official software) or TWRP (if you want custom firmware). MIUI Recovery is only suitable for βover the airβ updates or manually installing official packages without resetting.
π‘
If you're a beginner, start by running through Fastboot with the official MIUI.This method is the most stable and supported by Xiaomi.Castom firmware requires expertise and can lead to problems with the camera, NFC or mobile network.
Xiaomi Mi 9T firmware via Fastboot (official MIUI)
This method is suitable for stock firmware installation (pure MIUI without modifications).
- π₯οΈ Computer with Windows and installed drivers ADB/Fastboot.
- π¦ Official firmware for Mi 9T (Download from the official website; choose the version of Fastboot, not Recovery).
- π οΈ MiFlash tool (last version).
Step-by-step:
- Unpack the downloaded archive with firmware in a folder (for example, C:\mi9t_fastboot).
If MiFlash is making a mistake "flash_all_lock.bat failed, try it:
- π Restart your PC and phone.
- π Use the other USB-port (preferably) USB 2.0).
- π₯ Download the firmware again (possibly the archive is damaged).
β οΈ Note: If you are using the Mi 9T version MIUI based on Android 10 on firmware with Android 11+, The anti-rollback protection might work, so the phone locks itself at boot, so you can only flash official builds with the same or newer version of Android.
Download the official Fastboot firmware for Mi 9T (davinci)|
Installed ADB/Fastboot and MiFlash| drivers
Backup of data created |
Phone charged at 60 percent+|
bootloader unlocked (if you are stitching with caste) |-->
Installation of custom firmware through TWRP
LineageOS, Pixel Experience or other custom firmware will require TWRP, a custom recovery. Importantly, only the TWRP version for davinci is suitable for the Mi 9T (not to be confused with davinciin β this is the Redmi K20 for India!).
Steps:
- Download TWRP for Mi 9T from the official website (.img file).
- Transfer your phone to Fastboot and pass TWRP Team: Fastboot Flash Recovery twrp-3.7.0_9-0-davinci.img fastboot boot twrp-3.7.0_9-0-davinci.img
- In TWRP, make a backup of the persist partition (important for IMEI!) and copy the firmware to the phone.
- Sweep through the firmware (like LineageOS), then Gapps (if you need Google services) and Magisk (for root).
- Run Wipe β Format Data (required!), then reboot.
Typical problems and solutions:
- π΄ The phone does not load after the firmware β Check if the firmware is suitable for davinci.Some builds for davinciin may not work.
- πΆ No mobile network. β Make sure you have the correct modem (vendor and firmware from the official firmware).
- π Fast battery discharge β Castomic cores (like Kirisakura) can conflict with firmware. Try another core.
How to restore IMEI after firmware?
Firmware via MIUI Recovery (without data loss)
If you want to upgrade the Mi 9T without resetting, use MIUI Recovery, which is only suitable for official firmware in.zip format (not.tgz for Fastboot!).
Instructions:
- Download Recovery firmware from Xiaomi (choose your model and region!).
- Rename the file to update.zip and move it to the root of internal memory.
- Go to Settings β About Phone β System Update, click on the three dots at the top and select Select a firmware file.
- Please specify the path to update.zip and confirm the installation.
If the update has been on the MIUI logo for more than 10 minutes:
- π Force the phone to restart (clip the power for 15 seconds).
- π§ Try to flash the same firmware through Fastboot.
- π₯ Check the integrity of the archive (it may have jumped with an error).
β οΈ Attention: Some firmware MIUI for Mi 9T If you try to flash an older version (for example, from Android 11 to Android 10), the phone will lock. MIUI customized!
Solving errors after the firmware Xiaomi Mi 9T
Even with the right firmware, there can be problems, and the following are the most common ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| Phone not turned on (black screen) | Incorrect firmware or interrupted process | Swipe official MIUI through Fastboot with clean all option |
| Hanging on the MIUI logo | Magisk module conflict or incorrect kernel | Remove Magisk via TWRP or flash clean firmware |
| No mobile network (no signal) | Modem or persist partition damaged | Sweep the official firmware with the Flash All Except Storage checkbox in MiFlash |
| The camera or NFC is not working. | There are no drivers in the custom firmware | Install a patch for the camera (such as ANX Camera) or flash another build |
| Fast battery discharge | Background processes or unoptimized core | Check the battery statistics in Settings β Battery or run another core |
If the Mi 9T is no longer detected by the computer in Fastboot mode (device not found error), try:
- π Connect the phone to another USB-port (preferably) USB 2.0).
- π₯οΈ Reinstall Qualcomm drivers HS-USB QDLoader 9008.
- π Reboot the phone to EDL-Mode (close the Volume up) + Loudness down + Power on a phone turned off).
π‘
If after the custom MIUI firmware, navigation gestures stopped working, go to Settings β Additional β Full-screen display and select the navigation type again.