Xiaomi phone firmware: official and custom methods with unlocking the bootloader

Xiaomi’s smartphone firmware is a process that can both bring a device back to life and turn it into a β€œbrick” if you approach it without preparation. Unlike the usual update through Settings β†’ Phone β†’ System Update, complete flashing requires unlocking the bootloader, choosing the right version of the software and carefully executing instructions. In this article, we will analyze all the current methods of firmware β€” from official to custom β€” and also tell you how to avoid typical errors, such as a Mi Account block or loss of IMEI.

It’s important to understand: the procedure is different for devices on Qualcomm Snapdragon and MediaTek, as well as models with locked and unlocked bootloader.We’ll look at the universal methods that work on most Xiaomi, Redmi and POCO smartphones (including the Redmi Note 12 Pro+, Xiaomi 13 Ultra and POCO F5). If your model is older than 2019, check compatibility with MIUI 14 or HyperOS – new firmware may not support outdated devices.

1. Firmware Preparation: What to Do Before You Start

Before downloading firmware, make sure that all the preliminary steps are followed, and neglecting them can lead to loss of warranty (if the device is warranty) or software damage that can not always be corrected even in the service center.

First, check the status of your Mi Account. If your phone is tied to your account and you don't remember the password, unlocking the bootloader will become impossible. Second, make sure the device has enough charge of at least 60%. Third, prepare Windows PCs (for methods through Fastboot or Mi Flash Tool), as official Xiaomi utilities do not support macOS or Linux.

  • πŸ”‹ Battery charge: at least 60%, better 80%+ (during the process of scaling, a failure is possible).
  • πŸ” Mi Account: Make sure you remember your username/password and your phone is not blacklisted (check with account.xiaomi.com).
  • πŸ’» Computer: Windows 10/11 with Defender disabled and Qualcomm or MediaTek drivers installed.
  • πŸ“₯ Backup: Save data through Settings β†’ Additionally. β†’ Backup or Mi Cloud Backup.
πŸ“Š What kind of firmware method do you plan to use?
Official (MIUI Updater)
Fastboot (Mi Flash Tool)
Recovery (TWRP)
Brushing Firmware (LineageOS, Pixel Experience)
I don't know.

Pay special attention to the firmware versions. For example, if your Redmi Note 11 Pro+ is running MIUI 13 and you're trying to install HyperOS for Xiaomi 14, the device just won't turn on. Use services like Xiaomi Firmware Updater or the official MIUI website to download the correct build.

πŸ’‘

If you are flashing a device with MediaTek (such as Redmi 10C or POCO M5), install the MTK USB Driver driver and the SP Flash Tool. Mi Flash Tool and QDLoader HS-USB drivers are sufficient for Snapdragon.

2 Unlocking the bootloader: without this firmware is impossible

All Xiaomi smartphones from the factory come with a bootloader locked, a security measure that prevents unofficial software from being installed. To flash the device by any method other than MIUI Updater, the bootloader needs to be unlocked, a process that takes 3 to 7 days due to Xiaomi's verification.

Instructions for unlocking:

  1. Link your phone to your Mi Account in Settings β†’ Xiaomi account.
  2. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  3. Back to Settings β†’ Additionally. β†’ For developers and include OEM-unlocking and debugging USB.
  4. Download Mi Unlock Tool, log in and connect your phone in Fastboot mode (clip Volume Down + Power).
  5. If you see a message saying "Wait 168 hours", wait 7 days and try again.
What if the Mi Unlock Tool can’t see the device?
1. Make sure that Android drivers are installed ADB Interface and Fastboot (you can download it via Android) SDK). 2. Try another one. USB-cable (preferably original). 3. Disable driver signatures in Windows: type in bcdedit command line /set nointegritychecks on and restart the PC.

Once successfully unlocked, the phone will automatically reset to factory settings, and all data will be deleted, so transfer important files to your PC or cloud beforehand. If you fail to unlock, check:

  • πŸ“± Is the phone linked to a Mi Account (in some regions, such as India, unlocking is prohibited).
  • πŸ”Œ Is the phone connected to charging (some models require a network connection during the process).
  • πŸ•’ 168 hours have passed since the first attempt (the timer is reset only after successful unlocking).

3. Official firmware via MIUI Updater (without unlocking)

The safest way to upgrade or reflash Xiaomi is to use the built-in MIUI Updater.This method does not require unlocking the bootloader and is suitable for installing stable or beta versions of MIUI/HyperOS. However, it works only for official firmware and does not allow you to roll back to an older version.

Step-by-step:

  1. Download the firmware for your model from the official website (choose Recovery ROM).
  2. Rename the file to update.zip and transfer it to the root folder of the phone’s internal memory.
  3. Open Settings β†’ About the phone β†’ System update.
  4. Click on the three dots in the upper right corner and select Select the firmware file.
  5. Please specify the path to update.zip and confirm the installation.

If after the reboot the phone is getting stuck on the MI logo, reset via Recovery:

  1. Turn off the device.
  2. Press Volume Up + Power to enter Recovery Mode.
  3. Select Wipe Data β†’ Wipe All Data (control – volume and power buttons).
  4. After resetting, repeat the installation of the firmware.

β˜‘οΈ Check before firmware through Updater

Done: 0 / 5

This method is suitable for:

  • πŸ“± Updates to the new version MIUI/HyperOS.
  • πŸ”„ Restore phone after failure (if device is switched on).
  • πŸ”’ Devices with locked loader.

πŸ’‘

MIUI Updater does not allow custom firmware (like LineageOS) or firmware to be installed on another model, but requires an unlocked bootloader and Fastboot or TWRP method.

4. Firmware via Fastboot (Mi Flash Tool)

Fastboot is the most reliable way to flash Xiaomi if the device is not turned on or requires a complete system reinstallation. It works even on β€œbricks” (devices with damaged firmware), but requires an unlocked bootloader and Windows PC. For firmware you will need an official Fastboot ROM (not to be confused with Recovery ROM!).

Download Fastboot firmware for your model and unpack the archive into a folder without Cyrillic characters (for example, C:\Xiaomi\fastboot_rom). Then:

  1. Install the Mi Flash Tool.
  2. Turn off the phone and put it in Fastboot mode (clip Volume Down + Power).
  3. Connect the device to your PC and start MiFlash.exe.
  4. In the program, click Select and specify the path to the folder with the firmware.
  5. Select firmware mode: Clean All - complete cleaning (recommended when changing the version of MIUI); Clean All and Lock - cleaning + lock bootloader (only for official firmware!); Save User Data - data storage (not always stable).

Flash

If the process ends in error, check:

Mistake.Reason.Decision
Can't receive hello packetProblems with drivers or cableReinstall Qualcomm drivers, try another USB-port (preferably 2.0)
Flash is not doneIncompatible firmwareDownload the correct version of Fastboot ROM for your model
Device is lockedThe bootloader is not unlockedUnlock the bootloader through the Mi Unlock Tool
Anti-rollback checkAttempt to roll back on the old versionSwitch a newer firmware or the same version

πŸ’‘

If the phone does not turn on after firmware through Fastboot, try to go to Recovery (Loudness up). + Power) and run Wipe Data. If that doesn't work, repeat the firmware with Clean All mode selection.

5. Install custom firmware (TWRP + Custom ROM)

Custom firmware like LineageOS, Pixel Experience or ArrowOS allows you to get a clean Android without Xiaomi’s branded bells and whistles, as well as update legacy devices. However, installing them requires an unlocked bootloader, custom recovery (TWRP) and knowledge of the basics of ADB.

Pre-installing warnings:

⚠️ Note: Castom firmware may contain bugs, such as non-functioning NFC or Wi-Fi. Check the forum reviews before installing XDA Developers for your model.

⚠️ Note: Some banking applications (such as Sberbank Online or Tinkoff) may block work on custom firmware due to the lack of Google SafetyNet certification.

Step-by-step:

  1. Download. TWRP for your model from the official website (for example, twrp-3.7.0_12-0-lmi.img for POCO F2 Pro).
  2. Install TWRP via Fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img
  3. In TWRP, run Wipe β†’ Format Data (enter yes for confirmation).
  4. Download custom firmware (like LineageOS) and GApps (if you need Google services).
  5. Transfer files to your phone and install them via TWRP β†’ Install (first firmware, then GApps).
  6. Reset the device.

Popular custom firmware for Xiaomi:

  • πŸ“± LineageOS – pure Android with minimal improvements.
  • 🎨 Pixel Experience – firmware with Google Pixel design and features.
  • ⚑ ArrowOS – Balance between productivity and customization.
  • πŸ”’ Havoc-OS – firmware with advanced privacy settings.

6. Solving errors after firmware

Even if the firmware is successful, there can be problems ranging from no network to a cyclical reboot, and let's look at the typical bugs and how to fix them.

1.The phone does not turn on or hovers on the logo

  • πŸ”„ Try to go to Recovery (Loudness Up). + Powering) and running Wipe Data.
  • πŸ”§ If it doesn’t work, swipe the device again through Fastboot with Clean All selection.
  • πŸ”‹ Check the battery power – sometimes the phone won’t turn on due to deep discharge.

2. no network (IMEI missing or incorrect)

This is a typical problem after you run your firmware through Fastboot or install custom firmware to restore your IMEI:

  1. Download. QCN Rebuilder and original QCN-file.
  2. Restore the IMEI via Diag mode (enter the dial number ##717717##).
  3. Use the Maui META or SN Write Tool to rewrite the IMEI (root rights required).

3.Mi Account blocked after firmware

⚠️ Note: If you flashed a phone with a tied Mi Account and then reset, the device will require a login / password from the previous owner. Without this data, you can unlock the phone only through an official service (you will need a purchase check).

4. The sensors or camera are not working

This is typical of custom firmware.

  • πŸ” Check if your model supports the selected firmware on the forum XDA.
  • πŸ”„ Install another firmware version or kernel (kernel).
  • πŸ“± Get back to the official one. MIUI via Fastboot.

7.How to return the official firmware after custom

If custom firmware is unstable or you want to return the warranty, you can re-installe the official MIUI or HyperOS.

  1. Download Fastboot ROM for your model from the official website.
  2. Unpack the archive and swipe through the Mi Flash Tool with the Clean All and Lock option (this will block the bootloader back).
  3. If the phone doesn’t turn on after firmware, run Wipe Data in Recovery.

Important: After returning to the official firmware:

  • πŸ”’ The bootloader will be blocked again (unlocking will require 7 days of waiting).
  • πŸ“± The phone will return to factory settings (all data will be deleted).
  • πŸ”„ Updates through MIUI Updater will be available again.

πŸ’‘

If you sell the phone after firmware, be sure to return the official MIUI and lock the bootloader.Buyers often check the lock status through fastboot oem device-info (the Device unlocked: false string should be).

FAQ: Frequent questions about Xiaomi firmware

❓ Can I use Xiaomi without a computer?
Yes, but only through MIUI Updater (official firmware) or TWRP (if already installed).
❓ What to do if Mi Unlock Tool says "Couldn't unlock"?
Check: Is the phone linked to a Mi Account (unblocking is forbidden in some regions), has it been 168 hours since the first attempt, has Fastboot drivers installed (try reinstalling them via the Mi Flash Tool). If nothing helps, try using another Mi Account or contact Xiaomi for support.
❓ How to know if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power to log in to Fastboot. Connect the device to your PC and type in the command line: fastboot oem device-info If there is a Device unlocked: true string in the answer, the bootloader is unlocked.
❓ Can you flash Xiaomi on Android 13 if only Android 12 is officially supported?
Yes, but only through custom firmware (like LineageOS 20 or Pixel Experience 13). Xiaomi will not officially release an update for legacy models. Note that some features may not work (like NFC or Widevine L1 for Netflix in HD).
❓ What is Anti-Rollback and why is the firmware not installed?
Anti-Rollback is Xiaomi's protection, which forbids rollbacks on the old firmware version. MIUI older than the one on the phone before, you will get an Anti-rollback check error. MIUI. Use firmware with the same Anti-Rollback number (indicated in the file name, for example, V13.0.4.0.SKHCNXM_20221111.0000.00_12.0_cn_1234567890, where 1234567890 β€” This is the anti-rollback version).