Reflashing Xiaomi Redmi 4X via Recovery: a safe way to upgrade

Xiaomi Redmi 4X (codenamed santoni) remains a popular budget smartphone even years after its release. However, over time, standard MIUI firmware begins to slow down and official updates stop coming out. Reflashing through the recavers is one of the most reliable ways to return the device to performance or install custom firmware. But without proper preparation, the process can turn into a brick.

In this article, you’ll find a step-by-step guide to running Redmi 4X firmware through TWRP or stock recavators, picking the right firmware (official, global or customized like LineageOS), and how to avoid common bugs. We’ll highlight the critical issues that 90% of users miss when they first run, from checking file compatibility to formatting partitions correctly.

If you've never been to an Android device, start with the preparation section. Experienced users can immediately go to the installation instructions via TWRP or stock recavator. At the end of the article, answer frequent questions and a list of proven sources for downloading firmware.

1. Firmware Preparation: What to Do Before Starting

Flashing through the Recovery is a process that requires careful attention at every step. The first thing to do is make sure the firmware is compatible with your Redmi 4X model. The device has several modifications (for example, with 2/16 GB or 3/32 GB of memory), but the firmware should be suitable for all options if it is designed for santoni code.

List of mandatory training:

  • πŸ”‹ Charge the phone to at least 60% - when discharged during firmware, there is a high risk of damaging system partitions.
  • πŸ“± Make sure the bootloader is unlocked on the device. TWRP You can check the status by fastboot oem device-info, if Device unlocked: true, it's okay.
  • πŸ’Ύ Backup important data. Firmware through recovers doesn't usually erase user files, but a factory reset may be required when switching to another version of Android.
  • πŸ”§ Prepare the cable. USB Type-C (original or high-quality analogue) and PC with drivers installed ADB/Fastboot.

Pay special attention to the choice of firmware. For Redmi 4X suitable:

  • 🌍 Official global (MIUI Global Stable – stable but with customization limitations.
  • πŸ› οΈ Custom (LineageOS, Pixel Experience, HavocOS) – require an unlocked bootloader and TWRP.
  • πŸ‡¨πŸ‡³ Chinese (MIUI China – not recommended due to lack of Google services and language packages.

⚠️ Note: Firmware version for another region (for example, Chinese version of Redmi global modification) 4X) This can cause a mobile network to fail or errors with IMEI. Always check the model and region matching in the firmware file name.

πŸ“Š What kind of firmware do you plan to install?
Official MIUI
LineageOS (Pixel Experience)
Other official (EEA, India)
Not yet.

2.Recovery pick: TWRP vs Stock Recovery

On the Redmi 4X, you can install firmware through stock Recovery (from Xiaomi) or TWRP (castom).

CriteriaStock RecoveryTWRP
Supported firmwareOfficial MIUI (ZIP) onlyAny (ZIP, IMG, custom)
Requires unlocking of the loaderNo.Yes.
Backup capabilityNo.Yeah (full system backup)
Installation of Magisk (root)No.Yes.
Risk of "bricking"Low.Medium (with incorrect actions)

If you plan to install an official MIUI firmware (for example, for recovery from a failure), stock recavers are perfect. Custom firmware or modifications (root, kernel) will require TWRP.

You can download the latest version of TWRP for Redmi 4X (santoni) on the official website. Note the bitwise processor: santoni uses ARM64, so firmware for ARM will not work.

πŸ’‘

Before installing TWRP, check the hash amount of the downloaded file (MD5 or SHA1) to avoid errors due to corrupted archives. The hash can be checked using the certutil -hashfile utility MD5 file name in the Windows command line.

3. Installation of TWRP on Redmi 4X

If you've chosen a custom recaveri, you need to install it first.

  1. Download the current version of TWRP for santoni (file with.img extension).
  2. Connect your phone to your PC in Fastboot mode (clip Volume Down + Power when the device is off).
  3. Open the command line in the folder with fastboot and execute the command: fastboot flash recovery twrp-3.7.0_9-0-santoni.img (Replace the file name with the current one).
  4. After successful installation, restart to the Recovery team: fastboot boot twrp-3.7.0_9-0-santoni.img

Important: after the first boot in TWRP, the system may suggest installing DM-Verity. Accept, otherwise the device will not boot, and it is recommended to immediately make a backup of the EFS partition (responsible for IMEI and modem).

⚠️ Attention: If after installation TWRP The phone is loaded into the stock recavery, so you have rollback protection on, so you need to flash a special patch or use a version. TWRP bypassing protection (e.g, TWRP OrangeFox).

Download firmware (ZIP) for santoni|Check the hash amount of the file|Backup in. TWRP (including EFS)|Disable signature verification in settings TWRP|Charge the phone. >50%-->

4.Firmware through stock Recovery

If you install an official MIUI, the stock recavator can handle it without any further manipulation.

  1. Download the firmware from the official Xiaomi website (section) MIUI Downloads. For Redmi. 4X Choose files marked Santoni.
  2. Rename the firmware file to update.zip and place it at the root of the phone’s internal memory (not in folders!).
  3. Turn off the device and press Volume up + Power to enter the stock Recovery.
  4. Select the language (if available), then Install update.zip to System.
  5. Confirm the installation and wait until it is completed (usually takes 2-5 minutes).
  6. After the reboot, reset your settings (Wipe & Reset) if the firmware is older or in another region.

Stock recavators do not support custom firmware or modifications. If you need to flash LineageOS or Pixel Experience, use TWRP.

What if the stock recap doesn't see update.zip?
If the file is not identified, check: 1. The correct file name (update.zip, no extra characters). 2. Placement at the root of the memory (not in the Download or MIUI folder). 3. Archive integrity (try to download again). 4. Firmware compatibility with your model (for example, firmware for Redmi 4 will not work for Redmi 4X). If the problem remains, use TWRP or Mi Flash Tool for firmware via Fastboot.

5. Firmware through TWRP: A Step-by-Step Guide

Installing custom or official firmware through TWRP requires more steps, but gives you more options.

  1. Boot to TWRP (Put Volume Up + Power on the phone off).
  2. Make a full backup of the current system (Boot, System, Data, EFS sections). To do this, select Backup β†’ tick the desired sections β†’ swipe for confirmation.
  3. Do Wipe (clean): For official MIUI: Wipe β†’ Format Data (enter yes for confirmation). For custom firmware: Wipe β†’ Advanced Wipe β†’ tick Dalvik, Cache, System, Data.

Install

.zip

  • πŸ”„ Gapps (Google services, if not included in firmware).
  • πŸ” Magisk (for root rights, if necessary).
  • Reboot β†’ System: The first launch can take up to 10 minutes.

After returning to stock firmware, it is recommended to reset settings (Settings β†’ Additional β†’ Restore and Reset) to avoid conflicts with the remaining custom firmware files.

8 Frequently Asked Questions

Can I flash Redmi 4X without unlocking the bootloader?
No, custom firmware or TWRP requires unlocking. Stock recavers allow you to flash only official MIUI updates without unlocking, but the functionality is severely limited.
How to check if the bootloader is unlocked?
Turn off your phone and press Volume Down + Power to log in to Fastboot. Connect to your PC and execute the command: fastboot oem device-info If Device unlocked: true, the bootloader is unlocked.
Which custom firmware is better to choose for Redmi 4X?
The most stable options: πŸ“± LineageOS 16/17.1 (Android 9/10) β€” Minimalist interface, good optimization. 🎨 Pixel Experience – the interface is like Google Pixel, but can slow down on weak hardware. ⚑ HavocOS β€” many customization features, but less stable. LineageOS is recommended for everyday use.
What if the camera or sensors don’t work after the firmware?
This is a typical problem when switching to custom firmware Solutions: Install a patch for the camera (like ANX Camera for LineageOS). Sweep stock vendor and firmware through TWRP. Try a different firmware version (sometimes rollback to an older build helps).
How to upgrade TWRP to Redmi 4X?
The TWRP update is done in the same way as the original installation: Download the new version of.img. Download to the current TWRP. Select Install β†’ Install Image and specify the path to the file. Select Recovery and confirm installation. After the update, reboot to the recovery to check if it works.