How to flash Xiaomi Mi9T through MiFlash: A complete guide with warnings and tips

Why is MiFlash firmware not always the best choice?

Xiaomi Mi9T firmware (aka Redmi K20) via MiFlash is a radical method that completely erases data and installs a β€œclean” version of MIUI. This method is relevant if the smartphone is stuck on the logo, does not turn on after a failed update β€œover the air” or requires a transition to a global / Chinese version of the software. However, MiFlash does not support firmware locked downloaders without first unlocking through Mi Unlock – this is a key limitation that many forget.

Unlike the update via Settings β†’ About Phone β†’ System Update, firmware via MiFlash:

  • πŸ”§ Erase all data (including internal memory photos and accounts)
  • πŸ”„ Allows you to downgrade the version MIUI (for example, 14 to 12)
  • 🌍 Changes the firmware region (c) CN on Global/EU back and forth)
  • ⚑ Restores "bricks" after unsuccessful modifications (for example, after ruta or custom recaveri)

But there are risks: the wrong choice of firmware or interruption of the process can turn the smartphone into a β€œbrick”, which will not even turn on in the Fastboot mode.

This manual is suitable for Xiaomi Mi9T (codename davinci) and its modifications (Mi9T Pro/Redmi K20 Pro with raphael code). If you have another model, check the compatibility of the firmware by device code!

πŸ“Š Why do you want to sew Mi9T?
The smartphone is off.
I want to change the firmware region (CN/Global)
We need to roll back the MIUI version.
Experiments with custom firmware
Other

Preparation for firmware: what to do before the start

Before connecting your smartphone to your PC, follow the mandatory steps:

  • πŸ“± Check the device model and code: go to Settings β†’ The phone. β†’ Version. MIUI and tap 7 times on the "Core" line. In the menu that opens, look for the Hardware model (must be davinci for the "Correate") Mi9T).
  • πŸ”“ Unlock the bootloader through the Mi Unlock Tool (unless unlocked previously!
  • πŸ’Ύ Save data: firmware erases internal memory. Use Mi Mover or manual copying on PC.
  • πŸ”‹ Charge the battery at least 60 percent. = brick-and-mortar.

Also prepare:

ComponentRequirementsWhere to download/buy
Firmware for Mi9T.tgz or.zip file for your model (e.g.,.tgz, davinci_global_images_...)Xiaomi or Xiaomi Firmware Updater
MiFlash Tool2023.4.1 or later (older versions may not support Mi9T)Official website
Fastboot driversFor Windows 10/11 (signed)Install automatically when connecting your phone to Fastboot
USB cableOriginal or quality Type-C (cheap cables can interrupt the connection)Electronics stores

⚠️ Note: If you have flashed a smartphone before and installed custom recavers (for example, TWRP), Before using MiFlash, you need to return the stock Recovery through the fastboot flash recovery command. recovery.img. Otherwise, the firmware will end in error.

I downloaded the firmware for the davinci model|Unlocked bootloader (Unlocked status in Fastboot)|Save data from internal memory|Charged the phone. >60%|Installed MiFlash and drivers|Prepared the original USB-cable

-->

Unlock the bootloader: without it, MiFlash does not work

The Xiaomi Mi9T bootloader is locked by default, and to flash the device through MiFlash, you need to unlock it in the official way:

  1. Link your Mi Account to your phone: Go to Settings β†’ Xiaomi Account. Enable sync and confirm the link via SMS/email.
  2. Activate Developer Mode: Go to Settings β†’ The phone. β†’ Version. MIUI. Tap 7 times on the line "Version" MIUI", Notice: β€œYou have become a developer".

Enable OEM Unlock and USB Debugging:

  • Back to Settings β†’ Additionally. β†’ For developers.
  • Activate OEM Unlock and USB Debugging switches.

Now connect the phone to your PC, turn it into Fastboot mode (turn it off, then press Power + Volume Down) and launch the Mi Unlock Tool. The program will request a login to Mi Account and begin the unlocking process. This usually takes between 72 and 360 hours of latency (depending on Xiaomi policy).

⚠️ Note: If you unlock a "Couldn't unlock" error with code 86006 or 86012, it means: Mi Account is not tied to the phone (check sync). >24 hours after you have your account linked, you are using the unofficial version of the Mi Unlock Tool. Solution: wait 24-48 hours and try again with the official utility.

πŸ’‘

If unlocking is delayed, try to link another Mi Account (such as one created on another Xiaomi device) and sometimes this reduces the waiting time.

Select firmware: which version of MIUI to download for Mi9T

For Xiaomi Mi9T (davinci) there are several types of firmware available:

Type of firmwareRegionFeaturesDownload link
Stable (Stable)Global/EU/CNTested version, updates every 1-2 monthsOfficial website
Weekly (weekly)CNNew features, but bugs are possible, just for enthusiasts.Xiaomi Firmware Updater
Fastboot (for MiFlash)Anybody.The.tgz archive with the full system image, suitable for recovery.Same source as Stable/Weekly
EEA (Europe)EUComplies with GDPR, without Chinese services.Official website (select "Europe")

Key rules of choice:

  • πŸ”Ή If you need Russian, use Global or EEA.
  • πŸ”Ή For maximum stability, choose Stable (not Weekly!).
  • πŸ”Ή If you want to remove Chinese services, download it. EEA or Global.
  • πŸ”Ή To recover from bricks – you need a Fastboot version (file.tgz).

Note the firmware version of Android. Mi9T officially supports Android 12 (MIUI 14). Installing firmware on Android 13+ is only possible through custom builds (like LineageOS), but that's beyond the scope of this instruction.

What happens if you run the wrong version?
If you flash Global on the Chinese model (or vice versa), the smartphone can: Stop catching the network (modem incompatibility); lose support for NFC or cameras (no drivers); get stuck on bootloop; Solution: flash the correct version through MiFlash in clean all mode.

Step-by-step: Xiaomi Mi9T firmware via MiFlash

When you are ready, follow the algorithm:

  1. Unpack firmware: Download the archive.tgz or.zip unpack in a folder without Cyrillic characters (for example, C:\Mi9T_Flash\). There's gotta be a file inside. flash_all.bat (for Windows or flash_all.sh (for Linux/Mac).
  2. Put your phone in Fastboot mode: Turn off your smartphone. + Reduce the volume before the appearance of the Fastboot logo (robot with the inscription) FASTBOOT).
  3. Launch MiFlash: Open the program on behalf of the administrator. Press Select and specify the path to the unpacked firmware. At the bottom, select firmware mode: clean all (recommended when changing the firmware region). clean all and lock - clean + lock the bootloader (only if you are sure that you will not stitch!). user data save (not always works correctly).

Start the firmware:

  • Press Refresh – your Mi9T should appear in the list of devices.
  • Click Flash and wait until it is completed (usually 5-10 minutes).
  • At the end of the phone will automatically restart.

The first run after firmware can take up to 15 minutes - don't interrupt the process! If the smartphone has been stuck on the logo for longer than 20 minutes, repeat the firmware in clean all mode.

πŸ’‘

If MiFlash gives an error critical partition flashing is not allowed, then the bootloader is locked. Unlock it through the Mi Unlock Tool and try again.

Frequent mistakes and their solutions

Even with the exact following of the instructions, problems can arise. Let's consider the typical errors and how to fix them:

Mistake.Reason.Decision
Couldn't find fastboot deviceDrivers are not installed or the cable is faulty.Try another one. USB-port (preferably) USB 2.0), reinstall drivers via MiFlash.
Flash is not doneConnection is interrupted or there is not enough space.Check the cable, repeat the firmware in clean all mode.
Invalid image formatA damaged firmware archive.Download the firmware again, check the checksum (MD5).
The phone does not turn on after the firmwareIncompatible firmware or error in recording.Repeat the firmware with the correct version of MIUI for davinci.

If after the firmware the smartphone loads, but:

  • πŸ“΅ No network – the wrong regional version (e.g., no network, CN Solution: I want to flash the correct version.
  • πŸ”’ Requested Mi Account password, account linked to device Solution: enter data or wait 72 hours to reset.
  • πŸ”„ The boot animation looped, the system files were corrupted. Solution: Repeat the firmware in clean all mode.

⚠️ Note: If the Fastboot displays Locked status after the firmware, the bootloader is locked automatically (for example, when selecting clean all and lock mode). Unlock it again through the Mi Unlock Tool, otherwise the next firmware will not be possible.

Alternative ways to install Mi9T

MiFlash is not the only way to upgrade or restore the Xiaomi Mi9T.

  • πŸ“² Update by air (OTA): Suitable for transitions between minor versions MIUI (for example, 14.0.1 β†’ 14.0.2) Does not erase data, but does not allow you to change the region of the firmware. β†’ The phone. β†’ Updating the system.
  • πŸ”§ Firmware through TWRP: Requires an established custom recaveri (TWRP). Allows custom firmware installation (e.g. LineageOS, Pixel Experience) Risk: Unofficial firmware may contain bugs or hardware problems (camera, NFC).
  • πŸ–₯️ Firmware through ADB Sideload: Suitable for installation of official OTA-Hand-held packages. Command: adb sideload update.zip Does not erase data, but requires an unlocked bootloader.

When to choose an alternative to MiFlash:

  • If you need to update without losing data β†’ OTA or ADB Sideload.
  • If you want custom firmware β†’ TWRP + fitting ZIP.
  • If MiFlash makes mistakes β†’ Try flashing through fastboot manually (commands below).

Example of manual firmware via fastboot (if MiFlash doesn't work):

fastboot flash boot boot.img


fastboot flash system system.img




fastboot flash vendor vendor.img




fastboot flash dtbo dtbo.img




fastboot reboot

FAQ: Answers to Frequent Questions

Can I flash Mi9T through MiFlash without unlocking the bootloader?
No. MiFlash requires an unlocked bootloader.If the status in Fastboot is displayed as Locked, use the Mi Unlock Tool first.The exception is firmware through Xiaomi's authorized service center (they have special tools).
How to check if the bootloader is unlocked on the Mi9T?
Turn off the phone, then press Power + Volume Down to enter the Fastboot. At the bottom of the screen will be status: Locked - bootloader locked. Unlocked - unlocked (you can flash). Also, status can be checked by the team in ADB: fastboot oem device-info Look for Device unlocked: true.
What firmware to choose for Mi9T, if you need Russian language and Google services?
Download the Stable version MIUI marked Global or EEA (Examples of this: davinci_global_images_V14.0.2.0.SFJMIXM_... β€” Global firmware with support for Russian and Google Apps. davinci_eea_global_images_V14.0.1.0.SFJEUXM_... β€” European version (also with Russian) Avoid firmware marked CN (Chinese – there are no Google services and there may not be Russian.
What if the Mi9T does not catch the network after the firmware?
This is a typical problem when running the Global firmware version on the Chinese model (or vice versa). Solutions: Sweat the correct regional version through MiFlash in clean all mode. If the network is lost after the air update, reset the network settings: Settings β†’ SIM-maps and mobile networks β†’ Network reset. Check. IMEI (Please enter *#06#. IMEI No, no, restore it through QCN-File (requires an engineering menu).
Can I roll back the MIUI version to the Mi9T via MiFlash?
Yes, but with reservations: βœ… We can roll back with MIUI 14 on MIUI 12 if stitched through clean all. ⚠️ You can’t roll back from Android 12 to Android 11 if the new firmware has updated anti-rollback. πŸ” Before rolling back, check the anti-rollback version in the current and target firmware (information is in the file title or on the forums). XDA).