How to install a clean Android on Xiaomi Redmi 4X: Complete guide from unlock to firmware

Xiaomi Redmi Smartphone 4X (The codename santoni is still popular among users who value balance of price and performance. MIUI Not everyone likes it: aggressive memory optimization, advertising in system applications and limited customization force you to look for alternatives (AOSP) Solves these problems by offering a β€œnaked” interface without unnecessary bells and whistles, regular security updates and advanced settings.

But switching to custom firmware isn't just a matter of pressing a couple of buttons, it requires unlocking the bootloader, installing a custom Recovery. TWRP, And then the firmware itself, and mistakes at any stage can turn the phone into a brick. In this guide, we'll take all the steps into Redmi's own context. 4X: From obtaining permission to unlock to choosing the optimal firmware (LineageOS, Pixel Experience or Havoc-OS), we will pay special attention to the β€œpitfalls” that are rarely written about in standard instructions, for example, the problem with the use of the software. EFS-section (responsible for IMEI) The Qualcomm Snapdragon 435.

Before you start, ask yourself two questions: are you willing to lose the warranty (if it still exists) and do you understand the risks? If it does, we will. If not, it may be worth considering alternatives like disabling ads in the public domain? MIUI or install the launcher Nova Launcher with a setup for β€œstock” Android.

πŸ“Š Why you want to install a clean Android on Redmi 4X?
I want to get rid of advertising in MIUI.
Regular security updates are needed
Don't like the design. MIUI
I want to try custom firmware.
Other

1.Preparation: What to do before the firmware

The first and most important step is data backup, and installing custom firmware involves a full factory reset, so all photos, contacts and messages will be deleted. Use Google Photos for media files, export contacts to.vcf, and save messages through apps like SMS Backup & Restore.

Also check:

  • πŸ”‹ Battery charge at least 70%. Firmware at low charge can be interrupted.
  • πŸ”Œ Cable USB β€” Use an original or quality substitute. Cheap cables can cause errors in data transmission.
  • πŸ’» The computer is the one you need to unlock the bootloader. 7/10/11 or Linux (for fastboot).
  • πŸ“± Version. MIUI β€” Update your phone to the latest official firmware via Settings β†’ The phone. β†’ Updating the system. This minimizes the risk of error.

Pay special attention IMEI. On the Redmi. 4X after firmware custom Recovery or unofficial firmware may disappear network due to damage EFS-To avoid that, make it backup:

  1. Install. TWRP (guideline).
  2. Go to Backup. β†’ Select sections β†’ EFS.
  3. Save the backup to a memory card or computer.

⚠️ Note: If it disappears after the firmware IMEI, It can only be restored through backup. EFS Without a backup, the chances of getting the network back are minimal.

2 Unlock the bootloader on the Redmi 4X

The bootloader on all Xiaomi smartphones is locked by default, and unlocking it is a must before installing custom firmware.

  • πŸ“… Wait 72–168 hours (3–7 days) after linking your Mi Account to your phone.
  • πŸ”‘ Mi Account must be confirmed (linked phone number and email).
  • 🌍 Account Region – Some users report unblocking issues on accounts registered in China.

Instructions for unlocking:

  1. Activate Developer Options: Go to Settings β†’ About Phone β†’ MIUI version and tap it 7 times.
  2. Enable USB Debugging and OEM Unlocking in Settings β†’ More β†’ For Developers.
  3. Download the Mi Unlock Tool (the official tool from Xiaomi).
  4. Connect your phone to your PC in fastboot mode (turn off your phone, then press Volume Down). + Nutrition).
  5. Launch the Mi Unlock Tool, log in to your Mi Account and follow the instructions. If you receive a waiting message, wait until the time is set.

⚠️ Note: If the "Couldn't unlock" error appears when unlocking, try: Use another one USB-Disable antivirus on your PC, try another computer (sometimes changing Windows to Linux helps).

Linked to Mi Account on phone|Debugging is on. USB|Unlocking enabled OEM|Phone's 70-charged%+|Download Mi Unlock Tool-->

3. Installation of custom TWRP Recovery

TWRP (Team Win Recovery Project is a custom recovery that allows you to install informal firmware, make backups and restore the system. 4X There are two current versions:

  • πŸ“± Official. TWRP β€” Stable, but may not support new firmware.
  • πŸ› οΈ Unofficial (OrangeFox, PitchBlack) – with additional features, but possible bugs.

We recommend using the official TWRP For the santoni, installation:

  1. Download the file. twrp-3.7.0_9-0-santoni.img (newer).
  2. Rename him in recovery.img and put it in a folder with fastboot (for example, C:\platform-tools).
  3. Connect your phone in fastboot mode (as when unlocking).
  4. Open the command line in the folder with fastboot and do:
fastboot flash recovery recovery.img


fastboot boot recovery.img

After successful installation, the phone will automatically restart to TWRP. If this does not happen, manually press the volume up. + Power on-set.

⚠️ Attention: If after installation TWRP The phone is loaded into a standard recavery MIUI, So the firmware overrecorded the Recovery, so to avoid that, right after the installation. TWRP Do it in the same way: Go to Mount. β†’ Enable MTP (To copy firmware files, install Magisk (for saving) TWRP post-boot).

πŸ’‘

If TWRP not seeing internal memory, try formatting the Data partition in the Recovery itself (Warning: this will delete all data!).

4. Select firmware: LineageOS, Pixel Experience or Havoc-OS?

For Redmi. 4X There are some popular firmware available on pure Android:

FirmwareFeaturesPlusesConsReference
LineageOSAs close as possible to Android stockStability, minimalism, regular updatesMinimum customization, no GApps by defaultDownload
Pixel ExperienceThe interface is like Google PixelPixel (Now Playing, Call Screen) features preinstalled by GAppsMay be braking on a weak gland.Download
Havoc-OSMaximum customizationFine interface setting, gestures, themesLess stable, possible bugsDownload
crDroidBalance between Stability and CustomizationGood performance, frequent updatesNo unique featuresDownload

For beginners, we recommend the Pixel Experience, which offers ready-to-use Android with Google services pre-installed. Power users can try Havoc-OS for deep customization.

Before downloading, check:

  • πŸ“… Assembly date – current firmware is updated every 1-2 months.
  • πŸ”„ Type of firmware: GApps (with Google services) or Vanilla (without them).
  • πŸ”’ Signature – download only from official sources or verified forums (XDA Developers, 4PDA).
What are GApps and do they need them?
GApps (Google Apps) is a package of Google services (Play Market, Gmail, YouTube, etc.) firmware can: - With GApps - ready to use, but take up more space. - Without GApps (Vanilla) - easier and faster, but Google services will have to be installed separately through Open GApps or NikGApps. If you use Google services, choose firmware with GApps or install them after firmware.

5. Step-by-step installing pure Android

Now that you have unlocked the bootloader, installed TWRP You can start the installation, and you can start the installation, and you can follow the instructions carefully, because a missed step can lead to a knock (inoperability) of the phone.

Procedure:

  1. Copy the firmware file (for example, lineage-20.0-20260510-UNOFFICIAL-santoni.zip) and, where appropriate, GApps on internal memory or SD-map.
  2. Load to TWRP (Loudness Up + Nutrition).
  3. Make a full backup of the current system (Backup) β†’ Select all sections except Cache).
  4. Perform a full reset:
Wipe β†’ Advanced Wipe β†’ Tag Dalvik, Cache, System, Data β†’ Swipe to Wipe
  1. Install the firmware:
Install β†’ Select the firmware file β†’ Swipe to Confirm Flash
  1. If you install GApps, repeat step 5 for the Google Services package.
  2. Reboot β†’ System: The first launch can take 10-15 minutes.

If the phone is stuck on the logo for more than 20 minutes:

  • πŸ”„ Try restarting manually (clip the power for 10 seconds).
  • πŸ› οΈ If it doesn't help, go back to TWRP and repeat the installation by pre-formatting the Data partition (Warning: delete all data!).

⚠️ Attention: After installation, check the work: πŸ“Ά Network – If there is no signal, restore the backup EFS. πŸ”Š Sound – on some firmware, the speaker may not work (solved by installing a patch). πŸ“· Camera – Google Camera (GCam) may be required for full operation).

πŸ’‘

The first download after the firmware is always long, and that's okay. Don't interrupt the process or force the phone to turn off.

System configuration after installation

Once you have a successful firmware, you'll have to set up the system first, and depending on the firmware you choose, the interface may be different, but the overall steps are the same:

Priority action:

  • πŸ” Security - set up PIN-code or pattern lock in Settings β†’ Security.
  • πŸ”„ Updates – Check for firmware updates in Settings β†’ System system β†’ Updating the system.
  • πŸ“² Root rights – if necessary, install Magisk through TWRP (You can download it on GitHub).
  • 🎯 Performance – Turn off animations to speed up the interface:
Settings β†’ About Phone β†’ Build Number (shap 7 times to enable developer options)


Settings β†’ System β†’ Developer β†’ Window animation scale / Transition animation scale / Animator duration scale β†’ Set 0.5x

To improve autonomy:

  • πŸ”‹ Turn off Adaptive Brightness and set a fixed value (e.g., 40%).
  • πŸ“Ά Enable Traffic Saving Mode in Settings β†’ Network and Internet.
  • πŸ›‘ Limit the background activity of applications in Settings β†’ Annexes β†’ Special access β†’ Optimizing the battery.

If you're dealing with bugs:

  • πŸ› Check the subject on XDA β€” They put out patches a lot.
  • πŸ”„ Try to switch to another build (for example, from Havoc-OS to LineageOS).
  • πŸ“₯ Install FrancoKernel Manager to fine-tune the kernel (root rights required).

Possible problems and solutions

Even if you follow the instructions accurately, you can get errors.

Problem.Possible causeDecision
The phone does not turn on after the firmwareIncompatible firmware or interrupted processInstall the firmware again through TWRP, Pre-formatted Data.
No network (IMEI missing)Damaged. EFS-sectionRestore the backup. EFS Or use the tool. QCN Rebuilder (requires root).
The camera's not working.There are no drivers or librariesInstall Google Camera with configured config for santoni.
Fast battery dischargeBackground activity or unoptimized coreCheck the battery statistics in Settings β†’ Battery, disable unnecessary applications.
Wi-Fi or Bluetooth is not working.The wrong drivers in the firmwareInstall a patch for firmware or resurface for another build.

If none of the solutions worked, please refer to the forums:

  • 🌍 XDA Developers – International Community.
  • πŸ‡·πŸ‡Ί 4PDA β€” Russian-language discussions.

⚠️ Warning: If the phone has turned into a β€œbrick” (does not respond to buttons, does not load into fastboot), try emergency firmware through the phone. EDL-That's gonna take a Qualcomm box. HS-USB QDLoader 9008 and Mi Flash Tool. This method is complex and risky - it is better to contact the service center.

8.Alternatives: What to do if a pure Android doesn't fit

If you’ve realized after experimenting with firmware that pure Android isn’t for you, there are alternatives:

Option 1: MIUI bonnet-free

  • πŸ”§ Install. MIUI pro MIUI Mix - Modified versions MIUI publicity.
  • 🚫 Disable unnecessary system applications through ADB:
adb shell pm uninstall --user 0 com.miui.analytics


adb shell pm uninstall --user 0 com.xiaomi.midrop

Option 2: Launchers for Android

  • πŸ“± Nova Launcher + Pixel Icon Pack – Visually Similar to Pure Android.
  • 🎨 Lawnchair – launcher with Pixel features and customization.

Option 3: Base-based cadaver firmware MIUI

  • πŸ”„ MIUI EU β€” European assembly without Chinese restrictions.
  • πŸ› οΈ MIUI Pro – Optimized version with additional features.

If you still decide to go back to MIUI, Download the official firmware from the Xiaomi website and install it through TWRP Or Mi Flash Tool.

πŸ’‘

Before returning to MIUI make a backup of data – the transition from custom firmware to stock also requires a complete reset!

FAQ: Frequent questions about installing a clean Android on Redmi 4X

❓ Can I install a clean Android without unlocking the bootloader?
No, without unlocking the bootloader, you can't install a custom Recovery (TWRP) This is a hardware-level limitation for Xiaomi.
❓ What is the most stable firmware for Redmi 4X?
According to user reviews, LineageOS and Pixel Experience show better stability. Havoc-OS and crDroid offer more features, but can slow down on a weak Snapdragon 435 processor.
❓ What to do if the camera does not work after the firmware?
The problem is typical for custom firmware on Redmi 4X. Solutions: Install Google Camera (GCam) with config for santoni (search on 4PDA or XDA). Check if your firmware supports Camera2 API (You can check with Manual Camera Compatibility. Check for another build (e.g., from Pixel Experience on LineageOS).
❓ How to get the official back MIUI post-stitch?
To return to MIUI: Download the official firmware for Redmi 4X (santoni) from Xiaomi. Rename the file to update.zip And put it in the root of the phone's memory. TWRP, make a Wipe β†’ Format Data (this will delete everything!) Install firmware via Install β†’ update.zip. Reboot. First launch may take up to 10 If your phone doesn't boot, use the Mi Flash Tool in fastboot mode.
❓ Why does the battery quickly go down after firmware?
Causes and solutions: πŸ”‹ Background Processes – Check Settings β†’ Battery. β†’ Use the battery and disable unnecessary applications. πŸ“‘ Poor firmware optimization - some custom builds aren't optimized for the Snapdragon 435. πŸ”„ Frequent reboots – if the system is unstable, it increases the consumption. Install patches or kernel with better optimization. πŸ“Ά Weak network signal, the phone is wasting a lot of energy searching for the network.