Xiaomi

Xiaomi 12 (cupid): Mi Flash Tool Flashing Guide

Complete firmware flashing guide for the Xiaomi 12 using Mi Flash Tool. Covers prerequisites, firmware package setup, and step-by-step instructions.

Xiaomi 12 December 2021 (China), March 2022 (Global)
Models
2201123G (Global / Europe / UK), 2201123C (China)
CPU
Octa-core (1x 3.00 GHz Cortex-X2 & 3x 2.50 GHz Cortex-A710 & 4x 1.80 GHz Cortex-A510)
GPU
Adreno 730
RAM
8 GB / 12 GB LPDDR5
Storage
128 GB / 256 GB UFS 3.1
Display
6.28" FHD+ 120Hz AMOLED, 2400x1080 pixels, 1100 nits peak, Gorilla Glass Victus
Battery
4500 mAh Li-Po, 67W wired, 50W wireless, 10W reverse wireless
OS
Android 15.0 (HyperOS 3.0), Launched on Android 12 (MIUI 13)
Connectivity
5G Dual-SIM (nano-SIM in Global/China), Wi-Fi 6, Bluetooth 5.2, USB Type-C 2.0, NFC, IR Blaster
Colors: Black Blue Purple Green

About the Xiaomi 12

The Xiaomi 12 (hardware codename cupid, model numbers 2201123G Global/EEA and 2201123C China) was released in December 2021 (China), March 2022 (Global), built on the Qualcomm SM8450 Snapdragon 8 Gen 1 (4nm) platform with an Adreno 730 GPU, a 6.28-inch FHD+ 120Hz AMOLED display, triple 50 MP cameras with Sony IMX766 and OIS, and a 4,500 mAh battery supporting 67W fast charging.

This flashing guide walks you through installing official stock Fastboot firmware on the Xiaomi 12 using Xiaomi Mi Flash Tool. Whether you need to fix a phone stuck in a fastboot loop, recover from an update crash, or return to clean factory HyperOS software, follow these verified instructions to restore your device.

Which Flash Mode Should You Use?

Custom Recovery (OrangeFox / TWRP)

Custom recovery environment for flashing Xiaomi.eu custom ROMs, Magisk root ZIPs, and creating full Nandroid backups.

How to enter
Boot into Fastboot mode and run "fastboot boot OrangeFox-R12.0_A16-Unofficial-cupid.img" or the target TWRP img, then select Advanced > Flash Current TWRP.
Requires
Unlocked bootloader + Fastboot command terminal + recovery image

Stock Recovery / Local Update

Official on-device recovery update method for installing official Recovery OTA ZIP packages without wiping personal data.

How to enter
Turn off phone completely. Press and hold Volume Up + Power together until the Mi recovery menu appears on screen.
Requires
Stock recovery, locked or unlocked bootloader, official recovery ZIP

Essential Pre-Flash Checklist for Xiaomi 12

1
Windows PC & Platform Tools

A 64-bit Windows 10/11 computer with updated Qualcomm USB drivers and Android SDK Platform Tools (v35+).

2
Unlocked Bootloader

An officially unlocked bootloader via the Xiaomi Mi Unlock utility is mandatory for Fastboot partition flashing.

3
50%+ Battery Capacity

Ensure the 4,500 mAh battery holds at least 50% charge to prevent power loss during 6GB+ super partition writing.

4
Certified USB Type-C Cable

Use an authentic data cable connected directly to a rear motherboard USB port to avoid transmission interruptions.

5-Step Xiaomi 12 Mi Flash & Fastboot Walkthrough

A condensed step-by-step summary specific to the Xiaomi 12. Follow the full Mi Flash Tool guide for screenshots, an interactive progress checklist, and complete troubleshooting.

  1. Verify cupid hardware codename via Fastboot ("fastboot getvar product")
  2. Unlock bootloader with authorized Xiaomi Mi Unlock utility
  3. Decompress Fastboot package cupid_eea_global_images_OS3.0.3.0.VLCEUXM twice
  4. Configure Mi Flash Tool with "clean all" (flash_all.bat)
  5. Flash firmware and monitor fastbootd super.img chunk writing

Fastboot Script Architecture & Dynamic Super Partitions

Fastboot firmware packages for the Xiaomi 12 unpack into an images folder containing raw partition binaries alongside automated flashing scripts: flash_all.bat (clean flash), flash_all_except_storage.bat (preserve user data), and flash_all_lock.bat (clean flash and relock bootloader). Selecting flash_all.bat ensures complete partition formatting across internal storage.

flash_all.bat

Official Fastboot images for the Xiaomi 12 include automated command scripts for different repair scenarios. Understanding these scripts ensures you select the correct operation in Mi Flash Tool.

Never select flash_all_lock.bat when flashing cross-regional firmware (for example, flashing European EEA firmware onto a Chinese 2201123C handset), as relocking the bootloader against mismatched regional root keys causes an unrecoverable brick.

Verified Xiaomi 12 Stock & Custom ROM Downloads

Below is the verified factory Fastboot image for the Xiaomi 12 European and China editions, alongside the official Xiaomi.eu custom ROM. For additional regional packages, recovery files, and TWRP builds, visit the master archive.

Version Region Android Version Size MD5 Download
OS3.0.3.0.VLCEUXM (HyperOS 3.0) Europe / EEA (EU) β€” 2201123G Android 15.0 6.41 GB 53090c2ad36cddad476477c22a536f28 ⬇️ Download
OS3.0.3.0.VLCCNXM (HyperOS 3.0) China (CN) β€” 2201123C Android 15.0 7.17 GB 4cfca91ed0f4132374462e5f6b211745 ⬇️ Download
OS2.0.213.0.VLCCNXM (HyperOS 2.0) Universal / Multilingual Android 15.0 5.30 GB β€” ⬇️ Download

Need additional regional builds, older updates, or recovery packages? Browse the full Xiaomi 12 archive on AndroidFirmwareFile.com β†’

Snapdragon 8 Gen 1 Partition & Flashing Architecture

The Qualcomm Snapdragon 8 Gen 1 platform utilizes Google Virtual A/B partition architecture with dynamic partitions (super.img). Flashing begins in standard bootloader Fastboot mode and automatically transitions into userspace fastbootd to write dynamic logical partitions (system, system_ext, product, vendor, odm). When installing cupid_eea_global_images_OS3.0.3.0.VLCEUXM_20260520.0000.00_15.0_eea_53090c2ad3.tgz, ensure your USB connection remains undisturbed throughout the writing process.

Troubleshooting Xiaomi 12 Flashing & Fastbootd Errors

Fastbootd Super Partition Write Failure: "FAILED (remote: 'Error flashing partition : super')"

On the Snapdragon 8 Gen 1 platform, the dynamic super partition measures over 6 GB and writes in multiple sparse chunks. The device automatically switches from bootloader Fastboot into userspace fastbootd mode to handle dynamic partition logic. If Windows delays USB re-detection or port power is interrupted, the write operation halts. Connect the handset to a rear motherboard USB port, run Mi Flash Tool as Administrator, and avoid moving the cable during fastbootd handshakes.

AVB 2.0 Boot Verification Rejection: "FAILED (remote: 'Failed to load/authenticate boot image: Device Error')"

Because the Xiaomi 12 integrates recovery ramdisks into the kernel boot image, modifying boot.img or flashing custom kernels triggers Android Verified Boot 2.0 integrity checks. To prevent boot rejection, flash an empty vbmeta image with verification disabled using "fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img" before flashing custom boot or recovery ramdisks.

Anti-Rollback (ARB) Protection efuse Trap: "The system has been destroyed / dm-verity corruption"

Attempting to downgrade from HyperOS 3.0 (Android 15.0) back to early Android 12 MIUI 13 releases triggers Qualcomm hardware efuse mismatch protection. Additionally, selecting "clean all and lock" (flash_all_lock.bat) when flashing cross-regional firmware locks the bootloader against mismatched cryptographic signatures, causing an immediate brick. Always flash matching or newer builds and strictly select "clean all" (flash_all.bat).

Sensor Calibration & Camera Persist Protection: "Broken optical fingerprint, gyroscope, or camera autofocus after flashing"

The hardware persist partition contains factory baseline calibration files for the under-display optical fingerprint scanner and 50 MP Sony IMX766 camera sensor. Official Fastboot flashing with flash_all.bat protects the persist partition. If persist is accidentally erased or damaged during custom partition modifications, optical fingerprint enrollment will fail, requiring a clean flash of stock persist.img followed by recalibration in the CIT hardware diagnostic menu (*#*#6484#*#*).

Encountering issues during flashing? Review these verified workshop troubleshooting notes for the Xiaomi 12. Troubleshooting & Common Errors β†’

Xiaomi 12 Flashing & Custom Recovery Workshop 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