Installation of MIUI 12 on Xiaomi: official and custom methods

MIUI 12 remains one of the most popular versions of Xiaomi’s proprietary shell, despite the release of newer releases, and features stable work, an optimized interface and support for a wide range of devices – from the flagship Mi 10 to the budget Redmi Note 8. However, the installation process has nuances: official updates through OTA may not be available for older models, and manual firmware requires unlocking the bootloader and accuracy.

In this guide, we will discuss all the current ways to install MIUI 12 – from automatic updates to manually reflashing via Fastboot or Recovery. Particular attention will be paid to preparing the device, choosing the right firmware version (global, Chinese, EEA) and solving typical errors. If your Xiaomi β€œhangs” on the old version or you want to return from MIUI 13/14 – this guide will help you do everything without the risk of β€œbricking” the gadget.

Preparing a smartphone for firmware

Before installing MIUI 12, there are several critical steps to follow. Neglecting them can lead to data loss, firmware failure, or even hard-brick (irreparable damage to the device). Start with backup: use the built-in Settings feature β†’ About Phone β†’ Backup or third-party tools like Mi Mover.

Check the current firmware version in Settings β†’ About Phone β†’ MIUI version. This will help determine whether you can upgrade through OTA or need a full flashing. For example, if you have a MIUI 11, then upgrading to MIUI 12 can go without unlocking the bootloader, but only if you have an official package for your model.

  • πŸ“± Save it. IMEI: Write down or take a picture of the data from *#06# - you will need it when recovering from the reset.
  • πŸ”‹ Battery Charge: Make sure the charge level is not lower 60%. Fastboot firmware can drain the battery on 20-30%.
  • πŸ”Œ Cable and PC: Use the original USB-Xiaomi cable and port USB 2.0 on a computer (port) USB 3.0 can cause data transmission errors).
  • πŸ› οΈ Drivers: Install Mi Flash Tool and Qualcomm or Mediatek drivers depending on your smartphone’s processor.

⚠️ Note: If your device was purchased in China (the C-suffix version in the model, such as the Redmi Note 9 Pro C), the firmware is global. MIUI 12 can block the network. Check compatibility on the forum Xiaomi.eu.

πŸ“Š What version? MIUI You're using it now?
MIUI 12
MIUI 13
MIUI 14
HyperOS
The other one/I don't know

Official Update via OTA

The safest way to install MIUI 12 is to wait for an over-the-air update (OTA), but it’s not available for all devices. Xiaomi has stopped supporting MIUI 12 for most models after 2022, but some smartphones (like the Poco X3 NFC or Redmi Note 9S) can still get security patches on this version.

To check for OTA:

  1. Open Settings β†’ About the phone β†’ System update.
  2. Click on the three dots in the top right corner and select Download the latest version.
  3. If an update is available, keep an eye on the download process (the file weight is usually 1.5-2.5 GB).
  4. After downloading, click Reboot and install.

If OTA-There is no update, but you are sure that there is a model for your model. MIUI 12, try a forced check:

1. Go to Settings β†’ About the phone.


2.Tap 7 times on the line version of MIUI to activate the developer mode.




3. Return to Settings β†’ Additional β†’ For developers and enable OEM Unlock.




4. Re-check the updates.

⚠️ Note: On some devices (e.g., Mi) 9T Pro) Forced verification can reset network settings. Pre-save Wi-Fi hotspots and mobile Internet settings.

πŸ’‘

OTA-Update saves all data and settings, but only works for officially supported models.

Unlocking the bootloader (Bootloader)

If OTA is not available and you want to install MIUI 12 manually, the first thing you need to do is unlock the bootloader. Xiaomi blocks it by default to protect against unauthorized changes. The unlocking process takes up to 72 hours and requires you to link your Mi Account to the device.

Instructions for unlocking:

  1. Link your Mi Account to your phone in Settings β†’ Xiaomi account.
  2. Enable USB Debugging and OEM Unlocking in the developer menu (see previous section).
  3. Download Mi Unlock Tool and log in to the program.
  4. Connect your phone in Fastboot mode (clip Volume Down + Power when the device is off).
  5. In Mi Unlock Tool, press Unlock and wait for confirmation (you may need to try again in 3-7 days).
Model of the deviceSupport for unlockingNotes
Redmi Note 8/8TYes.Requires a bootloader version not newer than V12.0.1.0
Poco F2 ProYes.Unlocking can reset the Widevine L1 to L3
Mi 10 UltraPartially.On Chinese versions (C), unlocking blocks 5G
Redmi 9A/9CNo.The bootloader is locked at the hardware level

Once the bootloader is unlocked, all data on the device will be erased, a process that is irreversible – re-blocking is only possible through the official Xiaomi service.

What if the Mi Unlock Tool can’t see the device?
1. Check that the phone is connected in Fastboot mode (a screen with a rabbit and the words "Fastboot"). 2. Install the drivers manually through Device Manager (select "Android Bootloader Interface"). 3. Try another one. USB-port or cable (exclude) USB-4. Disable the antivirus – it can block the Mi Unlock Tool. 5. If the error is β€œCouldn’t unlock”, wait 72 hours and try again (the counter is reset every time you connect).

Selection of firmware: official vs custom

There are three types of MIUI 12 firmware:

  • πŸ“¦ Official stable: Xiaomi releases for a specific model (e.g, V12.0.1.0.QJWMIXM The Redmi Note 9 Pro is suitable for most users.
  • πŸ§ͺ Official Beta: Test builds with new features but possible bugs.Available via Mi Pilot.
  • πŸ”§ Custom (Xiaomi.eu, LineageOS): Modified firmware with advanced settings, but without official support.

For beginners, we recommend the official stable firmware. It can be downloaded from the sites:

  • Xiaomi official portal (select the Global, EEA or China region).
  • Xiaomi Firmware Updater (archive of all versions)
  • Xiaomi.eu (many custom language builds).

When choosing, pay attention to:

  • Model code: For example, the Redmi Note 8 Pro has the code begonia, and the Mi 9 has the code cepheus.
  • Firmware type: Fastboot (installed via PC) or Recovery (via stock or custom recovery).
  • Android Version: MIUI 12 can run on Android 10 or Android 11 – check compatibility.

πŸ’‘

Use Xiaomi Flashable Firmware Creator to create firmware for Recovery from the Fastboot archive. This makes it easy to install without a PC.

Install MIUI 12 via Fastboot

Fastboot is suitable for β€œclean” firmware installation and is recommended when switching from a heavily outdated version (e.g., MIUI 10).

Step-by-step:

β˜‘οΈ Preparation for firmware through Fastboot

Done: 0 / 4
  1. Unpack the downloaded firmware in a folder (for example, C:\MIUI12).
  2. Run the Mi Flash Tool on behalf of the administrator.
  3. Connect your phone in Fastboot mode (clip Volume Down + Power).
  4. In the program, click Select and specify the path to the folder with the firmware.
  5. Select firmware mode: Clean all (recommended); Clean all and lock (clean + lock) (official firmware only); Save user data (may cause errors).

Flash

If the process is 99% dead or there is an anti-rollback error, it means:

  • You are trying to install an older firmware version than the current one (forbidden by Xiaomi policy).
  • You need to find firmware with the above build number or reset the anti-rollback through EDL-Regime (Authorized Account Required).

πŸ’‘

Clear all removes all data, including internal memory. SIM-map!

Installation through Recovery (TWRP)

Recovery is convenient for custom firmware installation (e.g. Xiaomi.eu) or data loss-free updates β€” TWRP.

Instructions:

  1. Install TWRP for your model (download from the official website and run through Fastboot command: fastboot flash recovery twrp.img fastboot boot twrp.img)
  2. Download the firmware (.zip format) to place on the microSD or internal memory.
  3. Boot to TWRP (click Volume Up + Power).
  4. Make a backup of the current firmware (Backup) β†’ Select sections β†’ Swipe to Backup).
  5. Press Install, select the firmware file and confirm the installation (Swipe to Confirm).
  6. Once completed, run Wipe β†’ Format Data (if a clean installation is required) and restart.

For firmware Xiaomi.eu additionally:

  • Install. disable_force_encrypt.zip (Disables data encryption, otherwise the phone will not boot).
  • If there is no network after firmware, patch it. fix_network.zip for your model.

⚠️ Note: On some devices (e.g. Redmi Note 10 Pro) TWRP It may not work properly with the file system. F2FS. Use OrangeFox Recovery to do this.

Solving typical mistakes

When installing MIUI 12, users are most likely to face the following problems:

Mistake.Reason.Decision
This package is for "begonia" devices; this is a "merlin"The firmware is not suitable for the modelCheck the device code in Fastboot with the fastboot getvar product command
E3004: Preload partition doesn’t existDamaged section of the preloadSwipe the firmware with the Flash preloader checkbox in the Mi Flash Tool
Hanging on the Mi logoConflict of kernel modulesHold Power + Volume Up for 10 Seconds for Forced Reboot
Invalid sparse file format at headerFirmware file damagedPump the firmware, check the MD5 checksum

If the IMEI is missing or the mobile network is not working:

  1. Check if backups are saved in /data/nvram folder.
  2. Restore the IMEI via Maui META (for Mediatek) or QCN (for Qualcomm).
  3. If there is no backup, contact the service center – self-recovery without files can lead to the loss of the network forever.

FAQ: Frequent questions

Can I install MIUI 12 on Xiaomi with HyperOS?
Yes, but only through full flashing with the unlocked bootloader. note that switching from HyperOS (Android 14) to MIUI 12 (Android 10/11) can lead to a loss of features associated with the new hardware (for example, an improved camera or 5G on some models).
How to return stock firmware after custom?
Download the official Fastboot firmware for your model from Xiaomi and run through the Mi Flash Tool in Clean all and lock mode. This will return stock recovery and block the bootloader.
Why does the battery run out quickly after MIUI 12?
This is a typical problem when switching to the old firmware version: Causes: Incompatibility of the core with the new battery (if it was replaced), lack of optimizations for the current battery state, background processes of older versions of MIUI. Solution: Calibrate the battery (discharge to 0% and charge to 100% without interruption) or run a newer version of MIUI.
Where to get firmware for a rare model (for example, Xiaomi Mi CC9 Pro)?
For less common models (especially Chinese ones), look for firmware on XiaomiROM (firmware archive). 4PDA (Russian community); Telegram channels like @xiaomifirmware. Make sure the model code (tucana for Mi CC9 Pro) matches the firmware.
Can I use MIUI 12 without a computer?
Yes, if you already have custom recovery (TWRP) installed, download the.zip firmware directly to your phone, download it to Recovery and install it through Install. For official Fastboot firmware, the computer is mandatory.