How to reflash Xiaomi Redmi 4 Pro: official and custom firmware

The Xiaomi Redmi 4 Pro (codenamed markw) is still a popular budget smartphone due to its robust hardware and the ability to install modern firmware. However, over time, official MIUI support ends, and users face slowdowns, lack of security updates or the desire to install custom firmware like LineageOS or Pixel Experience.

In this article, we will discuss all the current ways to flash the Redmi 4 Pro in 2026: from the official update via MIUI Updater to install custom builds via TWRP and Fastboot. Particular attention will be paid to unlocking the bootloader without waiting for 720 hours (relevant to old Mi Account accounts) and solving typical errors like Anti Rollback or Invalid Image. If you are a beginner, start with official methods.

Preparation for Flashing: What You Need to Know Before You Start

Redmi 4 Pro flashing is not a knee operation, and the wrong actions can turn a smartphone into a brick, so let's first look at the key points:

  • πŸ”‹ The battery must be at least 60% charged, and when discharged during firmware, the device may shut down at a critical moment.
  • πŸ” Unlocking the bootloader is mandatory for custom firmware installation. MIUI Updater or Recovery do not require a lock.
  • πŸ“± Data backup: firmware erases internal memory. Use Mi Mover, Titanium Backup or manual copying on PC.
  • πŸ–₯️ Drivers and tools: you need to work with Fastboot ADB/Fastboot drivers, for TWRP β€” current-age.

The most common mistake of beginners is to try to flash custom firmware without unlocking the bootloader. In this case, the device will go to Fastboot Mode with the error This device is locked. It is also important to consider the Anti Rollback (ARB) version: if you flash the old firmware on a device with a new ARB, the smartphone will lock forever. Check the current version of ARB in the settings (Settings β†’ About Phone β†’ MIUI version).

⚠️ Note: If your Redmi 4 Pro was purchased in China (the domestic version), the firmware is global. MIUI This can cause problems with the modem (no network) and requires multilingual firmware. MIUI Or custom assembly with support for Chinese models.

πŸ“Š What kind of firmware you plan to use?
Official Update via MIUI Updater
Installation of custom firmware through TWRP
Firmware through Fastboot
I haven't decided yet.

Method 1: Officially Updated via MIUI Updater

The safest method is to upgrade through the built-in MIUI Updater app, which is suitable for installing official stable or beta versions of MIUI without unlocking the bootloader and losing data (if no reset is performed).

  • πŸ“² Only firmware is available for your regional version (Global, China, EEA).
  • ⏳ Updates come with a delay (sometimes up to several months).
  • 🚫 It is impossible to fall back on the old version. MIUI because of Anti Rollback.

Instructions:

  1. Open Settings β†’ About the phone β†’ System update.
  2. Click on the three dots in the top right corner and select Select Service Pack.
  3. If you already have a firmware file downloaded (.zip format), select it. To automatically update, click Check Updates.
  4. Confirm the installation and wait for the restart (it will take 5-10 minutes).

If the update is β€œhanging” during the verification phase, try:

  • πŸ”„ Reboot your smartphone and try again.
  • πŸ“Ά Connect to another Wi-Fi network (sometimes Xiaomi servers are blocked by the provider).
  • ⏳ Wait 1-2 days – sometimes updates are not available immediately for all devices.

πŸ’‘

If the MIUI Updater does not receive an update, download the full firmware package for your model from en.miui.com and select it manually through "Select Service Pack".

Method 2: Firmware through Recovery (without PC)

The method is suitable for installing official firmware without a computer, but requires a pre-loading of the firmware file on the smartphone, the main advantage is saving data when updating (unless you choose clean all). However, custom firmware (for example, LineageOS) in this way can not be installed – you will need to TWRP.

Step-by-step:

  1. Download the firmware for Redmi 4 Pro (markw code) from the official website. The file must have a type name. miui_MARKWGlobal_V12.5.1.0.RMAMIXM_....
  2. Rename the file to update.zip and move it to the root of internal memory (not to folders!).
  3. Turn off your smartphone and press Volume Up + Power to enter Recovery Mode.
  4. In the Recovery menu, select the language (if available) then:

Wait until the process is completed (the process will take 3-7 minutes) and restart the device.

⚠️ Note: If E:footer is wrong appears in Recovery, it means that the firmware file is corrupted or not intended for your model (MD5).

Type of firmwareData retentionUnlocking requiredSupported files
Official MIUI (Update)βœ… Yes.❌ No..zip (update.zip)
Official MIUI (Clean Installation)❌ No.❌ No..zip
Castomium (TWRP)❌ No (optional)βœ… Yes..zip, .img
Fastboot (MI Flash)❌ No.βœ… Yes..tgz,.zip (for MI Flash)

Method 3: Unlock the bootloader (bypass 720 hours)

To install custom firmware or firmware through Fastboot requires unlocking the bootloader. The official way from Xiaomi involves linking the device to the Mi Account and waiting for 720 hours (30 days).

  • πŸ”“ Older accounts (created before 2018) are sometimes unlocked without waiting.
  • πŸ› οΈ Using Mi Unlock patched versions (risk of account blocking!).
  • πŸ“± Buying an unlocked device (on AliExpress or from trusted sellers).

Official unblocking instruction:

  1. Link Redmi 4 Pro to your Mi Account in settings (Settings β†’ Mi Account).
  2. Enable OEM Unlock in Settings β†’ Additional β†’ For developers.
  3. Download the Mi Unlock Tool from en.miui.com/unlock.
  4. Connect your smartphone in Fastboot mode (click Volume Down + Power) and follow the program instructions.

If Mi Unlock is an error, Cann't unlock or Device is not connected:

  • πŸ”Œ Try another one. USB-cable (preferably original).
  • πŸ–₯️ Install Xiaomi drivers USB Drivers manually through Device Manager.
  • πŸ”„ Restart your PC and smartphone, then try again.
What if Mi Unlock can’t see the device?
1. Check if USB debugging mode is enabled in the developer settings. 2. Make sure that Windows Device Manager displays the smartphone as "Android Bootloader Interface." 3. Try running Mi Unlock on behalf of the administrator. 4. If you use Windows 11, turn off driver signature verification (via "Special Boot Options").

Method 4: Install custom firmware through TWRP

TWRP (Team Win Recovery Project is a custom recovery that allows you to install informal firmware, make backups and restore the system β€” TWRP 3.7.0 (or newer) Important: installation TWRP On devices with Anti Rollback 4 and higher, it can lead to a lockdown of the bootloader.

Instructions for installing TWRP and custom firmware:

β˜‘οΈ Preparation for installation TWRP

Done: 0 / 5
  1. Unlock the bootloader (see the previous section).
  2. Download TWRP for markw (for example, from the 4PDA forum or twrp.me).
  3. Rename the file to twrp.img and place it in the folder with ADB/Fastboot.
  4. Connect your smartphone in Fastboot mode and execute the command: fastboot flash recovery twrp.img
  5. Without disabling USB, press Volume Up + Power to log in to TWRP immediately.
  6. In TWRP, run Wipe β†’ Format Data (enter yes), then copy the firmware to your smartphone via MTP.
  7. Install the firmware through Install, then (if necessary) Gapps.

The following are the best features for Redmi 4 Pro:

  • πŸ“± LineageOS 18.1 (Android 11) - stable, without excess software.
  • 🎨 Pixel Experience – The interface is like Google Pixel.
  • ⚑ HaventOS – Optimized for weak devices.
  • πŸ”„ MIUI Pro - modified MIUI high-set.

⚠️ Warning: After installing custom firmware, VoLTE support may disappear (calls on the phone) 4G) To restore functions, you need to flash the VoLTE fix patch (see thematic forums).

πŸ’‘

Installing custom firmware erases internal memory data. Always back up through TWRP (Backup section) or copy files to a PC.

Method 5: Fastboot (MI Flash Tool)

Fastboot is used to install official firmware (for example, when recovering from a brick) or custom assemblies in.tgz format. The main advantage is reliability, since the firmware goes directly through the PC. However, all data will be erased and the bootloader must be unlocked.

Step-by-step:

  1. Download the MI Flash Tool and firmware for Redmi 4 Pro (e.g. xiaomifirmwareupdater.com).
  2. Unpack the firmware in a folder without Cyrillic characters (for example, C:\MIUI\markw).
  3. Turn off your smartphone and press Volume Down + Power to log into the Fastboot.
  4. Connect the device to your PC and start the MI Flash Tool.
  5. Press Select, specify the firmware folder, then Refresh (the device should appear).
  6. Select firmware mode: Clean all – clean (recommended); Clean all and lock – clean + lock bootloader (only for official firmware!); Save user data – data storage (not always stable).

Flash

If MI Flash is flash not done:

  • πŸ”Œ Check the cable and port USB (better USB 2.0).
  • πŸ–₯️ Launch the program on behalf of the administrator.
  • πŸ”„ Try another version. MI Flash Tool (e.g. 20180528 instead of the last one).
  • πŸ“ Make sure the path to the firmware does not contain spaces or Cyrillic.

Solving typical firmware errors

Even if you follow the instructions, you can get errors, and let's look at the most common ones and how to fix them.

Mistake.Reason.Decision
This device is lockedThe bootloader is not unlockedUnlock the bootloader through Mi Unlock
Anti Rollback check failReverse to the old version of MIUISwitch firmware with ARB not lower than the current one
E: Unknown command [log] in TWRPIncompatible version of TWRPInstall the current version of TWRP for markw
Invalid sparse file format at headerFirmware file damagedDownload the firmware again, check the MD5
Hanging on the Mi logoIncompatible firmware or lack of GappsSweep through another firmware or install Gapps

If after firmware the smartphone does not turn on or got stuck on the screensaver:

  1. Try to go to Recovery (Loudness up + Power) and do Wipe Data.
  2. If Recovery is not available, run the official firmware through Fastboot (see Method 5).
  3. Check if Anti Rollback works (if so, the smartphone can only be restored through an authorized service center).
What if there is no network after the firmware?
1. Check that the firmware is suitable for your regional version (Global/China). 2. Install a patch for the modem (see 4PDA for "Redmi 4 Pro modem fix"). 3. In network settings, select "3G Only" mode and restart the device. 4. If the problem persists, run a different firmware version.

FAQ: Frequent questions about Redmi firmware 4 Pro

Can I flash Redmi 4 Pro without unlocking the bootloader?
Yes, but only official updates via MIUI Updater or Recovery.For custom firmware and firmware via Fastboot, unlocking is mandatory.
How to find out the Anti Rollback version on my Redmi 4 Pro?
Type #4636## in the engineering menu, then go to Phone Information. Look for ARB Version. Also, the ARB version is listed in the official firmware name (e.g., ARBv4).
Which firmware is better to choose for everyday use?
If you want a stable option, it's the official MIUI Global. For speed and clean Android, LineageOS 18.1 or Pixel Experience. For games, MIUI Pro with optimizations.
Can I get my MIUI back after a custom firmware?
Yes, but you need to flash the official firmware through Fastboot with the option of Clean all and lock (if you want to lock the bootloader back).
Why is the camera or fingerprint sensor not working after the firmware?
This is a typical problem when installing unofficial firmware. Solutions: Patch the camera (like Camera2API); Install another firmware version (like HaventOS, which is known for good hardware support); Check that the firmware is designed specifically for markw (not for prada or other Redmi 4 models).