How to flash Xiaomi Redmi Note 5 Pro: all ways from A to Z

Xiaomi Redmi Note 5 The Pro (codenamed whyred) remains one of the most popular custom firmware smartphones even years after its release. 636, 4/6 GB of RAM and active support of the development community, but the firmware of this device has nuances that are not written in the standard instructions, such as unlocking the bootloader on the Redmi Note. 5 Pro requires linking the Mi Account to the device at least for 72 An hour before the procedure is a rule Xiaomi can not get around.

In this article, you will find current firmware methods (including Fastboot, Recovery and Fastboot). OTA), You will get a choice of versions MIUI (Global, Chinese, custom, and how to avoid common bugs like anti-rollback or brick-in devices. We're not going to describe the obvious steps like "download firmware" -- instead, we're going to focus on the critical points that distinguish a successful firmware from a failed firmware.

1. Firmware Preparation: What to Do Before You Start

The first and most important step is not downloading the firmware, but checking the current state of the device, which depends on which firmware method you will be able to use and whether you will avoid problems with anti-rollback (backwards protection mechanism) MIUI).

Let's start with the basics:

  • ๐Ÿ”‹ Battery charge: at least 60%, and if you run through the Fastboot, the device must not turn off, or you risk getting a brick".
  • ๐Ÿ“ฑ Backup โ€“ Use Mi Mover or TWRP Backup to save data. Cloud backups (like Google Drive) won't restore system settings.
  • ๐Ÿ”‘ Unlock the bootloader -- if you're planning on installing custom firmware, the bootloader has to be unlocked. TWRP, custom ROM never set.
  • ๐Ÿ“ก Version. MIUI โ€” Check the current version in Settings โ†’ This is the phone. This is the right way to choose a compatible firmware (more on that below).

Xiaomi requires that the device be tied to the account for at least 72 hours before unlocking the bootloader. If you just created an account or reset your phone, unlocking will not be available. This rule applies even for devices purchased from hand โ€“ the previous owner must untie your account in Settings. โ†’ Mi Account โ†’ Delete the account.

โš ๏ธ Note: If you buy Redmi Note 5 Pro from your hands for firmware, make sure the seller untied your Mi Account. Otherwise, unlocking the bootloader will not be possible without its data.

๐Ÿ“Š What kind of firmware you plan to use?
Fastboot
Recovery (TWRP)
MIUI Updater (OTA)
Custom firmware

2. Unlocking the bootloader: a step-by-step guide

Without an unlocked bootloader, you can only flash official versions. MIUI through MIUI Updater or Fastboot (but without the possibility of installing custom Recovery or ROM). The unlock process takes 3 to 10 days due to Xiaomiโ€™s checkout, so start with it in advance.

Here's what we need to do:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone and click on MIUI Version 7 times.
  2. Enable USB debugging: in Settings โ†’ Additional โ†’ For developers, activate USB debugging and OEM unlocking.
  3. Link your Mi Account: in the same menu, find Mi Unlock Status and link your account. The device must be connected to the Internet.
  4. Download Mi Unlock Tool: official Xiaomi software (link). Install it on your PC.
  5. Connect your phone in Fastboot mode: Turn off the device, then press Volume down + Food until the hare appears in the hat-eared (Fastboot logo).

Once successfully unlocked, the bootloader will remain unlocked, but every time you restart, you will see a warning, which is normal and doesn't affect the device. TWRP custom-made.

โš ๏ธ Warning: If you see a โ€œThis device is lockedโ€ error after several attempts, check that the developer settings have enabled the option. OEM Unlocking. On some versions. MIUI It may be reset after updates.

Developer mode activated|Debugging is on. USB and OEM Unlock|Device tied to Mi Account for more than 72 hours|Download and install Mi Unlock Tool|Phone's 60-charged%+-->

3. Selection of firmware: official MIUI vs. custom

On the Redmi Note 5 Pro, you can install three types of firmware:

  • ๐Ÿ“ฑ Official. MIUI (Global, Chinese, European) โ€“ stable, but with restrictions (for example, there are no Google services in the Chinese version).
  • ๐Ÿ› ๏ธ Castomy MIUI (for example, MIUI EU, MIUI Pro) โ€” official MIUI without Bloatware and with additional functions.
  • ๐Ÿค– Castomic firmware (for example, LineageOS, Pixel Experience, ArrowOS) โ€“ โ€œpureโ€ Android without a shell MIUI.

How do you choose? Answer the questions:

  • Do you need Google services? If so, avoid the official Chinese language. MIUI.
  • Do you want weekly updates? Then it's fine. MIUI EU (It is less stable than the global one).
  • Are you willing to sacrifice camera and performance for a clean Android? Custom firmware is often less optimized for the Snapdragon 636.

Redmi Note 5 Pro is especially important to keep track of the anti-rollback version (ARB). This is Xiaomiโ€™s mechanism that blocks rollbacks to older versions. MIUI. For example, if your device is on ARB 4 You will not be able to edit the version of ARB 3 or lower. Check the current version. ARB Fastboot team:

fastboot getvar anti

Version compatibility MIUI for whyred (as of 2026):

Type of firmwareLast versionAnti-RollbackWhether unlocking is required
MIUI Global StableV14.0.4.0.TEIMIXMARB 4No.
MIUI China StableV14.0.3.0.TEICNXMARB 4No.
MIUI EU Weekly23.5.28ARB 4Yes.
Pixel Experience13 (Android 13)No ARBYes.
LineageOS20 (Android 13)No ARBYes.

If you opt for custom firmware, pay attention to camera support.Redmi Note 5 Pro dual camera (12MP) + 5 MP) does not work in all firmware. For example, Pixel Experience may not have Portrait mode, and LineageOS may not have Night Mode.

๐Ÿ’ก

Before the custom firmware ROM Check the reviews on the forum XDA Developers (whyred section) Pay attention to module bugs NFC (if you need it) and data encryption (some firmware does not support FBE).

4. Fastboot firmware: the most reliable method

Fastboot firmware is a โ€œcleanโ€ installation that is suitable for:

  • ๐Ÿ”„ Recovery of the device after failure ("brick").
  • ๐Ÿ“ฅ Official installations MIUI (For example, when switching from custom firmware back to stock).
  • ๐Ÿ”’ Updates to the Anti-Rollback version (if the new firmware requires a higher version) ARB).

To run through Fastboot, you will need:

  • ๐Ÿ–ฅ๏ธ Computer with Qualcomm drivers installed and ADB/Fastboot.
  • ๐Ÿ“ Firmware in.tgz or.zip format (for example, whyred_global_images_V14.0.4.0.TEIMIXM).
  • ๐Ÿ”Œ Cable USB (It is desirable to be original, since cheap cables can cause data transmission errors).

Step-by-step:

  1. Unpack the firmware in a folder on your computer. flash_all.bat (for Windows or flash_all.sh (for Linux/Mac).
  2. Connect your phone in Fastboot mode (clip Volume Down + Power).
  3. Launch it. flash_all.bat I'll be working on the administrator's behalf. 5-10 minute.
  4. When it's finished, the phone will automatically restart. The first turn on can take up to 15 minutes.

If you see a โ€œflash not doneโ€ or โ€œcritical partition flashing is not allowedโ€ error, it means that:

  • You are trying to run a lower version. ARB, more current.
  • You do not have the bootloader unlocked (even for the official firmware, some versions require unlocking).
  • You use an unofficial firmware collected for another region.

โš ๏ธ Note: When you run through Fastboot, all data on the device will be erased, including internal memory (/data). If you need to save files, back up to an external drive or PC.

๐Ÿ’ก

Fastboot firmware is the only way to โ€œreanimateโ€ the Redmi Note 5 Pro after a failed customization ROM This method works even if the device does not turn on or is stuck on the Mi logo.

5. Firmware through TWRP: custom-made ROM and modifications

If you want to install custom firmware (like LineageOS or Pixel Experience), youโ€™ll need to TWRP Recovery. It's an alternative Recovery that allows you to sew ZIP-files, backups and modify system partitions.

Redmi Note 5 Pro is recommended for use TWRP from mauronofrio (version 3.7.0 or later) as it supports FBE (File encryption and works correctly with Android 10+. You can download it. XDA.

Instructions for installing TWRP:

  1. Download the file. twrp-3.7.0_9-0-whyred.img And put it in a folder with ADB/Fastboot.
  2. Connect your phone in Fastboot mode and execute the command: fastboot flash recovery twrp-3.7.0_9-0-whyred.img
  3. Immediately after the firmware reboot to TWRP, holding up + If you just reboot your phone, the stock recaveri will overwrite. TWRP.
  4. V TWRP run the Wipe โ†’ Format Data (this is a must to avoid encryption errors).

Now you can make a customized firmware:

  1. Copy. ZIP-Firmware file on the phone (via MTP into TWRP external memory card).
  2. In TWRP, select Install, specify the firmware file and confirm the installation.
  3. After the firmware ROM Install GApps (if you need Google services) and Magisk (for root rights).
  4. Run Wipe โ†’ Dalvik / ART Cache and reboot.

Common errors when running through TWRP:

  • ๐Ÿšซ "Error 7" - incompatibility of firmware with the device (for example, trying to flash whyred firmware for vince).
  • ๐Ÿ”’ "Data decryption failed" - Format Data not executed before firmware.
  • ๐Ÿ”„ "Bootloop (cyclic reboot) โ€“ no vendor or firmware in firmware.
How to Fix the Data Decryption Failed Error TWRP?
This error is due to the fact that TWRP Can't decipher the section /data, stock-encrypted MIUI. Decision: 1. V TWRP Go to Wipe. โ†’ Format Data (not just Wipe Data, but Format!). 2. Enter yes to confirm. 3. After formatting, copy the firmware again and repeat the installation. โš ๏ธ Warning: This will erase all data on internal memory!

6. Firmware through MIUI Updater: The easiest way

If you donโ€™t need custom firmware and you just want to upgrade MIUI Before the latest version, use the built-in MIUI Updater.This method does not require unlocking the bootloader and saves all the data.

How to update:

  1. Go to Settings โ†’ About the phone โ†’ System update.
  2. Click on the three dots in the top right corner and select Select Service Pack.
  3. Specify the downloaded firmware file (.zip format, the name should contain whyred).
  4. Confirm the installation and wait for the reboot.

Limitations of this method:

  • ๐Ÿ”„ You can install only official firmware (global, Chinese, European).
  • ๐Ÿ“ˆ You can't downgrade the story. MIUI (because of the Anti-Rollback).
  • ๐Ÿ”’ Custom firmware or modifications are not supported (e.g., removing Bloatware).

If the update is โ€œhangingโ€ during the verification phase, try:

  • Rename the firmware file, removing the Cyrillic alphabet and spaces.
  • Download the firmware again (possibly the file is corrupted).
  • Use it. VPN (Xiaomi servers are blocked in some regions).

๐Ÿ’ก

If you need to upgrade the Redmi Note 5 Pro with minimal risk, use the method. MIUI Updater + Cache cleanup. After the update, go to Recovery. + Power) and choose Wipe Cache, which will help you avoid lags after the update.

7.Typical errors and their solutions

Even if you follow the instructions, you may encounter problems, and here are the most common errors in the Redmi Note 5 Pro firmware and how to fix them:

Mistake.Reason.Decision
This device is locked (in Mi Unlock Tool)The Mi Account is tied for less than 72 hours or OEM Unlock is off.Wait 3 days or check the developerโ€™s settings.
Anti-rollback check failTrying to run a lower version ARB.Find a firmware with the same or higher ARB.
The phone does not turn on after firmware (black screen)Incompatible firmware or interrupted process.Make it official. MIUI via Fastboot.
E: Unknown command [log] in TWRPAn outdated version of TWRP.Update. TWRP before version 3.7.0 or later.
No network after custom ROM firmwareThere is no modem (firmware or vendor).Sweat the stock vendor through Fastboot.

If the phone hangs on the Mi logo after firmware, this may mean:

  • Incompatibility of the kernel (boot.img) firmware.
  • Absence of file dtbo.img (important 10+).
  • Damaged section /data (need to format in TWRP).

For diagnosis, connect the phone to the PC and check the logs through the command:

adb logcat

Look for lines with E: (errors) or F: (fatal crashes).

8. Frequently Asked Questions (FAQ)

Can I flash Redmi Note 5 Pro without unlocking the bootloader?
Yes, but only official firmware through MIUI Updater or Fastboot (if the firmware version is compatible with the current version) ARB). For custom firmware (LineageOS, Pixel Experience) and TWRP unlocking is mandatory.
How to find out the Anti-Rollback version on my Redmi Note 5 Pro?
Connect your phone in Fastboot mode and execute the command: fastboot getvar anti The answer will be the line anti: [number] (e.g., anti: 4).
Why after the customization of the firmware ROM camera's not working?
Most firmware (e.g. LineageOS) have a camera running through Google Camera (GCam), but some features (e.g. Portrait Mode or Night Shooting) may be missing.Solution: Install a modified GCam (e.g., version from the Google Camera). BSG or Urnyx05). Check if your firmware supports Camera2API (You can also check the Manual Camera Compatibility app).
How to return stock recavator after installing TWRP?
Download the official firmware for your model and run it through Fastboot with the command: fastboot flash recovery recovery.img where recovery.img โ€” A stock recap file from firmware, or run the full firmware through flash_all.bat.
Can I flash Redmi Note 5 Pro on Android 13?
Official MIUI Android 13 Whyred is not available, but there is a custom firmware (Pixel Experience) 13, LineageOS 20). However, they may have bugs: ๐ŸŽฎ Slow-motion animation in games (problems with the Adreno driver) 509). ๐Ÿ“ธ Absence HDR cell-wise. ๐Ÿ”‹ Increased battery consumption (due to unoptimized kernel) For everyday use, it is better to stay on Android 10 (MIUI 12/13) Android 11 (custom-fix).