Introduction: Why you need a full firmware and how it differs from OTA
Installing full firmware on Xiaomi is a radical way to upgrade or restore the system when standard methods (e.g., standard methods) are used, OTA-Unlike incremental updates, which only download modified files, full firmware rewrites the entire operating system, including the kernel, drivers and preinstalled applications:
- stuck in a reboot cycle (bootloop);
Not activated after an unsuccessful update;
Infected with viruses that are not removed by standard methods;
Requires a downgrade to an older version of MIUI;
- Needs to switch to global / Chinese / European firmware.
However, the process of installing full firmware comes with risks, from data loss to complete βbrickingβ of the device if the wrong version of the software is selected or the sequence of actions is broken. For example, firmware for the Redmi Note 10 Pro on the POCO X3 Pro will lead to the failure of the camera module and sensors. So before you start, be sure to check the compatibility of files with your model.
In this guide, we will discuss two main installation methods: Fastboot (for deep recovery) and Recovery (for upgrades without unlocking the bootloader), and you will learn how to avoid errors like anti-rollback or invalid image, which often occur when working with Xiaomi firmware.
Preparation for firmware: unlocking the bootloader and backup
Before installing full firmware, two critical steps must be taken: unlock the Bootloader (if it is locked) and back up the data. Without unlocking, you will not be able to flash the device through Fastboot, and without a backup, you risk losing photos, contacts, and settings.
To check the status of the bootloader, turn off the smartphone and press Volume down + Power. If you see this device is locked, the bootloader is locked.
- π± Download the official Mi Unlock Tool app from Xiaomi website.
- π Link your Mi Account to your device in settings (Settings) β Xiaomi account β Mi Unlock status).
- β³ Wait 7 days (Xiaomiβs mandatory requirement for new accounts).
- π Connect your phone in Fastboot mode to your PC and follow the instructions in the Mi Unlock Tool.
β οΈ Attention: Unlocking the bootloader resets all data on the device! Also, after this procedure, Google Pay, Widevine services may stop working L1 (no HD Netflix and Find My Device.
For backup, use:
- π Built-in Settings function β The phone. β Backup (saves applications and settings).
- π₯οΈ Mi programme PC Suite for copying media files and contacts.
- βοΈ Google Drive, Mi Cloud for photos and documents.
Selection of firmware: stable vs. developer, global vs. Chinese
Before downloading the firmware, decide on its type. Xiaomi offers several options:
| Type of firmware | Description | Pluses | Cons |
|---|---|---|---|
| Stable (Stable) | The official version with a minimum number of bugs. | Reliability, rare updates. | No new features, slow error correction. |
| Developer (Developer) | Weekly builds with the latest features. | New features, quick patches. | There may be bugs, less stability. |
| Global (Global) | For the international market, with Google services. | GMS support, many languages. | Some of the functions for China may be missing. |
| Chinese (China) | Original firmware without Google. | More optimizations, new features sooner. | No Play Market, problems with some apps. |
| EEA (Europe) | A global version for Europe. | GDPR compliance, all Google services. | There may be a lack of support for some regions. |
Download the firmware only from official sources:
- π Official website MIUI (Choose your model manually!).
- π§ Xiaomi Firmware Updater (archive of all versions).
- π₯ XDA Developers (Castom and Modified Builds).
β οΈ Note: Installing firmware with a lower version of Android (downgrade) may result in activation of anti-rollback protection. K40 work MIUI 14 (Android 13) and you're trying to flash MIUI 12 (Android 11), the device is locked! Check version compatibility on this site.
The Fastboot firmware file has an extension.tgz or.zip (the.img file folder is inside). For Recovery, download the file marked recovery in the title (usually.zip).
π‘
If you are switching from Chinese firmware to global, you may need to manually install Google services through Google Installer after installation (download to APKMirror).
Install firmware via Fastboot (full reset)
Fastboot is suitable for deep system recovery when the device is not turned on or requires a complete flashing. ADB/Fastboot original USB-cable (donβt use cheap cables β they can interrupt data transmission!).
Step-by-step:
- Download and unpack the firmware. The file must have a folder structure with boot.img, system.img, etc. files.
- Install drivers. For Windows, download the Android SDK Platform-Tools or use the Mi Flash Tool.
- Turn the phone into Fastboot mode. Turn off the device, press Volume down + Power until the hare appears in the eardress cap.
- Connect to your PC and check the connection. Type in the command line: fastboot devices should display the serial number of the device.
- Run the firmware. For the Mi Flash Tool: Select the firmware folder. Specify clean all or clean all and lock. + Press Flash and wait for completion (10-20 minutes).
For manual firmware through the command line:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash dtbo dtbo.img
fastboot rebootβοΈ Preparation for firmware through Fastboot
β οΈ Note: If the firmware process is interrupted (for example, due to a shutdown) USB-And if you're using a cable, you can turn it into a brick, and then you can just flash it through the wire. EDL-Mode (requires an authorized Xiaomi account and a special cable).
Once the firmware is successfully installed, the phone will automatically restart. The first turn on can take up to 10 minutes - don't interrupt! If the screen has been getting stuck on the MI logo for longer than 15 minutes, repeat the firmware or check the file compatibility.
Install firmware through Recovery (without data loss)
Recovery is simpler and safer, as it does not require unlocking the bootloader and saves user data (unless a full reset is selected), but it is only suitable for updating the current version of MIUI, not for a radical change in firmware.
Instructions:
- Download the firmware for Recovery. The file should be called something like that: miui_BLOCKNAME_Global_V14.0.1.0.TKWMIXM_1234567890_12.0.zip.
- Rename the file. For convenience, rename it to update.zip and place it at the root of internal memory.
- Go to Recovery. Turn off your phone, press Volume Up + Power before the menu comes up.
- Select a language and clear the cache. Go to Wipe & Reset β Wipe Cache (don't choose Wipe All Data if you don't want to lose data!).
- Install the firmware. Select Install update.zip to System and confirm the action. It takes 5-10 minutes.
If the Recovery menu does not include Install update.zip, you have a custom version of TWRP installed.
- Choose Install.
- Please specify the path to update.zip.
- Swipe for confirmation.
- After installation, run Wipe β Dalvik / ART Cache.
What if Recovery doesnβt see the update.zip file?
Once completed, the phone will restart. If the update is successful, you will see the new version of MIUI in the settings (Settings β About Phone β MIUI Version). If you have an error E: Footer is wrong or E: Signature verification failed, then the firmware file is corrupted or not intended for your model.
Common mistakes and their solutions
Even with the correct following of the instructions, errors can occur, and here are the most common ones and ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| This package is for "xxx" devices; this is a "yyy". | The firmware is not suitable for your model. | Download the correct version from the official website. |
| Anti-rollback check fail | Downgrade attempt on an older version of MIUI. | Sweep only the permitted version (check on antirollbacks.xiaomi.eu). |
| Fastboot: error: Failed to boot into fastbootd | Problems with drivers or cable. | Reinstall the drivers, try another one. USB-port. |
| E: Unknown command [log] in Recovery | A damaged Recovery menu. | Install custom Recovery (TWRP) or scroll through Fastboot. |
| The phone does not turn on after the firmware | Incompatible firmware or interrupted process. | Repeat the firmware through Fastboot with a full reset (clean all). |
If the IMEI is missing or the network is not working:
- Check that the firmware is suitable for your model and region.
- Restore the IMEI via the Engineering Menu (#4636##) or the SN Write Tool (requires authorization).
- If you have a problem with the network, reflash the modem module via Fastboot: fastboot flash modem NON-HLOS.bin (the file NON-HLOS.bin must be in the firmware folder).
π‘
If the phone doesn't turn on after firmware, don't panic: in 90% of cases it can be restored by re-running through Fastboot. The main thing is not to try to turn on the device repeatedly so as not to drain the battery.
Custom ROM firmware: TWRP and Magisk
If standard MIUI firmware doesnβt suit you, you can install custom firmware, such as LineageOS, Pixel Experience or ArrowOS.
- Install TWRP Recovery, download the version. TWRP For your model from the official website and scroll through Fastboot: fastboot flash recovery twrp-3.7.0_9-0-miatoll.img
- Backup via TWRP. From the TWRP menu, select Backup and save the Boot, System, Data sections.
- Swipe custom firmware. Download the.zip firmware file and GApps (if you need Google services), then select Install in TWRP β specify the firmware file β add GApps β swipe for confirmation.
- Install Magisk (optional). For root rights, download Magisk and run through TWRP after installing the firmware.
Recovery after a failed firmware
If something goes wrong and the phone doesn't turn on or gets stuck on the logo, don't despair. In most cases, the device can be restored. Here's the algorithm for doing this:
- Check the charging response. Connect your phone to charging for 30 minutes. If the charging indicator is on, the battery is fine.
- Try logging in to Fastboot/Recovery. Click Volume Down + Power (Fastboot) or Volume Up + Power (Recovery).
- Fastboot. Download the full firmware for your model and repeat the process with a complete reset (clean all).
- Use it. EDL-If the phone doesn't respond to any combinations, you'll need to EDL-Mi Flash Pro cable and program (requires authorization from Xiaomi).
If none of these methods worked, contact Xiaomi Service Center. In some cases (for example, if an eMMC chip is damaged), recovery is possible only with soldering equipment.
π‘
If the phone is not detected by the computer in Fastboot mode, try connecting it to another one. USB-port (preferably) USB 2.0 on the back of your PC. Also disable the antivirus, it can block drivers.