Xiaomi

Xiaomi Mi 9T & Redmi K20 (davinci): Mi Flash Flashing Guide

Complete firmware flashing guide for the Xiaomi Mi 9T / Redmi K20 using Mi Flash Tool. Covers Xiaomi Mi 9T & Redmi K20 (davinci / davinciin), Fastboot drivers, and Mi Flash Tool procedures.

Xiaomi Mi 9T / Redmi K20 June 2019
Models
M1903F10G, M1903F10A, M1903F10T, M1903F10C, M1903F10I
CPU
Octa-core (2x 2.2 GHz Kryo 470 Gold & 6x 1.8 GHz Kryo 470 Silver)
GPU
Qualcomm Adreno 618
RAM
6 GB / 8 GB LPDDR4X
Storage
64 GB / 128 GB / 256 GB UFS 2.1
Display
6.39" AMOLED, FHD+ 2340×1080 pixels (19.5:9 ratio, 403 ppi, HDR, 600 nits peak, Corning Gorilla Glass 5)
Battery
4000 mAh Li-Po (18W fast charging via USB Type-C 2.0)
OS
Android 11.0 (MIUI 12.5 China / MIUI 12.1 Global)
Connectivity
4G LTE, Dual SIM (Nano-SIM), Wi-Fi 802.11 a/b/g/n/ac dual-band, Bluetooth 5.0, NFC (market dependent), 3.5mm jack, USB Type-C 2.0
Colors: Carbon Black Red Flame Glacier Blue

About the Xiaomi Mi 9T / Redmi K20

The Xiaomi Mi 9T / Redmi K20 was released in June 2019 on the Qualcomm Snapdragon 730 SM7150-AA (8nm LPP, 64-bit Octa-core: 2x 2.2 GHz Kryo 470 Gold + 6x 1.8 GHz Kryo 470 Silver) platform. Featuring a notchless 6.39-inch AMOLED display, motorized pop-up selfie camera, and a 4000 mAh battery with 18W fast charging, the device became a standout mid-range phone worldwide.

Flashing official factory Fastboot firmware using Xiaomi Mi Flash Tool repairs corrupted system partitions, fixes persistent bootloops, and restores official MIUI stability. Follow the verified steps below to flash your device safely.

Which Flash Mode Should You Use?

Custom Recovery Mode (OrangeFox / TWRP)

Interface for flashing community custom ROMs (such as Xiaomi.eu), ZIP mods, or performing partition-level storage wipes.

How to enter
With device powered off, hold Volume Up and Power buttons together until the custom recovery splash screen appears
Requires
Unlocked bootloader, custom recovery flashed to physical recovery partition with disabled AVB verification

Stock Recovery / Local Update

Official on-device recovery method for installing signed regional MIUI update packages without a PC.

How to enter
With device powered off, hold Volume Up and Power buttons together until the Mi recovery menu displays
Requires
Handset only, matching official recovery ZIP package on internal storage

Qualcomm HS-USB QDLoader 9008 (EDL Mode)

Emergency download mode accessed via motherboard test points. Requires authorized Xiaomi service credentials on Snapdragon 730.

How to enter
Remove rear glass back cover, short the two gold EDL test points with tweezers, and insert USB-C cable
Requires
Windows PC, Qualcomm QDLoader drivers, motherboard test point access, authorized Xiaomi service account

Essential Workshop Equipment & Mi Flash Requirements

1
Windows PC & Mi Flash Tool

A PC running 64-bit Windows with Xiaomi Mi Flash Tool and official Qualcomm USB drivers installed.

2
Verified Fastboot TGZ Package

Download and unpack the official davinci Fastboot archive twice with 7-Zip until flash_all.bat is visible.

3
50%+ Battery Charge

Ensure the 4000 mAh battery holds at least 50% charge to ensure stable power delivery throughout the flashing process.

4
Direct Motherboard USB Port

Connect an authentic USB Type-C data cable directly into a rear USB 2.0 port on the computer motherboard.

5
Select "Clean All" Option

In Mi Flash Tool, select "clean all" at the bottom right. Never select "clean all and lock" on modified devices.

5-Step Mi Flash Walkthrough for Xiaomi Mi 9T

These 5 steps are tailored to the Xiaomi Mi 9T / Redmi K20 (Snapdragon 730). For screenshots, an interactive checklist, and troubleshooting, open the full Mi Flash Tool guide.

  1. Extract davinci_eea_global_images_V12.1.1.0.RFJEUXM TGZ archive twice using 7-Zip
  2. Power down phone and hold Volume Down + Power until orange Fastboot bunny displays
  3. Connect via native rear motherboard USB 2.0 port to prevent Snapdragon 730 packet drops
  4. Load extracted firmware root directory and tick "clean all" (flash_all.bat) in Mi Flash Tool
  5. Click Flash and allow 5 to 10 minutes on first boot as user data encryption completes

Fastboot Rawprogram XML & Firmware Package for SM7150

Official Fastboot firmware packages for the Xiaomi Mi 9T and Redmi K20 (davinci / davinciin) utilize rawprogram0.xml and patch0.xml partition configurations executed through flash_all.bat. When loaded into Xiaomi Mi Flash Tool, these scripts write boot, recovery, system, vendor, and cust partitions directly to the Snapdragon 730 UFS 2.1 flash memory controller.

rawprogram0.xml

Official factory Fastboot firmware for the Xiaomi Mi 9T and Redmi K20 utilizes rawprogram0.xml and patch0.xml executed through flash_all.bat. In Mi Flash Tool, select the root extracted folder containing these scripts.

The Xiaomi Mi 9T (codename davinci) and Redmi K20 (davinci / davinciin) share the Qualcomm Snapdragon 730 processor with 6GB or 8GB LPDDR4X RAM, UFS 2.1 storage, and a 4000 mAh battery supporting 18W fast charging.

Always verify whether your phone is international davinci (M1903F10G with NFC) or Indian davinciin (M1903F10I without NFC) before flashing. Never flash firmware designed for the flagship Mi 9T Pro / Redmi K20 Pro (codename raphael on Snapdragon 855).

Xiaomi Mi 9T / Redmi K20 Firmware Versions

Tested stock firmware packages for confirmed hardware variants of the Xiaomi Mi 9T / Redmi K20. Always confirm your model codename (davinci vs davinciin) before flashing.

Version Region Android Version Size MD5 Download
V12.1.1.0.RFJEUXM (20210903) EEA / Europe Stable (EUXM) Android 11.0 (MIUI 12.1) 3.2 GB 3c2213723807388ebfd3e58767c8f6ba ⬇️ Download
V12.1.4.0.RFJINXM (20210713) India Stable (INXM) Android 11.0 (MIUI 12.1) 3.0 GB d75547fd02a06c139cf039c987715ad8 ⬇️ Download
V12.5.2.0.RFJCNXM (20211103) China Stable (CNXM) Android 11.0 (MIUI 12.5 Enhanced) 4.0 GB 24856b6f4f7eb8b1630faa0b9cde0618 ⬇️ Download
V12.5.2.0.RFJCNXM (v12-11) Xiaomi.eu Multilingual (Recovery) Android 11.0 (MIUI 12.5 Enhanced) 2.4 GB 8e20b5680578abdbda0207c862a3da97 ⬇️ Download

This device family includes 13 verified packages across EEA, Global, China, Russia, India, Xiaomi.eu, TWRP, and OrangeFox releases. Browse the complete 13-package archive on AndroidFirmwareFile.com →

Snapdragon 730 Fastboot Partition Layout & Hardware Notes

Flashing official Fastboot firmware through Xiaomi Mi Flash Tool repairs corrupted partitions, recovers phones stuck in bootloops, and restores the factory MIUI operating system cleanly.

Because emergency download (EDL 9008) recovery on the Qualcomm Snapdragon 730 requires authorized Xiaomi service credentials, keeping your bootloader officially unlocked and preserving Fastboot access is your primary repair path.

Troubleshooting Xiaomi Mi 9T & Redmi K20 Flashing & Mi Flash Errors

Anti-Rollback Rejection: "FAILED (remote: 'Anti-rollback check error')"

This error occurs when attempting to flash a Fastboot ROM with an Anti-Rollback (ARB) index lower than the one fused to your Snapdragon 730 processor. Check your current hardware index by running fastboot getvar anti. Always select a firmware package matching or exceeding your device's current ARB version.

Regional Root Key Lockout: "This MIUI version can't be installed on this device"

This bootloop occurs when selecting "clean all and lock" (flash_all_lock.bat) while flashing Global or EEA software onto Chinese hardware (M1903F10A/C). The bootloader detects mismatched regional root keys and blocks booting. Boot back into Fastboot mode with Volume Down + Power and use the Mi Unlock tool to unlock the bootloader, then flash using "clean all".

Mi Flash False Failure: "error: Not catch checkpoint ($fastboot -s .* lock)"

This red notice frequently displays at the end of flashing when "clean all" is selected. It is a harmless false alarm caused by Mi Flash expecting a bootloader re-lock status string that flash_all.bat does not return. If partition writes completed and the phone reboots to the animated logo, the flashing operation was completely successful.

For in-depth Xiaomi Fastboot error codes, EDL testpoint pinouts, and driver troubleshooting: Mi Flash Tool Error Directory →

Workshop Flashing & Troubleshooting FAQ

Ready to Flash?

Follow the full step-by-step Mi Flash Tool guide with interactive progress tracking, prerequisite checklist, and complete troubleshooting.

Open Full Guide