How to flash Xiaomi Redmi 4 Pro: a complete guide to debunking errors

Xiaomi Redmi 4 Pro (codename markw) is still popular with users due to its balanced features and custom firmware installation. However, the process of firmware has nuances that can turn a routine operation into a real headache. Wrong software selection, ignoring the bootloader unlock or errors when working with the Fastboot often lead to a β€œbrick” – a state where the phone stops turning on.

In this article, we will discuss all the current methods of firmware (official and custom), elaborate on the preparation, choice of tools and solving typical problems. Particular attention will be paid to unlocking the bootloader, a key step without which installing alternative software is impossible. If you are a beginner, we recommend starting with official firmware through the Mi Flash Tool. Experienced users will find here instructions for working with TWRP and custom builds based on LineageOS or Pixel Experience.

⚠️ Warning: Smartphone firmware voids warranty and may lead to data loss.Redmi 4 Pro models with Snapdragon 625 processor have a risk of locking IMEI if the modified software is installed incorrectly.Be sure to save a backup copy through Settings before starting work. β†’ Additionally. β†’ Backup.

Preparation for firmware: what to do before the start

Before you start firmware, make sure all the prerequisites are met. Neglect of preparation is the main cause of failures during installation.

First, check the current version of MIUI in the Settings menu β†’ About Phone β†’ MIUI version. For Redmi 4 Pro, the current official firmware starts with the number V14.x.x.x (MIUI 14). If your version is older, you may need to update it through the standard Settings menu β†’ System Update.

Also make sure your phone has enough battery power (at least 60%) and it can take up to 30 minutes to run through Fastboot or Recovery, and interrupting the process due to discharge will have serious consequences. Prepare a USB cable (preferably original from Xiaomi) and a Windows 7/10/11 computer (Mi Flash Tool requires drivers that don’t always work correctly on macOS or Linux).

Charge your phone to 60% or more |

Download official or custom firmware |

Install Qualcomm and ADB| drivers

Save a backup of the data |

Connect the original USB-cable|

Disable the antivirus (can block the Mi Flash Tool)-->

If you plan to install custom firmware (such as LineageOS or HavocOS), you will additionally need to:

  • πŸ”“ Unlock the bootloader through the Mi Unlock Tool (more on this in the next section).
  • πŸ“± Install custom recovery TWRP (The version should support Markw).
  • πŸ”§ Download the package Disable_Dm-Verity_ForceEncrypt (bypass encryption on some firmware).

⚠️ Attention: On the Redmi 4 Pro with the Snapdragon 625 processor, there is a bug in which after installing some custom firmware, the module stops working NFC. If this functionality is important, check the compatibility of the selected build on the forum. 4PDA or XDA Developers.

Unlocking the bootloader: a mandatory stage for custom firmware

TWRP

Xiaomi

Mi

To unlock, follow the following steps:

  1. Link your phone to your Mi Account in the Settings menu β†’ Accounts β†’ Mi Account.
  2. Activate the OEM Unlocking option in Settings β†’ For developers (if there is no item, tap 7 times on the MIUI version to activate the developer mode).
  3. Download the Mi Unlock Tool (the version must match your OS).
  4. Launch your phone in Fastboot mode (clip Volume Down + Power when the device is off) and connect to your PC.
  5. In the Mi Unlock Tool, log in under the same Mi Account as on your phone and follow the instructions.

Once you send a request to Xiaomi’s server, you will receive a wait notice.The unlock period can vary from 3 to 30 days depending on company policy. In 2026, the average wait time is 7-10 days (previously it took up to 720 hours).

What to do if Mi Unlock Tool gives you a "Couldn't unlock" error
1. Check that the phone is tied to your Mi Account for at least 30 days (Xiaomi requirement). 2. Make sure the developer settings enable the option "OEM Unlock." 3. Try using another version of the utility (e.g. 5.5.224.24 instead of the last one). 4. If the error "This Mi Account is not bound to this device" - re-attach the account and try again in 24 hours.

If you don't plan on installing custom firmware, you don't need to unlock it -- you can install official updates through the Mi Flash Tool or OTA without it, but even for official firmware, an unlocked bootloader has the advantage of:

  • πŸ”„ Possibility of rollback to an older version MIUI.
  • πŸ› οΈ Installation of modified official firmware (e.g, MIUI EU without Chinese services).
  • πŸ”§ Access to advanced settings via Fastboot.

Yeah, long ago.|

Yeah, but I had to wait more than a week.|

No, I'm just planning.|

No, I don't see the point.-->

Firmware selection: official MIUI vs custom builds

Not only does the phone’s functionality depend on firmware, but it also depends on its stability. Official MIUI builds guarantee maximum compatibility with hardware, but contain unnecessary services and advertising. Custom firmware (such as LineageOS or Pixel Experience) offer β€œclean” Android, but can have bugs.

Let us consider the main options:

Type of firmwareAdvantagesDeficienciesComplexity of installation
Official MIUI (Fastboot)Maximum stability, support OTA-Updates, retaining warranty (unless the bootloader is unlocked).Advertising in system applications, Chinese services (in global versions reduced).⭐⭐ (simple)
MIUI EU (unofficial)No ads, advanced settings, weekly updates.No OTA, there are possible bugs (for example, with the work of NFC).⭐⭐⭐ (middle-of-the-road)
LineageOSClean Android, long-term support, no unnecessary services.The camera may not work (a separate GCam module is required) or the fingerprint sensor may not work.⭐⭐⭐⭐ (difficult)
Pixel ExperienceThe interface is like Google Pixel, quick security updates.Performance problems on weak configurations (3/32 GB).⭐⭐⭐⭐ (difficult)

For most Redmi users 4 The best choice is the official global firmware (for example, the official global firmware, markw_global_images_V14.0.2.0.TCZMIXM). It can be downloaded from the site. MIUI Downloads, choosing the Redmi model 4 Pro (code markw).

If you want to get rid of advertising and Chinese services, consider MIUI EU from the team xiaomi.eu.

  • πŸ”‹ These firmwares don't support OTA-Updates – each update will have to be manually installed.
  • πŸ“± Some features (such as Mi Pay or Game Turbo) may not work properly.
  • πŸ”§ An unlocked loader is required and installed TWRP.

πŸ’‘

Before downloading the firmware, check its hash amount (MD5) using the HashMyFiles utility. This will help avoid installation errors due to corrupted files.

Firmware through Fastboot: step-by-step instructions

Fastboot

You'll need to get the firmware:

  • πŸ’» Windows computer (7/10/11).
  • πŸ“± Phone with a charge of at least 60%.
  • πŸ”Œ Original. USB-cable.
  • πŸ“ Firmware in.tgz format (unpacked in folder).
  • πŸ› οΈ The Mi Flash Tool.

Instructions:

  1. Unpack the downloaded firmware in the folder (for example, C:\MIUI\markw). There's gotta be a file inside. flash_all.bat.
  2. Install Qualcomm drivers (if the Mi Flash Tool doesn't see the device).
  3. Turn off the phone and press Volume Down + Power to enter the Fastboot (a screen with a rabbit in a hat-eared).
  4. Connect your phone to your PC and launch the Mi Flash Tool. Press Select and specify the firmware folder.
  5. At the bottom, select Clean All (Full Cleaning) or Clean All and Lock (Cleaning + Lock bootloader).
  6. Press Flash and wait until it is completed (usually 5-10 minutes).

⚠️ If the Mi Flash Tool is an error, you can't find it 'flash_all.sh', Make sure that the path to the firmware folder does not contain Cyrillic characters. Move the files to the folder with an English name (for example, C:\MIUI\proshivka).

Once the firmware is successful, the phone will boot as standard. It can take up to 15 minutes to launch the first one, don't interrupt. MI, Reset through Recovery (Loudness upwards) + Nutrition β†’ Wipe Data).

πŸ’‘

Clear all and lock mode will lock the bootloader back, only use it if you plan to stay on the official firmware and do not need to unlock.

Installation of custom firmware through TWRP

If you unlocked the bootloader and want to install LineageOS, Pixel Experience or other custom firmware, you will need custom recovery. TWRP. For Redmi. 4 Pro current version β€” TWRP 3.7.0_9-0-markw (or newer).

Installation process:

  1. Download TWRP for markw from twrp.me (.img file).
  2. Download the firmware (for example, LineageOS) 20 for markw and package Disable_Dm-Verity_ForceEncrypt (if required).
  3. Move the firmware files and Disable_Dm-Verity to the memory card or internal memory of the phone.
  4. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  5. Connect your phone to your PC and execute the command: fastboot flash recovery twrp-3.7.0_9-0-markw.img fastboot boot twrp-3.7.0_9-0-markw.img The phone will load into TWRP.
  6. In TWRP, run Wipe β†’ Format Data (enter yes for confirmation).
  7. Install the firmware through Install, then the package Disable_Dm-Verity (if necessary).
  8. Reboot to the system (Reboot β†’ System).

The first download of custom firmware can take up to 20 minutes. If the phone is stuck on the logo, try:

  • πŸ”„ Repeat installation by pre-formatting the Data partition.
  • πŸ“₯ Make sure the firmware is for markw (not prada) 4/4X).
  • πŸ”§ Check if the package is installed Disable_Dm-Verity (Without it, some firmware will not start).
How to return the official firmware after custom
1. Download the official Fastboot firmware for Redmi 4 Pro. 2. Download the phone to Fastboot (Loudness down + Power). 3. Sweat through the Mi Flash Tool in clean all. 4. If the bootloader has been locked, unlock it again via Mi Unlock Tool (waiting required).

Typical errors and their solutions

Even if you follow the instructions, you can get errors, and let's look at the most common problems and the ways to solve them.

This package is for markw devices; this is a prada

Reason: You're trying to install firmware for Redmi 4 Pro (markw) on Redmi 4/4X (prada) or vice versa. These models are incompatible!

fastboot getvar product

The answer should be product: markw.

The error is "Anti-rollback check fail."

Reason: You're trying to install an older version of MIUI than the one already on your phone. Xiaomi is blocking the rollback of previous builds for security reasons.

  • πŸ”„ Find a new version of the firmware (for example, if you have a new version). V12.5.1.0, seek V14.x.x.x).
  • πŸ”§ Use it. TWRP and modified firmware with anti-Rollback bypass (risky!).

The phone does not turn on after firmware (brick)

If the screen is black or only backlighted, try:

  • πŸ”Œ Connect your phone to charge for 30 minutes (sometimes helps with battery discharge during firmware).
  • πŸ”„ Download to Fastboot (Loudness Down) + Power) and repeat the firmware.
  • πŸ› οΈ If Fastboot doesn’t respond, try flashing through EDL-Mode (requires an authorized Xiaomi account and Qualcomm boxing).

Symptoms.Possible causeDecision
The phone hangs on the MI logoIncompatible firmware or missing Disable_Dm-VerityFly through TWRP with Data Formatting
Mi Flash Tool doesn't see the deviceQualcomm drivers missing or cable faultyInstall drivers manually through Device Manager
Mistake 7 in TWRPA damaged firmware file or an incompatible version of TWRPCheck it out. MD5-hash firmware and update TWRP

⚠️ Note: If the firmware stopped working NFC Or the fingerprint sensor, probably the problem is that the firmware is not compatible with the iron. MIUI. On the Redmi 4 Pro with the Snapdragon 625, some custom firmware requires additional patches to properly operate the module. NFC.

FAQ: Answers to Frequent Questions

Can I flash Redmi 4 Pro without unlocking the bootloader?
Yeah, but only official firmware. MIUI via the Mi Flash Tool or OTA-To install custom firmware (LineageOS, Pixel Experience) or modified versions MIUI (e.g. xiaomi.eu) Unblocking is mandatory.
How long does it take to unlock a bootloader in 2026?
The waiting time after sending a request through the Mi Unlock Tool is from 3 to 15 days. Previously, it took up to 720 hours (30 days), but in recent versions of the utility, the process has been accelerated.
How to return the official firmware after custom?
For the return to official MIUI: Download Fastboot firmware for markw from the site MIUI Downloads. load your phone in Fastboot (Loudness down) + Power. Sweep through the Mi Flash Tool in clean all mode. If the bootloader has been blocked, unlock it again (waiting required). Attention: When switching from custom firmware to official, you may need to re-assign your Mi Account.
Why is the mobile network not working after the firmware?
This is a typical problem when installing custom firmware. Causes and solutions: Incorrect settings APN. Check the settings in Settings β†’ SIM-maps and mobile networks β†’ Access points (APN). Some firmware (e.g. LineageOS) require separate installation of the firmware file to run the network. IMEI Restore it via Engineering Mode (#4636##) or ChimeraTool.
Can I use Redmi 4 Pro to help you? OTG-computer-free?
Theoretically, yes, but in practice, it's extremely unreliable. To run through OTG, you'll need: an OTG charging cable (not all cables are suitable); a flash drive with firmware and a TWRP in.img; a Rashr or Flashify utility for installing TWRP. This method is much more likely to fail than a PC firmware.