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.
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:
- Install. TWRP (guideline).
- Go to Backup. β Select sections β EFS.
- 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:
- Activate Developer Options: Go to Settings β About Phone β MIUI version and tap it 7 times.
- Enable USB Debugging and OEM Unlocking in Settings β More β For Developers.
- Download the Mi Unlock Tool (the official tool from Xiaomi).
- Connect your phone to your PC in fastboot mode (turn off your phone, then press Volume Down). + Nutrition).
- 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:
- Download the file. twrp-3.7.0_9-0-santoni.img (newer).
- Rename him in recovery.img and put it in a folder with fastboot (for example, C:\platform-tools).
- Connect your phone in fastboot mode (as when unlocking).
- Open the command line in the folder with fastboot and do:
fastboot flash recovery recovery.img
fastboot boot recovery.imgAfter 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:
| Firmware | Features | Pluses | Cons | Reference |
|---|---|---|---|---|
| LineageOS | As close as possible to Android stock | Stability, minimalism, regular updates | Minimum customization, no GApps by default | Download |
| Pixel Experience | The interface is like Google Pixel | Pixel (Now Playing, Call Screen) features preinstalled by GApps | May be braking on a weak gland. | Download |
| Havoc-OS | Maximum customization | Fine interface setting, gestures, themes | Less stable, possible bugs | Download |
| crDroid | Balance between Stability and Customization | Good performance, frequent updates | No unique features | Download |
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?
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:
- Copy the firmware file (for example, lineage-20.0-20260510-UNOFFICIAL-santoni.zip) and, where appropriate, GApps on internal memory or SD-map.
- Load to TWRP (Loudness Up + Nutrition).
- Make a full backup of the current system (Backup) β Select all sections except Cache).
- Perform a full reset:
Wipe β Advanced Wipe β Tag Dalvik, Cache, System, Data β Swipe to Wipe- Install the firmware:
Install β Select the firmware file β Swipe to Confirm Flash- If you install GApps, repeat step 5 for the Google Services package.
- 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.5xTo 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 cause | Decision |
|---|---|---|
| The phone does not turn on after the firmware | Incompatible firmware or interrupted process | Install the firmware again through TWRP, Pre-formatted Data. |
| No network (IMEI missing) | Damaged. EFS-section | Restore the backup. EFS Or use the tool. QCN Rebuilder (requires root). |
| The camera's not working. | There are no drivers or libraries | Install Google Camera with configured config for santoni. |
| Fast battery discharge | Background activity or unoptimized core | Check the battery statistics in Settings β Battery, disable unnecessary applications. |
| Wi-Fi or Bluetooth is not working. | The wrong drivers in the firmware | Install 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.midropOption 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!