Xiaomi Redmi Note 5 Pro (codenamed Whyred) remains a popular smartphone even years after its release, thanks to its powerful hardware and strong support for custom firmware. However, standard software from Xiaomi eventually begins to slow down, and official updates stop coming out.
In this guide, we will analyze all the ways of flashing: from official updates via MIUI Updater to install custom builds via TWRP and Fastboot. Particular attention will be paid to unlocking the bootloader - without it it it is impossible to install alternative software. You will also learn how to avoid typical errors (for example, Anti-Rollback or EDL Mode) and what to do if the smartphone stopped turning on after firmware.
Preparation for Firmware Reflashing: What You Need to Know Before Starting
Flashing is not just a system upgrade, it's a complete software replacement. The wrong actions can lead to data loss, device locking, or even physical damage to the board. Before you start, answer three key questions:
- πΉ Why do you need it? Want to speed up your smartphone, install a fresh version of Android or fix bugs?
- πΉ What type of firmware do you choose? Official (stable/developer), custom (like LineageOS or Pixel Experience) or stockware with modifications?
- πΉ Are you prepared for the risks? Loss of warranty, possible brick, and the need for manual repair.
If you're a beginner, start with the official firmware through MIUI Updater, which is the safest method. For experienced users, installing via Fastboot or TWRP will be fine, but you'll need to unlock the bootloader and work with the command line.
β οΈ Warning: The Redmi Note 5 Pro has Anti-Rollback protection, which means you can't roll back to an older version. MIUI after updating to a certain firmware (for example, with MIUI 9 MIUI Trying to do this will lead to a brick-y device!
| Type of firmware | Do you need to unlock the bootloader? | Data loss? | Difficulty |
|---|---|---|---|
| Official (via MIUI Updater) | β No. | β Not if the update) | β |
| Official (via Fastboot) | β Yes. | β Yes (full reset) | ββ |
| Custom (via TWRP) | β Yes. | β Yeah (unless you back up) | βββ |
| Recovery through EDL | β Yes (Xiaomi's authorization) | β Yes. | ββββ |
Step 1: Unlock the bootloader on the Redmi Note 5 Pro
Without the bootloader, you canβt install custom software or official firmware through Fastboot. Xiaomi requires account confirmation for this operation, and the process takes up to 720 hours (30 days) of waiting.
- Connect your device to your Mi Account Go to Settings β Mi Account and log in. Make sure your account is free of restrictions (for example, it is not blocked for suspicious activity).
- Activate USB Debugging In Settings β About your phone, click 7 times on the MIUI version to turn on Developer Mode. Then in Settings β Additional β For developers, turn on USB Debugging and OEM Unlock.
- Connect to Mi Unlock Tool Download the official utility from Xiaomi, install it on your PC and log in under the same account as on your phone. Connect Redmi Note 5 Pro in Fastboot mode (click Volume Down + Power When your phone is off).
- Start the unlock process In the utility, press Unlock. If you do this for the first time, you'll see a 30-day wait message. Try again every 24 hours until the timer is reset.
β οΈ Note: If you bought Redmi Note 5 Pro used, the previous owner could have linked the device to his Mi Account. In this case, unlocking without his data is impossible - you will need to contact Xiaomi with proof of purchase.
Mi Account linked to device
USB debugging and OEM unlocking enabled
Installed ADB/Fastboot drivers on PC
Download the latest version of the Mi Unlock Tool
Battery Charge > 60%-->
Step 2: Install the official firmware through Fastboot
If you need clean official firmware (for example, to recover from a crash or remove custom software), the best way to do this is to flash it through Fastboot. This method is also useful if the smartphone is not turning on or stuck on the MI logo.
You'll need:
- π₯οΈ Computer with Windows/Linux and established ADB/Fastboot.
- π Cable USB (preferably original).
- π± Firmware in.tgz format for whyred (you can download it on the official website).
- π§ The Mi Flash Tool (download here).
Instructions:
- Unpack the firmware in a folder without Cyrillic characters (for example, C:\MIUI\whyred_global_images_...).
- Launch the Mi Flash Tool, press Select and specify the path to the firmware folder.
- Connect the Redmi Note 5 Pro turned off in Fastboot mode (clamp Volume down + Power).
- In the utility, press Refresh - a device with an ID should appear.
- Select firmware mode: Clean all - complete cleaning (recommended in case of failures); Clean all and lock - cleaning + lock bootloader (if you want to return the warranty); Save user data - data storage (not always stable).
Flash
π‘
If the Mi Flash Tool is a can't find fastboot error, try running it on behalf of the administrator or update the drivers using the Android SDK Platform Tools.
Step 3: Install custom firmware through TWRP
Custom firmware (such as LineageOS, Pixel Experience or HavocOS) provide advanced settings, fresh Android versions and no bloat from Xiaomi. TWRP β custom recovery.
Pre-launch warnings:
- π¨ Anti-Rollback protection also applies to custom firmware.
- π¨ Some firmware may not support the camera or VoLTE β check the reviews on forums (e.g., the app, XDA).
- π¨ Backup is a must! Without it, you can't recover data from firmware.
Step-by-step:
- Install TWRP Download the latest version of TWRP for whyred (e.g., from here). Rename the file to twrp.img and place it in a folder with ADB. Follow the command: fastboot flash recovery twrp.img fastboot boot twrp.img
- Make a backup in. TWRP Select Backup and select Boot, System, Data, EFS. Save the backup on SD-card.
- So, you can run the firmware. ZIP-a firmware file (e.g. LineageOS 20) and place it on your phone. TWRP Choose the Wipe β Advanced Wipe and mark Dalvik, Cache, System, Data. Then press Install and select ZIP-file.
- For Google services, download OpenGapps (select ARM64 platform, Android 10/11/12) and install it similarly to firmware.
- Reboot After installation, press Reboot System. The first run can take up to 15 minutes.
What to do if TWRP asks for a password?
Step 4: Update via MIUI Updater (without unlocking)
If you donβt need custom firmware, but just need to update MIUI to the latest version, use the built-in MIUI Updater, which does not require unlocking the bootloader and saves all the data.
How to update:
- Go to Settings β About the phone β System update.
- Click on the three dots in the top right corner and select Select Service Pack.
- If an update is available, download it (or download it in advance from the official website and select the file manually).
- Wait for the check and click Reboot and Update.
If the update is βhangβ during the verification phase:
- π Restart your phone and try again.
- π Connect to another Wi-Fi network (sometimes Xiaomi servers are blocked by providers).
- β³ Wait 1-2 days β sometimes updates roll out gradually.
π‘
Official updates via MIUI Updater are the only way to get firmware without losing warranty and unlocking the bootloader, but they often contain bloatware and ads.
Step 5: Restore the Brick through EDL Mode
If the Redmi Note 5 Pro doesnβt turn on, is stuck on the MI logo, or shows a Fastboot Mode error, but the Mi Flash Tool doesnβt help β thereβs a last chance: EDL (Emergency Download Mode) mode. This method requires authorization through a Xiaomi account and a special cable (or circuit of contacts on the board).
What you need:
- π₯οΈ PC with Qualcomm QDLoader and Mi Flash Tool installed.
- π EDL-cable (or ability to solder test points).
- π± Firmware in.mbn format (for example, EDL firmware for whyred).
- π Authorization in Mi Account (without it, Xiaomi will block the firmware).
Instructions (simplified):
- Connect the phone in EDL mode (this may require disassembling the device and closing contacts on the board).
- In the Mi Flash Tool, select the firmware.mbn and press Flash.
- Wait until the process is completed (it can take up to 30 minutes).
- Turn off the phone and try to turn it on (the first run is long).
β οΈ Attention: Method EDL If you are not sure about your skills, contact the service center. Also note that Xiaomi can block an account for frequent use. EDL (suspicion).
Solving typical firmware errors
Even if you follow the instructions accurately, you can get errors, and here are the most common ways to correct them:
| Mistake. | Reason. | Decision |
|---|---|---|
| This package is for "whyred" devices; this is a "" | The firmware is not suitable for your model. | Download the firmware for Redmi Note 5 Pro (whyred). |
| Anti-Rollback Check Fail | Trying to revert to the old version of MIUI. | Try a newer version or the same version. |
| Device is locked in the Mi Flash Tool | The bootloader is not unlocked. | Unlock the bootloader through the Mi Unlock Tool. |
| TWRP asks for password after installation | The data is encrypted (FDE or FBE). | Format /data to TWRP or type in an old PIN. |
| The phone does not turn on after the firmware | Incompatible firmware or interrupted process. | Try flashing through Fastboot or EDL. |
If the error is not shown in the table:
- π Find a solution on XDA-Developers or 4PDA.
- πΈ Take a picture of the screen with an error and ask a question in thematic chats (for example, in Telegram channels on Xiaomi).
- π Try repeating the firmware from another PC or cable.