Firmware Xiaomi smartphone on stock (official) version MIUI β a procedure that may be needed in a variety of situations: from recovery after a failure to returning to factory settings after experiments with custom firmware. However, many users face difficulties already at the stage of preparation - they can not unlock the bootloader, choose the right version of the firmware or avoid errors when installing via Fastboot or Recovery.
In this article, we will take a look at the entire process from A to Z, from checking the current firmware version to the final configuration after installation, focusing on unlocking the bootloader (without it, the stock firmware will simply not stand up), choosing between Global, China and the rest of the system. EEA The standard versions and common bugs that interrupt the firmware by 50% or turn the phone into a brick. POCO 2018β2026 issue.
Why would you want to use a stock firmware on Xiaomi?
Stock firmware (official) MIUI Xiaomi's software is not just a factory software, it's a guarantee of stability, security and compatibility with branded services:
- π Recovery after a crash: If the phone is stuck on the logo, not turning on or is running with errors after a failed update.
- π Custom firmware removal: Return to official software after experimenting with LineageOS, Pixel Experience or other builds.
- π± Selling or transferring a phone: Stock firmware ensures that the new owner does not face compatibility issues.
- π Security: Official updates close vulnerabilities that can be exploited by viruses or malicious actors.
- π― Functionality: Some features (such as Mi Pay, Game Turbo or Second Space) only work on stock MIUI.
Stock firmware is not without its drawbacks, however: Global versions often lack some features from China firmware (like App Lock with facial recognition or advanced camera settings), and official updates can come with a delay, especially for low-end Redmi models.
β οΈ Warning: Stockware erases all data on your phone, including photos, contacts and apps, and if you haven't backed up, it won't be possible to recover the information. Also note that unlocking the bootloader resets all security settings (including Find My Device), so unplug your Mi Account before the procedure.
Preparation for firmware: what to do before the start
Unprepared firmware is a direct route to the "bricking" of the phone. To avoid errors, follow all the steps from this section before installing.
1. Check the current version of the firmware
Find out which version MIUI installed on your device:
- Go to Settings β About Phone β MIUI version.
- Remember or write down the full build number (for example, V14.0.5.0.TKLCNXM).
- Check the firmware region (Global, China, EEA, India is critical to choosing the right version.
If the phone does not turn on, you can find out the model and version by sticker under the lid (for devices with a removable battery) or through Fastboot mode (fastboot getvar product command).
Data backup
As mentioned, the firmware erases all data, and use these methods to store information.
- π± Mi Cloud: sync contacts, notes, photos and SMS (If the phone still works).
- πΎ Local Copy: Copy files to your PC via MTP Or use apps like Swift Backup (requires root).
- π§ TWRP-Backup: If you have custom recap installed, make a full backup section /data.
π‘
If the phone is not turned on but is detected by the computer in Fastboot mode, try extracting data using the Xiaomi Flash Tool (the "Save Data" option).
3. Choosing the Right Firmware
Official firmware for Xiaomi is divided into several types:
| Type of firmware | Description | For which regions | Features |
|---|---|---|---|
| Global Stable | Official stable version | The whole world (except China) | Google Services Support, No Chinese Apps |
| China Stable | Chinese stable version | Only for China. | Without Google Services, more features MIUI |
| EEA Stable | European version | EU countries | GDPR complies with Chinese services |
| Developer (Beta) | Test version | For developers | Frequent updates, possible bugs |
How do you choose the right version?
- π If you bought your phone in Europe, take Global Stable or EEA Stable.
- π¨π³ For devices from China (for example, Xiaomi 13 Ultra) β only China Stable (but you will have to install Google Services manually).
- π§ Developer for experimentation, but not recommended for daily use.
Download the firmware only from official sources:
- Official website MIUI (for Global/EEA).
- MIUI ROM (alternative source with verified references).
- Xiaomi Firmware Updater (for developers)
β οΈ Note: Firmware from torrent trackers or obscure forums may contain malware or be modified (e.g., with pre-installed advertising apps (MD5 or SHA-256) download.
Unlock the bootloader: without this, the stock firmware will not stand up
The bootloader on all Xiaomi smartphones is locked by default, a security measure that prevents unofficial software from being installed. To flash the stock firmware (even the official one!), the bootloader must be unlocked.
The unlocking process consists of three stages:
- Linking your Mi Account to your device.
- Getting permission to unlock through Mi Unlock Tool.
- Directly unlock the loader.
Step 1: Linking your Mi Account
If you haven't done it yet:
- Register your Mi Account at account.xiaomi.com.
- On your phone, go to Settings. β Xiaomi account and log in to the system.
- Activate Find My Device (this is a must-have for unlocking).
- Connect your phone to the internet via a mobile network (Wi-Fi may not work!).
Step 2: Installation of Mi Unlock Tool
Download the official unlock tool from the site en.miui.com/unlock (Registration required. Install the program on a Windows PC 7/10/11 (on macOS/Linux It's not working).
Then:
- Turn off the phone.
- Hold the Loud down. + Power to enter Fastboot mode.
- Connect your phone to your PC through the original USB-cable.
- Open the Mi Unlock Tool and log in to your Mi Account.
Step 3: Unlocking the bootloader
In the program window, click Unlock. If done correctly, a countdown timer will appear (usually 168 hours for new accounts or 72 hours for old ones).
After the timer is completed:
- Go back to Fastboot mode.
- Connect your phone to your PC and start the Mi Unlock Tool.
- Press Unlock β the bootloader will be unlocked.
What if the Mi Unlock Tool canβt see the device?
β οΈ Warning: Unlocking the bootloader resets all data on the phone, even if you don't install the firmware! Also, after unlocking some features (such as Mi Pay or Face Unlock) may stop working on China firmware.
π‘
Unlocking the bootloader is a mandatory step for stock firmware MIUI. Without it, the phone will not accept the official firmware, even if it is downloaded from the Xiaomi website.
Firmware methods for stocking MIUI: Fastboot vs Recovery
There are two main methods of installing stock firmware on Xiaomi:
- π§ Fastboot is suitable for βbrickβ phones or when changing the firmware region (for example, from China to Global).
- π Recovery is easier, but only works if the phone is turned on and the bootloader is unlocked.
Which method to choose?
| Criteria | Fastboot | Recovery |
|---|---|---|
| Phone's off. | β It fits. | β Not suitable. |
| Change of the firmware region | β It fits. | β Not suitable. |
| Data retention | β Erase everything. | β οΈ Maybe not if you choose Wipe Data) |
| Difficulty | ββββ (Requires PC and team knowledge) | ββ (It can be done with a phone) |
Method 1: Fastboot Firmware (recommended)
This method is more reliable, as it flashes all partitions (including boot, recovery and modem).
- Changes in the firmware region (for example, from China to Global).
- Recovery after "bricking."
- Install firmware on a phone that does not turn on.
What you need:
- Windows PC.
- Original. USB-cable.
- Archive with firmware in.tgz format (downloaded from the official website).
- The Mi Flash Tool (you can download it here)
Step-by-step:
βοΈ Firmware through Fastboot
If the Mi Flash Tool is 0x80070002 or 0x80070005, try:
- Launch the program on behalf of the administrator.
- Disable the antivirus (it can block drivers).
- Use the other USB-port (USB 2.0 instead USB 3.0).
Method 2: Firmware through Recovery
This is easier, but it is not suitable for changing the firmware region (for example, from China to Global).
- The phone is turned on and the loader is unlocked.
- You're running the same version. MIUI (Update the Global Stable to a new build).
- You donβt want to lose data (although the risk remains!).
Instructions:
- Download the firmware in.zip format (not.tgz!).
- Rename the file to update.zip and place it in the root of internal memory.
- Turn off the phone.
- Press Volume Up + Power to enter Recovery.
- Select Install update.zip to System (control β volume buttons, choice β power button).
- Confirm the installation and wait for completion.
β οΈ Note: If after the firmware through Recovery phone is stuck on the logo MI, So the firmware is not suitable for your region, and then you have to use the Fastboot method with a complete data cleanup.
Common Firmware Mistakes and How to Avoid Them
Even when following the instructions, users often encounter errors, and here are the most common problems and solutions:
1. "This device is locked" error in Fastboot
Reason: The bootloader is not unlocked.
Decision:
- Go through the unlocking procedure (see section above).
- If unlocking has already been done, but the error remains β check if the bootloader is blocked again (for example, after updating via the browser). OTA).
2. "Invalid image" or "Flash is not allowed" error
Reason: Wrong firmware version (for example, trying to flash Global on a phone with China firmware without completely cleaning).
Decision:
- Use the Fastboot method with the Clean All option.
- Check that the downloaded firmware is suitable for your model (for example, the Redmi Note 11 Pro has veux versions for the global market and viva versions for India).
3.The phone is stuck on the MI logo after firmware
Reason: Incompatibility of the firmware with the region or damage to the data partition.
Decision:
- Log in to Recovery and run Wipe Data.
- If it doesnβt work, go through Fastboot with the Clean All and Lock option (this will lock the bootloader back, but bring the phone back to life).
4. "Anti-rollback check" error
Reason: Trying to flash an older version MIUI, Xiaomi is blocking rollbacks to older versions due to changes in drivers.
Decision:
- Find a newer firmware (check the build date on the site) MIUI).
- If you want the old version, use the Xiaomi Anti-Rollback Bypass Tool (risky!).
What if the phone doesnβt turn on after the firmware?
What to do after the firmware: the initial setting
Once the firmware is successful, the phone will start as new.
1.Initial setting
Follow the instructions on the screen:
- Choose a language and region.
- Connect to Wi-Fi (donβt use mobile data at this stage!)
- Skip the Mi Account (unless you want to link your account right away).
- Set up Find My Device (recommended for security).
2. Verification of the firmware version
Make sure the scoring is installed correctly:
- Go to Settings β About Phone β MIUI version.
- Check that the build number matches what you downloaded.
- If the version is not the same, repeat the firmware.
3. Update to the latest version
After installing the stock firmware, it is recommended to upgrade to the latest stable version through OTA:
- Go to Settings. β Updating the system.
- Click Check for updates.
- If you have an update, download it and install it.
4. Data recovery
If you have made a backup copy, restore the data:
- π± From Mi Cloud: Sign in to your account and sync contacts, notes, photos.
- πΎ From local backup: copy files back to your phone via MTP.
- π§ Isa TWRP-Backup: If you have custom recaveri, restore the section /data (But it can cause errors if the firmware changes).
5. Checking the performance
Make sure everything works correctly:
- πΆ Network: Check the mobile Internet and Wi-Fi.
- πΈ Camera: Take a test shot.
- π Sound: Test the speakers and microphone.
- π Charging: Connect the charger and check the indication.
- π Sensors: check the operation of the proximity sensor, gyroscope, fingerprint scanner.
β οΈ Note: If some functions have stopped working after firmware (for example, NFC or IR-The blaster, you probably didn't install the firmware for your region, so you'll have to re-flash it with the right version.