Xiaomi

Xiaomi Mi 9 (cepheus): Stock Firmware Flashing Guide

Complete firmware flashing guide for the Xiaomi Mi 9 using Mi Flash Tool. Covers official stock firmware installation using Mi Flash Tool Fastboot and recovery mode.

Xiaomi Mi 9 March 2019
Models
M1902F1G (Global / Europe), M1902F1A, M1902F1C (China)
CPU
Octa-core (1x2.84 GHz Kryo 485 Prime & 3x2.42 GHz Kryo 485 Gold & 4x1.80 GHz Kryo 485 Silver)
GPU
Adreno 640
RAM
6 GB / 8 GB (up to 12 GB Transparent Edition)
Storage
64 GB / 128 GB / 256 GB UFS 2.1
Display
6.39" Super AMOLED FHD+ 2340x1080, 19.5:9 ratio, HDR10, Gorilla Glass 6
Battery
3300 mAh Li-Po, 27W wired (QC4+), 20W wireless
OS
Android 11.0 (MIUI 12.5), Launched on Android 9.0 (MIUI 10)
Connectivity
Wi-Fi 802.11 a/b/g/n/ac dual-band, Bluetooth 5.0, NFC, Dual GNSS (L1+L5), IR Blaster, USB Type-C 2.0
Colors: Piano Black Ocean Blue Lavender Violet Transparent

About the Xiaomi Mi 9

The Xiaomi Mi 9 was launched in March 2019, built on the Qualcomm Snapdragon 855 (SM8150) platform. Known under codename cepheus (models M1902F1G Global and M1902F1A/C China), the handset features a 6.39-inch Samsung Super AMOLED display, an optical in-display fingerprint scanner, up to 8 GB of LPDDR4X RAM, and a triple rear camera array.

Flashing official Fastboot firmware recovers devices from bootloops, unbricks damaged partition tables, and restores clean factory MIUI 12.5 software. Follow the verified package links and bench steps below to flash your phone safely.

Which Flash Mode Should You Use?

Qualcomm EDL 9008 Deep Flash Mode

Emergency download mode accessed via motherboard test points to revive hard-bricked devices unable to enter Fastboot.

How to enter
Remove back cover, disconnect battery, bridge motherboard test points while plugging in USB
Requires
PC with Qualcomm HS-USB QDLoader 9008 drivers, authorized Mi service account

Recovery Sideload & Local Update

Official recovery interface used for installing signed recovery update packages directly over USB or on-device storage.

How to enter
Power off phone, hold Volume Up + Power together until the MIUI Recovery menu displays
Requires
Official signed MIUI recovery package, USB Type-C cable

What You Need Before Flashing

1
Unlocked Bootloader

Fastboot flashing requires an officially unlocked bootloader via the Xiaomi Mi Unlock utility.

2
Windows PC & Mi Flash Tool

A 64-bit Windows PC with Mi Flash Tool (2018.05.28+) and Qualcomm HS-USB drivers installed.

3
Battery Charged to 50%+

Ensure the 3300 mAh battery has at least 50% charge to prevent shutdown during partition flashing.

4
Quality Type-C Cable

Use a quality USB Type-C data cable plugged directly into a rear motherboard USB 2.0 port.

5
Personal Data Backup

Flashing stock Fastboot firmware with "clean all" completely wipes internal storage and applications.

6
Extracted TGZ Package

Decompress the .tgz archive twice using 7-Zip until flash_all.bat is exposed in a clean directory.

How to Flash the Xiaomi Mi 9 β€” Quick Overview

A quick 5-step overview built specifically for the Xiaomi Mi 9. The full Mi Flash Tool guide adds screenshots, progress tracking, and fixes for common errors.

  1. Unlock bootloader with Mi Unlock
  2. Decompress Fastboot TGZ archive twice
  3. Enter Fastboot mode
  4. Configure Mi Flash Tool with "clean all"
  5. Flash firmware and await first boot

Firmware Package for Snapdragon 855 (flash_all.bat)

Official Fastboot firmware packages for the Xiaomi Mi 9 are distributed as multi-gigabyte .tgz archives containing raw partition images (system.img, vendor.img, boot.img, dsp.img, modem.img) written via flash_all.bat and Qualcomm Fastboot protocols without dynamic super partition remapping.

flash_all.bat / images/rawprogram0.xml

Official Xiaomi Mi 9 firmware is distributed as multi-gigabyte .tgz archives. Extract the archive twice using 7-Zip until the folder containing "flash_all.bat" and the raw partition images is visible.

Fastboot Flashing Rule: Always select "clean all" (flash_all.bat) when using Mi Flash Tool on cross-regional hardware to avoid triggering the "This MIUI version can't be installed on this device" lock brick.

Xiaomi Mi 9 Firmware Versions

Official stock firmware downloads for the Xiaomi Mi 9. Verify your hardware model variant before downloading.

Version Region Android Version Size MD5 Download
V12.5.2.0.RFAEUXM (MIUI 12.5) EEA (Europe / UK) Android 11.0 3.29 GB 655e654e8aac214df9e5a247b89dde14 ⬇️ Download

This phone family has 3 additional regional builds and community Xiaomi.eu ROMs. Browse the complete archive on AndroidFirmwareFile.com β†’

Xiaomi Mi 9 β€” Important Notes

The Xiaomi Mi 9 houses a 3300 mAh internal lithium-polymer battery. Writing full MIUI 12.5 system partition images takes approximately 3 to 5 minutes. Confirm that your battery has at least 50% charge before beginning the flashing process to prevent unexpected shutdowns during partition writes.

Troubleshooting Xiaomi Mi 9 Flashing & MIUI Errors

Qualcomm EDL 9008 Authorization Challenge ("Unauthorized account")

When attempting to flash unbricking firmware via Qualcomm EDL 9008 mode (either via test points or deep flash cable), Mi Flash Tool halts with "cannot receive hello packet" or "unauthorized account". The Snapdragon 855 enforces signed firehose authorization. Community technicians recommend recovering the handset via Fastboot mode whenever the bootloader is accessible, or using authorized Xiaomi service account tokens if hardware test point flashing is unavoidable.

Anti-Rollback Trap & Cross-Regional Bootloader Lock ("This MIUI version can't be installed on this device")

Occurs when an owner flashes Global or European (EEA) firmware onto a Chinese domestic variant (M1902F1A) and selects "clean all and lock" (flash_all_lock.bat). Xiaomi's bootloader verifies the motherboard hardware region against the installed system signature upon locking; if mismatched, it refuses to boot and displays this error. Technicians advise always selecting "clean all" (flash_all.bat) to leave the bootloader unlocked on cross-regional installs.

Goodix Optical In-Display Fingerprint Sensor Not Responding

Following custom ROM installations or improper fastboot erase commands, the fingerprint scanner may fail to register prints or prompt "Fingerprint hardware not available". This happens if the /persist partition is formatted or corrupted, erasing factory optical sensor exposure tables. Repair discussions suggest backing up persist before modifying partitions and restoring the persist.img partition from the fastboot images folder using "fastboot flash persist persist.img" followed by hardware recalibration in CIT test mode (*#*#6484#*#*).

For solving common Mi Flash Tool timeout codes, EDL authorization errors, and MIUI recovery issues: Xiaomi & Qualcomm Flashing Error Directory β†’

Frequently Asked Questions β€” Xiaomi Mi 9

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