Xiaomi Redmi 4X (codenamed santoni, it is one of the most popular budget smartphones of 2017, but its signature shell. MIUI If you are tired of advertising, unnecessary services and want to get a βnakedβ Android with fast work and current updates β this guide is for you.
Redmi firmware 4X on pure Android (e.g. LineageOS, Pixel Experience or AOSP) It requires care: errors at any stage can turn a phone into a brick, and in this guide, we will take you through all the steps from unlocking the bootloader to installing GApps, and how to avoid typical problems. 1β2 It takes an hour to get a computer Windows/Linux.
Before you start, check your device model in Settings. β The phone. β Model, firmware for Redmi. 4X (Santoni not suitable for Redmi 4/4A/4 Also make sure the battery is charged at least on the 70% β This is critical to avoid failure.
1.Preparation: What will be needed for firmware
To flash Redmi. 4X On Android, you will need to:
- π± Xiaomi Redmi Smartphone 4X (codename santoni) with charge β₯70%.
- π» Computer running Windows 7/10/11 Linux (MacOS will require additional drivers).
- π Cable USB Type-C (preferably original or high-quality).
- π Firmware-based AOSP (For example, LineageOS 16/17/18 or Pixel Experience).
- π Unlocked bootloader (if not already unlocked β instructions below).
- π οΈ The Mi Unlock Tool: Mi Unlock Tool, ADB & Fastboot, TWRP Recovery.
Download all the files you need in advance and unpack them into a separate folder on your computer.
- π Firmware AOSP: LineageOS or Pixel Experience.
- π TWRP Recovery: The latest version for Santoni on the official website.
- π Google Services: Choose the Option arm64 β 10.0 β Pico or Nano on OpenGApps.
- π Mi Unlock Tool: download from the official Xiaomi website (you will need a Mi Account).
β οΈ Warning: Do not use firmware from unknown forums or torrent trackers! they may be embedded with malicious scripts or spyware. Official sources are your only safe choice.
Also, back up all the data: the firmware completely erases the internal memory.
- π² Mi Cloud (for contacts, notes, photos).
- πΎ Local copying on PC through MTP (Put your phone on like a flash drive).
- π Apps like Swift Backup (require root if already installed).
2 Unlock the bootloader on the Redmi 4X
The bootloader on all Xiaomi smartphones is locked by default. Without it, custom firmware cannot be installed. The process takes 72β168 hours (3β7 days) due to Xiaomiβs security policy.
Here's the step-by-step instruction:
- Link your Mi Account to your phone: Go to Settings β Mi Account and log in. Enable Settings β Additionally. β For developers β Unlocking OEM. Connect your phone to the Internet (required via mobile network, not Wi-Fi).
- Download Mi Unlock Tool: The utility is available on the official website (you will need to log into the Mi Account). Unpack the archive and launch miflash_unlock.exe on behalf of the administrator.
- Start unlocking: Turn off the phone, press Volume down + Power to log into Fastboot. Connect your phone to your PC and in Mi Unlock Tool, press Unlock. If you see a "Wait to" error, you have to wait (the deadline will appear in the utility).
β οΈ Warning: If you previously linked another Mi Account to this phone, you'll have to unplug it through your personal account!
Once successfully unlocked, the phone will automatically restart. TWRP Recovery β custom recovery, which will allow you to flash clean Android.
1. Use another. USB-port (preferably) USB 2.0).
2. disable the antivirus and firewall on the PC.
3. Reinstall drivers ADB/Fastboot via Mi Flash Tool.-->
3. Installation of TWRP Recovery on Redmi 4X
TWRP (Team Win Recovery Project is an alternative recovery that allows custom firmware to be installed, backups made and system repairs. For Redmi 4X Use the latest stable version from the official website.
Installation instructions:
- Download. TWRP for santoni: The file has the.img extension (e.g, twrp-3.7.0_9-0-santoni.img). Put it in a folder with ADB & Fastboot (you can download it here).
- Launch your phone in Fastboot mode: Turn off the device. Press Volume down. + Power and hold on for 10 seconds.
- Please. TWRP via Fastboot: Open the command line (Win) + R β cmd) in the folder ADB. Enter the command: fastboot flash recovery twrp-3.7.0_9-0-santoni.img After successful firmware type: fastboot boot twrp-3.7.0_9-0-santoni.img (It'll temporarily load. TWRP non-recording).
If it goes well, you will see the menu. TWRP Important: Don't restart your phone right after you've installed it. TWRP! First, you need to disable forced recovery. MIUI.
Do the following in TWRP:
- Go to Mount. β System and tick it.
- Go back to the main menu and select Advanced β File Manager.
- Cross the path. /system/bin and delete the file install-recovery.sh (That'll prevent replacement. TWRP on the stock Recovery when reloading).
Make a backup of the current firmware (optional)|Download firmware and GApps on your phone|Check the version. TWRP (It should support Android. 10/11)|Disable signature verification in settings TWRP-->
4. Selection and downloading of firmware AOSP
For Redmi. 4X A few options for pure Android:
| Firmware | Android version | Features | Reference |
|---|---|---|---|
| LineageOS | 10β13 | Stable, minimalistic, regular updates | Download |
| Pixel Experience | 10β12 | Google Pixel interface, optimized performance | Download |
| Havoc-OS | 10β11 | Maximum customization, suitable for enthusiasts | Download |
| crDroid | 11β12 | Balanced firmware with additional chips | Download |
For beginners, we recommend LineageOS or Pixel Experience, which are the most stable and have fewer bugs.
- π± Android 10 is the best choice for Redmi 4X (maximum compatibility).
- π± Android 11/12 β It may be due to weak iron (Snapdragon) 435).
Download firmware (.zip) and GApps (for example, OpenGApps-arm64-10.0-pico) directly to the phone or SD-Don't unpack the archives!
β οΈ Note: If you choose firmware on Android 11+, Some features may not work properly (e.g. camera or Bluetooth) Before installing check reviews on the XDA-Developers forum.
How to check the compatibility of the firmware?
5. Firmware of pure Android through TWRP
Now, to the most important step, installing the firmware, follow the instructions carefully to avoid errors.
Procedure:
- Boot in. TWRP: Turn off the phone. Press the volume up. + Food and hold until the logo appears TWRP.
- Make a full reset (Wipe): Go to Wipe β Advanced Wipe. Mark: Dalvik / ART Cache, System, Data, Cache. Swipe to confirm (this will delete all data!).
- Install firmware: Go back to the main menu, select Install. Find the downloaded.zip with the firmware and confirm the installation. Don't restart once you're done!
- Install GApps: Press Install again and select the archive from GApps. Confirm the installation.
- Reboot the system: Select Reboot β System. The first start can take 5-15 minutes - do not interrupt the process!
If the phone stays on the logo for more than 20 minutes after the reboot, it's a mistake.
- Boot back in. TWRP (Loudness up + Nutrition).
- Repeat the steps of Wipe and install firmware.
- If the problem recurs, try a different firmware version or GApps.
π‘
Never install firmware and GApps in one step through "Add more Zips" TWRP! This can lead to a conflict of system files. Set them separately.
6. Set up a clean Android after firmware
After a successful boot, you have to first set up the system.
- π Recover data: If you have backed up through a Google Account, log in and restore contacts, apps and settings. Files (photos, videos) copy from your PC or SD-map.
- βοΈ Update the system: Go to Settings β System system β Update the system and check the firmware relevance. LineageOS updates come weekly, Pixel Experience updates come once a month.
- π Optimize the battery: Turn off background activity of unnecessary apps in Settings β Activate Charge Savings mode in battery settings.
- π‘οΈ Check security: Install Google Play Protect in Google Play settings. Update all apps through Play Market.
If you notice bugs (for example, it doesnβt work) NFC or double camera, check it out:
- π Compatibility with your model (Santoni).
- π Presence of patches on the forum XDA.
- π Possibility of rollback to the previous version of the firmware.
To return to MIUI You'll need to run the official firmware through Fastboot using the Mi Flash Tool, but this will block the bootloader again, and you'll have to repeat the unlocking process.
7.Typical errors and their solutions
Even with the exact following of the instructions, there can be problems.
| Mistake. | Reason. | Decision |
|---|---|---|
| Error 7 in TWRP | Incompatible firmware or damaged archive | Download the firmware again, check the device model (santoni) |
| The phone does not turn on after the firmware | Incorrect Wipe or lack of GApps | Repeat the firmware with a full reset (System, Data, Cache) |
| Hanging on the logo Google/LineageOS | GApps or firmware conflict | Install firmware without GApps, then add them separately |
| Fastboot doesn't see the device | No drivers or cable problem | Reinstall the drivers ADB, try another USB-port |
| No mobile network after the firmware | Absent. IMEI modules RIL | Restore. IMEI via Maui META or patch it. RIL |
If your problem is not listed in the table, look for a solution to:
- π XDA-Developers (Redmi 4X)
- π 4PDA (firmware)
- π Telegram chat for Santoni owners
β οΈ Note: If you have lost your firmware after IMEI (No network, no way to reboot your phone! MIUI via Fastboot, otherwise you risk losing IMEI forever.
8. Alternative methods of firmware
If you can't get the Redmi. 4X through TWRP, There are two alternative methods:
Method 1: Fastboot Firmware (for power users)
This method is suitable for installing official and some custom firmware without TWRP. It will:
- Download firmware in.tgz format (for example, with Xiaomi Firmware Updater).
- Unpack the archive and launch the script flash_all.bat (for Windows or flash_all.sh (Linux).
- Connect your phone in Fastboot mode and wait until it is completed.
Method 2: Using OrangeFox Recovery
OrangeFox - The Alternative TWRP It's set up in a similar way. TWRP, But the interface is more user-friendly for beginners.
The benefits of OrangeFox:
- π§ Built-in firmware integrity check.
- π Support OTA-customization.
- π‘οΈ Protection against accidental removal of critical sections.
But for Redmi. 4X TWRP It is a more proven solution, as it has more assemblies and guides.