Xiaomi Mi 5s firmware: a complete recovery guide

Xiaomi Mi 5s is a legendary device that is still relevant for many users due to its stylish body and performance. However, over time, the software stops receiving official updates, and accumulated system errors can slow down the device. In such situations, the only right solution is a complete reinstallation of the operating system, which allows you to return the gadget to its former speed and stability.

The process of flashing Android on this model has its own nuances related to the features of the Snapdragon processor and the protection of the bootloader. You have to choose between a clean installation through the computer or updating β€œover the air” through the recovery menu, the right approach to ensure a successful result without losing important data or, in the worst case, turning the phone into a β€œbrick”.

In this guide, we will take a look at all the available software installation methods, tools and precautions you need, how to prepare your device, where to download verified files, and what to do if the process goes wrong. Proper training is 90% of the success of the entire operation, so you can not ignore the preparatory stage.

Preparation of the device and necessary tools

Before you start any manipulations with the system partition, you need to make sure that you have all the components at hand. 5s, fit USB-cable (preferably original or high-quality) and a Windows computer.It is also critical to charge the device battery to at least 60%, as a sudden power outage during data recording can lead to fatal consequences.

You need to install Qualcomm and ADB/Fastboot drivers on your computer, without which the system will not be able to properly interact with the phone in bootloader mode. Often the drivers are installed automatically along with the official Mi Flash Tool utility, but in some cases they have to be installed manually through Device Manager.

Make sure to back up all important data. Photos, contacts and messages will be deleted during a clean installation process. Use Google's cloud services or the built-in MIUI sync feature to save information.

β˜‘οΈ Firmware readiness

Done: 0 / 5

Selection of firmware type: Global, China or Custom

The market for Xiaomi shells is huge, and it is important to understand the differences between them: the official versions are divided into Global ROM (the world version with multilingual and Google services) and China ROM (the Chinese version, often without Russian language and with extra software).

There are custom firmware, such as LineageOS or Pixel Experience, which allows you to get a clean Android without MIUI shells, which can significantly speed up the old hardware, but installing such systems requires an unlocked bootloader and the presence of Root superuser rights, which complicates the process and can disrupt banking applications.

What is the difference between Recovery and Fastboot firmware?
Recovery firmware (.zip) is installed via the recovery menu of the phone itself, often saving user data. Fastboot firmware (.tgz) is installed through the computer in a special mode, completely clearing all memory partitions and changing the region of the device.

When choosing a version, pay attention to the file type. You need recovery.zip archive for manual installation through the recovery menu, and fastboot.tgz for your computer. Don't confuse them, since file formatting is fundamentally different.

Method 1: Update via Recovery (without PC)

This is suitable if your Xiaomi Mi 5s is turned on and you want to simply upgrade the MIUI version or switch from China to Global (subject to unlocked bootloader). Download the recovery.zip firmware file and place it in the root of internal memory or on a microSD card.

Then go to the update menu. To do this, open Settings β†’ About β†’ MIUI version and click three dots in the corner, selecting β€œSelect firmware file.” The system will check the integrity of the archive and prompt you to start installing. If the bootloader is blocked, switching between regions (for example, from China to Global) will be prohibited.

πŸ’‘

If the Select Firmware File button is not active, try quickly clicking on the MIUI version number several times to activate hidden developer features.

Once confirmed, the installation process will begin, the phone will reboot, and the updates will start. The screen can go out and light up β€” that's normal for Recovery. Don't touch the device until the desktop is fully loaded.

Method 2: Fastboot and Mi Flash Tool

The most reliable and complete way to recover is to use the Mi Flash Tool on your computer, which allows you to install the system "cleanly" by fixing file system errors. First, download and unpack the archive with fastboot.tgz firmware into the root folder of the disk, for example, C:\xiaomi\mi5s_global. The path should not contain Cyrillic.

Put your smartphone in Fastboot mode. To do this, turn off the phone, then press the volume button and plug in. USB-And you'll see a picture of a hare repairing an android, or a sign that says, FASTBOOT. In Mi Flash, click the Refresh button and the device must be listed.

⚠️ Note: When selecting firmware mode in the Mi Flash Tool, make sure that the "clean all" option is selected. Save user data mode can cause system file conflict when changing region, which will lead to a cyclical reboot.

Press Flash and wait until the process is over. Success status at the last line of the program means success. The phone automatically reboots to the new system. The first run can last up to 10 minutes.

πŸ’‘

Using Fastboot mode is the only guaranteed way to change the region of the device (for example, from CN to Global) and completely clear the memory of old garbage.

Possible mistakes and ways to solve them

In the process of firmware Xiaomi Mi 5s One of the most common errors is Missmatching image and device, which means you're trying to flash a firmware designed for another model (e.g., Mi). 5s Plus instead of Mi. 5s). Check the code names carefully: capricorn is Mi. 5s, And natrium is Mi. 5s Plus.

Another common problem is the Anti-rollback bug, which is a security mechanism that prevents you from installing an older version of the software than you currently have, and if you encounter this, you'll have to look for a firmware version with a higher security index.

The table below will help identify the major errors and their solutions:

Code/Type of errorProbable causeDecision-making
Code: 102Wrong path to files or damaged archiveCheck the integrity of the ZIP, move to the root of the C disk
Missmatching imageThe firmware is not for this model.Download the file strictly for capricorn (Mi 5s)
Device busyThe phone is busy with another process.Reconnect the cable, reboot to Fastboot
Anti-rollback check failedAttempt to roll back on the old versionFind a fresh firmware version or use EDL
πŸ“Š What type of firmware do you encounter more often?
Official Global ROM
Chinese version (CN)
Castomic (LineageOS, etc.)
Recovery after failure

Recovery through EDL (Emergency Download)

If the phone doesn’t turn on, respond to buttons, and is not included in Fastboot, there is a last chance – EDL (Qualcomm Download) mode. To enter this mode on Xiaomi Mi 5s often requires disassembling the case and closing contacts on the board (Test Point), since the program input is usually blocked.

In this mode, the device is defined by the computer as a Qualcomm HS-USB QDLoader 9008. The firmware also uses the Mi Flash Tool, but requires an authorized Mi Account (or a special patch for the utility), a complex method that requires accuracy, since interrupting power here is guaranteed to bring the memory controller down.

⚠️ Attention: Entering mode EDL Disassembling your phone automatically deprives you of warranty (if it is still valid) and requires skill in working with small electronics.

Once the firmware is successfully installed in EDL, the phone will launch as new, but if the device is locked on Mi Account, you will still need the username and password of the owner to activate it.

Frequently Asked Questions (FAQ)

Do I need to unlock the bootloader to install Global firmware?
Yes, if you're going from Chinese to global, without an unlocked Bootloader, the system will give you an error and disallow the installation, and you don't have to unlock it to upgrade within the same region.
Will my data be erased when I run it?
When you use the clean all method in Fastboot or when you move between regions, yes, all data will be deleted. When you update through Recovery within one region, the data is usually stored, but you need to back up.
Can I flash Xiaomi Mi 5s on Android 10 or 11?
Officially, Xiaomi Mi 5s stopped on Android 8.0 (MIUI 11).Installation of newer versions of Android is possible only through custom firmware, but the stability of the camera and sensors on them is not guaranteed.
What if the phone is constantly restarted after the firmware?
Try to do a full reset (Wipe Data) through Recovery. If that doesn't work, maybe the firmware file is damaged or not suitable for your hardware revision. Repeat the procedure with another archive.