Xiaomi smartphones have long gained popularity due to the excellent value for money, as well as wide customization options. Many users are faced with the desire to update the operating system before the official release date or want to change the region of the device to get a global version of MIUI or a new HyperOS. The process of replacing the software opens up access to hidden functions, but requires care and accurate follow-up instructions to avoid turning the gadget into a “brick”.
Before you start taking action, you need to be clear about the risks you are taking. Installing custom or regional firmware is an interference with the system partition of memory, which can lead to loss of warranty if the device is in active use. However, for enthusiasts, this is the only way to gain full control of the Android shell, remove preinstalled advertising software and speed up the operation of the device.
In this guide, we’ll take a look at all the preparation steps, tools and steps needed to make a successful flash. Whether you have a Redmi Note, Poco or a flagship Mi, the basics remain similar, although the nuances may vary depending on the CPU and bootloader version installed.
Preparation of the device and collection of necessary tools
The first step is to carefully prepare the workplace and the smartphone itself. You will need a computer running Windows, as most of the utilities from Xiaomi are optimized for this platform. Also make sure that the USB cable is serviceable and capable of transmitting data, not only charging the battery, since unstable connection is the main cause of errors when writing files.
Make sure to back up all your important data. In the process of flashing, your internal memory will be completely cleared, and you won't be able to recover photos or contacts without a backup. Use cloud services or copy files directly to your PC's hard drive.
- 🔋 Charge your smartphone to a minimum 60-70%, The process is not interrupted by battery failure at a critical moment.
- 💾 Download the firmware image corresponding to your model (code name of the device can be found in the settings).
- 🔌 Install the drivers. ADB Fastboot and Qualcomm or MediaTek drivers depending on the processor.
- 🔐 Link your Mi Account to your device and enable debugging USB developer menu.
If you are planning to move from the Chinese version to the global version, it often requires an intermediate step or a complete data cleanup. Cross-region flashing is sometimes blocked by the server, so it is important to check the status of the account.
💡
Use an original cable from the kit or a certified high-quality analogue. Cheap cables often can't withstand long-term transmission of large amounts of data, leading to CRC errors when checking the integrity of files.
Unlocking the bootloader: a critical stage
Most modern Xiaomi smartphones come with a locked bootloader, a security measure that prevents you from installing modified partitions. To install your firmware, you must unblock officially through the Mi Unlock service.
The process is not instantaneous: after submitting an application in the application, you will have to wait from 7 to 168 hours (usually 7 days), during which time you can not log out of your account on your device and reset your settings. If you violate these conditions, the timer will reset and the wait will begin again.
⚠️ Note: Once the bootloader is unlocked, Find the Device may not work properly, and some banking apps and Google Pay (Wallet) may stop working due to a security breach.
To start, go to the settings, select Advanced Settings, and find Developer's. Activate the Unlock bootloader switch and link your account. Then turn off your phone, press down and power buttons to enter Fastboot mode, connect the cable to your PC, and launch the Mi Unlock Tool.
Recovery mode: installing firmware without a computer
The easiest and safest way to update or modify software is to use the built-in Recovery mode, which does not require a computer connection or complex commands, but only works with official zip archives that have the correct digital signature.
To start, download the firmware file in.zip format. Importantly, only full versions of firmware labeled as Recovery ROM are suitable for Recovery mode. Files intended for Fastboot (usually in.tgz format) will not work here.
Once you download the file, rename it to update.zip and move it to the root folder of your smartphone’s internal memory. Next, go to the System Update menu, click three dots in the corner and select “Select a firmware file.” Specify the path to your archive and click the installation button.
If the system gives an error called “Can’t verify update”, it means that you are trying to install the version with a different region or an older version on top of the new one, in which case you will need to completely clean the data or use Fastboot mode.
What to do if the installation button is inactive?
Fastboot mode: professional firmware through PC
Fastboot mode provides deep access to the device’s memory and allows you to perform any file system operations, regardless of regional restrictions. To work in this mode, you will need the Mi Flash Tool utility and an unpacked firmware archive (.tgz format).
The process begins with the transfer of the smartphone to Fastboot mode (clamping the volume button when the device is turned off and the cable is connected). In the Windows Device Manager, the Android Bootloader Interface should appear in the section “USB controller devices”.
Launch the Mi Flash Tool on behalf of the administrator. Press the "Select" button and specify the folder with the unpacked firmware. Make sure there are no Cyrillic characters or spaces on the way to the folder, otherwise the program may not see the files.
| Parameter | Description | Recommendation |
|---|---|---|
| Flash all | Complete cleaning and firmware | Used in changing the region |
| Flash all except data | Firmware without data cleaning | Only for updates within the region |
| Flash all except storage | Saving user files | Risky, possible mistakes |
Select the firmware method at the bottom of the window. To switch between regions (e.g. China to Global), be sure to choose the Clean all option. After selecting, click Flash and wait for the process to complete, which usually takes 200 to 600 seconds.
☑️ Checking before Fastboot firmware
Solving Frequent Firmware Errors and Problems
Even with strict adherence to the instructions, there can be unexpected situations. One of the most common errors is Error 1: Missmatching image and device. It occurs when you try to flash a device whose model does not match the firmware file name. Always double-check the code name (eg, ginkgo, raphael, vayu).
Another problem is logo getting stuck (Bootloop). If the phone restarts endlessly after firmware, try running Wipe Data via Recovery. If that doesn't help, the boot partition may be damaged and you'll need to reflash in Fastboot mode with a full cleanup.
⚠️ Note: The Mi Flash Tool’s Not enough storage space error often means you’re trying to flash a firmware that’s larger than the amount of free space in the system partition, or using the wrong script for your memory version (e.g., 64GB instead of 128GB).
Users also often experience loss of IMEI and serial number after flashing. To avoid this, never select the option "Flash all" unless the instructions indicate otherwise. Always use options that save the persist and modem partition where the modem calibration data is stored.
💡
90% of firmware errors are due to inattention to model and version compatibility or poor quality use. USB-cable.