Running back firmware on Xiaomi Redmi 4 (codename prada) can be required in a variety of situations: from bugs in the new version MIUI It can be incompatible with custom cores or just wanting to go back to a proven stable build, but the downgrade process on Xiaomi devices has its own nuances β especially if it is a model with a locked bootloader or installed global firmware.
Unlike the newer smartphones of the Redmi Note series or POCO, where the manufacturer has tightened control over firmware, Redmi 4 (released in 2016) still allows relatively flexible version manipulation. MIUI. But even here, there are pitfalls: a wrong firmware can lead to a device brilliance, and a wrong sequence of actions can lead to data loss. In this guide, we will examine three proven rollback methods relevant to 2026, taking into account all the limitations of Xiaomi.
It's important to understand that a downgrade is not just "installing old firmware on top of a new one," it's a set of actions that involves unlocking the bootloader, choosing a compatible version. MIUI (depending on the region and type of firmware, and sometimes manual file editing flash_all.sh or flash_all_except_data.sh. If you have never used Xiaomi on Fastboot or TWRP, We recommend that you first familiarize yourself with the basic concepts β this will save time and nerves.
1.Preparation for rollback: What you need to know before downgrade
Before you start rolling back firmware on Redmi 4, there are several critical steps that need to be taken, and neglecting them can lead to loss of warranty, locking the device, or even the inability to recover without a service center.
First, determine the current version. MIUI and firmware type (Global, China, EEU). You can do this in the Settings menu. β The phone. β Version. MIUI. For example, if you have a set MIUI Global 12.5.3 Stable, rollback MIUI 11 is possible, but requires additional manipulation of the anti-rollback file (more on it later).
- π± Check out the model of the device: Redmi 4 has several modifications - Redmi 4 Prime (markw), Redmi 4 Pro (prada), Redmi 4A (Make sure you download the firmware for your version!
- π bootloader status: If it is locked (default on most devices), it will have to be unlocked through the official Mi Unlock Tool.
- π‘ Backup: Downgrade almost always results in a data reset.Use Mi Cloud, Google Account or TWRP Backup to keep contacts, SMS applications.
- π Battery charge: Make sure the charge level is at least 60%. interruption of the firmware process due to discharge can make the phone a "brick".
β οΈ Note: If your device was purchased in China and is powered by China ROM, The rollback to global firmware can lead to problems with OTA-Google updates and services, in which case it is recommended to stay on the Chinese branch or use Xiaomi.eu.
Pay special attention to the Android version. Redmi 4 originally shipped with Android 6.0 Marshmallow, butlater got updates to Android 7.1 Nougat. If you're trying to roll back from Nougat to Marshmallow, anti-rollback protection can work, which will lock the device. In this case, a special patch or firmware will be required through EDL-The system (we will talk about it at the end of the article).
2. Method 1: Recoil through Fastboot (recommended method)
Fastboot firmware is the most reliable way to roll back, as it allows you to completely overwrite all partitions of the device, including boot, system and recovery, which works even if you have a bootloader blocked (but you have to unlock it in advance).
To start, download the full firmware package for your model from the official Xiaomi website or from resources like Xiaomi Firmware Updater. Pay attention to the file extension: Fastboot needs an archive with the.tgz or.zip extension, inside which there will be a folder with files flash_all.bat (for Windows or flash_all.sh (for Linux/Mac).
Download the firmware for your model (prada/markw/rolex)
Install Xiaomi drivers (Mi Flash Tool)
Unlock the bootloader (if blocked)
Connect your phone in Fastboot mode (Pressure Power + Vol Down)
Disable the antivirus (can block it) flash_all.bat)
-->
Step-by-step:
- Unpack the downloaded archive with firmware in a separate folder.
- Connect Redmi 4 to your PC in Fastboot mode (turn off your phone, then press the Power). + Vol Down before the appearance of a bunny with the inscription Fastboot).
- Launch the file. flash_all.bat (for Windows or./flash_all.sh (for Linux/Mac).
- Wait until the process is completed (usually takes a lot of time). 5-10 The phone will reboot automatically.
If the process ends with an anti-rollback error, you're trying to install a firmware that's too old.
- Download a newer version MIUI (older than the current).
- Or use a modified script. flash_all_except_data.sh, which misses the recoil check (but it is risky!).
β οΈ Warning: If after firmware through Fastboot the phone is stuck on startup the Mi logo, try to go to Recovery (clamp Power) + Vol Up) and make Wipe Data. If that doesn't work, re-sweep, but select the clean all option in the Mi Flash Tool.
π‘
If the Mi Flash Tool doesnβt see the device, try reinstalling the drivers manually through Device Manager (select βMi Flash Interfaceβ in the list).
3. Method 2: Recoil through TWRP Recovery (for experienced users)
Use of the TWRP (Team Win Recovery Project gives you more control over the firmware process, but requires pre-installing custom recovery, which is suitable if you want to save user data or install custom firmware (for example, LineageOS).
First of all, make sure your Redmi 4 is up to date. TWRP You can download it from your official website. TWRP (Choose the version for prada, markw or rolex. TWRP It is operated via Fastboot by a team:
fastboot flash recovery twrp-3.7.0_prada.img
fastboot boot twrp-3.7.0_prada.imgInstructions for rollback through TWRP:
- Download firmware in.zip format (for example, with Xiaomi.eu or MIUI Global Stable).
- Move the firmware file to your phone or to SD-map.
- Boot in. TWRP (power down + Vol Up with the phone turned off).
- Choose Wipe. β Advanced Wipe and check Dalvik, Cache, System, Data (if you want a full reset).
- Return to the main menu, click Install and select the downloaded.zip file.
- Confirm the installation with a swipe and wait for completion.
If the phone doesnβt boot after installation, try:
- π Sweep Magisk (if the firmware requires root).
- π¦ Install Disable_Dm-Verity_ForceEncrypt.zip (If there are encryption errors).
- π§ Return to the drainage Recovery via Fastboot (fastboot flash recovery) stock_recovery.img).
| Problem. | Possible cause | Decision |
|---|---|---|
| Mistake 7 in TWRP | Incompatible firmware or incorrect updater-script | Edit META-INF/com/google/android/updater-script or download another version MIUI |
| Hanging on the Mi logo | Incomplete firmware or conflict with boot.img | Sweep boot.img Separately via Fastboot or make Wipe Data |
| TWRP asks for password | Encryption is on. FDE or FBE | Format Data in TWRP (will cause data loss!) |
What to do if TWRP I can't see the inner memory?
Method 3: Recoil through OTA (only for close versions MIUI)
If the difference between the current and the target firmware is minimal (for example, with the MIUI 12.5.3. MIUI 12.5.1), you can try to roll back through the local OTA-It's the easiest method, but it doesn't always work.
Conditions for success OTA-kickback:
- π² The phone must be unlocked (bootloader unlocked).
- π The target firmware should be the same branch (Stable/Developer) region (Global/China).
- π The difference between versions is no more 2-3 assembly (e.g. with V12.5.3.0 on V12.5.1.0).
Instructions:
- Download.zip firmware from the official website (section Recovery) ROM).
- Rename the file to update.zip and place it in the root of internal memory.
- Go to Settings β About the phone β System update.
- Click on the three dots in the upper right corner and select Select the firmware file.
- Please specify the path to update.zip and confirm the installation.
β οΈ Attention: If after OTA-If you roll back, the phone stopped loading, which means that the firmware contained anti-rollback protection, in which case you will have to scroll through the Fastboot with a full reset (clean all).
The advantage of this method is to save user data (if there is no failure). OTA-The recoil only works in 30-40% If the process ends with a Couldn't verify update package, try it:
- Delete the.zip file and download it again (it may be corrupted).
- Squeeze through TWRP or Fastboot.
- Use XiaomiTool to use V2 Automatically select compatible firmware.
5. Solving errors when rolling back firmware
Even with strict follow-up, the downgrade process can be accompanied by errors, and below we will discuss the most common problems and ways to fix them.
This package is for 'prada' devices; this is a ''
This error occurs when you try to flash firmware that does not match the device model, for example, set the markw (Redmi 4 Prime) on prada (Redmi 4 Pro).
Solution: Download the firmware for your model. You can find out the code name through the command adb shell getprop ro.product.device or in Fastboot (fastboot getvar product).
The error is "Anti-rollback check fail."
The most dangerous bug that can lock a device is when you try to roll back on a version. MIUI older than the one that was installed earlier (for example, with Android 7.1 on Android 6.0).
Decision:
- Find firmware with anti-rollback bypass (e.g. modified builds from Xiaomi.eu).
- Squeeze through EDL-Mode (requires an authorized Xiaomi account or UFi boxing).
- Contact the service center (if the phone is blocked during the booting stage).
Error: "Invalid sparse file format at header"
This means that the firmware file is corrupted or not intended to be installed through the selected method (e.g., trying to flash Fastboot). ROM through TWRP).
Solution: Download the firmware again and check its integrity (for example, through the MD5-For the sum TWRP You need.zip, for Fastboot - folder with flash_all.bat.
| Mistake. | Reason. | Decision |
|---|---|---|
| Remote: Partition not found | System or boot partition damaged | Swipe stock firmware through Mi Flash Tool with clean all option |
| E: Footer is wrong (TWRP) | Damaged or incomplete.zip file | Download the firmware again, check the hash amount |
| The phone does not turn on after the firmware | Incompatible version boot.img modem | Swipe the stock recavator and repeat the installation |
π‘
If after the firmware rollback stopped working mobile network or Wi-Fi, most likely damaged modem files or NVRAM. Solution: Swipe stock firmware through Fastboot or restore IMEI with tools like Maui META (demand EDL-regime).
6.Rollback through EDL-regime (extreme case)
EDL (Emergency Download Mode is an emergency firmware mode that allows you to restore the device even if it does not turn on (the so-called βbrickβ). However, it requires an authorized Xiaomi account or a special box (UFi, EasyJTAG) to use it, since Xiaomi has blocked free access to the Internet since 2018. EDL.
When you need an EDL:
- π§± Phone not turned on (black screen, no response to buttons).
- π Firmware through Fastboot or TWRP fail.
- π The device is blocked due to anti-rollback.
Instructions (simplified):
- Download Mi Flash Pro and firmware in.mbn format (for EDL).
- Connect your phone to your PC by holding Vol Up + Vol Down (on the device turned off).
- In Mi Flash Pro, select Browse and specify the path to the firmware.
- Press Refresh β the device should be identified as Qualcomm HS-USB QDLoader 9008.
- Select Clean All and press Flash.
β οΈ Attention: Use EDL Without authorization, Xiaomi may lead to a lock IMEI This method is recommended only in extreme cases and it is better to trust it to professionals.
If you do not have access to an authorized account, you can try alternative methods:
- π§ Use Test Point for Forced Transfer to EDL (call-up).
- π‘ Contact the Xiaomi service center (official rollback will cost less than repair after an unsuccessful one) EDL).
7.How to avoid problems after a rollback
Even if the rollback is successful, there may be hidden problems, from lost performance to sensor errors, and to minimize the risks, follow these guidelines:
- π Reset the settings after rollback (Wipe Data in the TWRP or through the settings β Recovery and reset. This will eliminate conflicts between old and new files.
- π‘ Update modules: After a downgrade, you may need to reflash modem, vendor or firmware separately (you can download it on the Internet). 4PDA or XDA Developers).
- π Check it out. IMEI: Enter the dialer *#06#. IMEI No, restore it with Maui. META or SN Write Tool.
- π Calibrate the battery: After the data reset, the charge count may be lost. Discharge the phone to 0%, then charge to 100% without interruption.
If you notice the following problems after the rollback, use the tips below:
| Problem. | Possible cause | Decision |
|---|---|---|
| Fast battery discharge | Incompatibility of the kernel or powerhal module | Swipe the custom core or roll back to another version MIUI |
| The camera's not working. | There are no libmmcamera drivers for this firmware | Install Google Camera Port or flash stock firmware |
| No sound in the speaker. | The file is damaged. mixer_paths.xml in the vendor section | Sweep vendor.img separately via Fastboot |
π‘
If gestures or touch buttons stopped working after the rollback, most likely the files in the section were damaged. /system/usr/keylayout. Solution: download stock firmware, extract keylayout files from it and replace them through ADB or a root explorer.