Introduction: Should I upgrade to MIUI 12 on Redmi 4X?
Xiaomi Redmi 4X (codenamed santoni) came out in 2017 with MIUI 8 powered by Android 6.0 Marshmallow, but even years later the device is capable of running on the latest versions of the shell. MIUI 12 brings modern design, improved multitasking and privacy features that were never officially intended for this model. However, installing custom firmware is a risky process, especially if you are the first to encounter unlocking the bootloader and recovery.
In this article, we will discuss three officially supported installation methods. MIUI 12 on the Redmi. 4X: via Fastboot, TWRP and OTA-Update (if you are already on the MIUI We will focus on preparation, from backup to choosing the right firmware version. Importantly, Android 10 firmware for santoni exists only in informal builds, and MIUI 12 on Android 9 is the most stable option for this device.
Before you start, answer two questions: Are you prepared for the possible loss of warranty (if it still exists) and do you understand the risks of βbrickingβ the phone?
1. Device preparation: Backup and unlocking of the bootloader
The first and most critical step is unlocking the bootloader. Without that, no custom firmware will install. On the Redmi 4X, this process takes up to 72 hours due to Xiaomi's policy, so start with it in advance.
What you'll need:
- π Charging at least 60% β interruption of the process due to battery discharge leads to a brick.
- π» Windows computer (for Mi Unlock Tool) or Linux/macOS (alternative methods).
- π± Mi Account linked to phone (required with a confirmed number!).
- π§ USB-cable (preferably original, without damage).
Steps to unlock:
- Enable Developer Options: Go to Settings β About Phone and click on MIUI Version 7 times.
- Return to Settings β Additional β For developers and activate OEM Unlock and USB Debugging.
- Download Mi Unlock Tool (version no lower than 5.5.224.30).
- Connect your phone in Fastboot mode (click Volume Down + Power) and follow the program instructions.
β οΈ Note: If the Mi Unlock Tool shows a "Couldn't verify device" error, check that Factory Unlock is included in the For Developers (on some versions). MIUI hidden).
Linked to Mi Account on phone
USB debugging and OEM unlocking enabled
Download the Mi Unlock Tool of the latest version
The phone is charged at least 60%
Installed drivers Xiaomi on PC-->
2. Selection of firmware: official ports vs custom assemblies MIUI 12
Redmi 4X doesn't have official MIUI 12, only ported versions from the community.
- π Xiaomi.eu β stable weekly builds with minimal bugs, but without Google services (you need to install separately).
- π οΈ MIUIPro β Optimized firmware with additional chips (for example, advanced battery settings).
- π§ LineageOS + MIUI 12 Themes β An Alternative for Those Who Want a Clean Android with Visuals MIUI.
Recommended versions for Santoni:
| Type of firmware | Android version | Download link | Features |
|---|---|---|---|
| MIUI 12 by Xiaomi.eu | 9.0 Pie | Download | Stable, without blobate, but requires separate installation of GApps |
| MIUI 12 Pro | 9.0 Pie | XDA | Additional performance settings, but camera bugs are possible |
| MIUI 12 Global (unofficial port) | 10.0 Q | SourceForge | Android 10, but less stable (Bluetooth problems) |
If you want maximum stability, take Xiaomi.eu on Android 9. If you want to experiment, try the port on Android 10, but be prepared for bugs. Note: Android 10 firmware may not support Android 9's TWRP, you'll need a separate recovery!
MIUI 12 by Xiaomi.eu (Android 9)
MIUI 12 Pro (Castom Assembly)
Port MIUI 12 on Android 10
Another (I will write in the comments)-->
3. Installation of TWRP: without it, nowhere
TWRP (Team Win Recovery Project) is a custom recovery that will allow you to flash MIUI 12. For the Redmi 4X, there are two current versions:
- π± TWRP 3.5.2 - for firmware on Android 9.
- π± TWRP 3.6.0 for Android 10 firmware (but may not work with some ports) MIUI 12).
Installation instructions:
- Download the official TWRP image for Santoni.
- Rename the file to twrp.img and place it in the folder with fastboot (from Platform Tools).
- Connect your phone in Fastboot mode and execute the command: fastboot flash recovery twrp.img fastboot boot twrp.img
- After loading into TWRP Do not reboot to the system β immediately go through Disable_Dm-Verity_ForceEncrypt.zip (Otherwise, the phone will be stuck on the logo).
β οΈ Attention: If after installation TWRP The phone does not load in recovery, make sure you downloaded the version for santoni, not for rolex (Redmi). 4A) Also make sure that the fastboot team doesn't have any typos.
π‘
If TWRP asks for a password when you download it, which means that you have encryption on, so you can turn it off before you install it. TWRP perform reset to factory settings via standard recovery (clip Volume Up). + Nutrition).
4. Step-by-step installation of MIUI 12 via TWRP
Now that you have the bootloader unlocked and you have TWRP installed, you can start the firmware, and it's important to follow the exact sequence to avoid errors.
Algorithm of action:
- Download the selected firmware (for example, xiaomi.eu_multi_HM4X_MI12_V12.0.1.0.QFMCNXM_v12-9.zip) and place it on the internal memory or SD-map.
- Load to TWRP (Loudness Up + Nutrition).
- Complete the full vape (except internal memory!): Wipe β Advanced Wipe β Dalvik / ART Cache, System, Data, Cache
- Install firmware: Install β choose ZIP-file β Swipe to Confirm Flash.
- If the firmware is without GApps, immediately swipe OpenGapps-arm-9.0-pico.zip (for Android 9).
- Reboot β System: The first boot can take up to 15 minutes!
Frequent mistakes and decisions:
- π¨ Error 7 is a mismatch in the model of the device.
- π¨ Error 255 - damaged ZIP-Download the firmware and check the checksum (MD5).
- π¨ Logo obsession MI β Force Encrypt hasn't been disabled. Disable_Dm-Verity_ForceEncrypt.zip.
What if the phone doesnβt load after the firmware?
5. Alternative method: Firmware via Fastboot
If TWRP refuses to work or you prefer a clean installation, you can flash MIUI 12 through Fastboot, a method suitable for official ports (such as Xiaomi.eu) that are distributed as.tgz archives.
Instructions:
- Download fastboot-rom for your model (for example, for the first time, xiaomi.eu_multi_HM4X_V12.0.1.0.QFMCNXM_v12-9-fastboot.tgz).
- Unpack the archive in a folder with Platform Tools (must be files) images/ and flash_all.sh).
- Connect your phone in Fastboot mode and launch the script: flash_all.bat (for Windows or./flash_all.sh (for Linux/macOS).
- Wait until it is completed (the process will take 5-10 minutes).
Advantages of the method:
- β Less risk of errors (firmware is on the official scenario).
- β Not required TWRP.
- β The possibility of obtaining OTA-Updates (if the firmware supports).
Disadvantages:
- β Complete data reset (as opposed to OTA-renewal TWRP).
- β Not all custom firmware is available in fastboot-version.
π‘
Fastboot firmware is the most reliable way for beginners, as it eliminates errors associated with TWRP. However, this method always erases all data on the phone, so backup is a must!
6.Configure MIUI 12 after installation: optimization and bug fix
After a successful firmware, you have to set up the initial setup and possibly fight bugs.
Mandatory steps:
- π Update all apps through the Play Market (especially Google Services).
- π Calibrate the battery: fully discharge and charge the phone 2-3 times.
- π‘ Set up a network: in Settings β SIM-Maps and mobile networks select the preferred network type (e.g, 4G instead 3G).
- π‘οΈ Disable unnecessary permissions for system applications (such as Mi Browser or Mi Video).
Typical bugs and their solutions:
| Problem. | Reason. | Decision |
|---|---|---|
| The camera's not working. | Driver incompatibility | Install a patch for the camera via TWRP |
| Fast battery discharge | MIUI background activity | Disable Auto Sync and Google Play Services Battery Optimization |
| Bluetooth is not working. | Firmware bug on Android 10 | Return to Android 9 or use Bluetooth Auto Connect from Play Market |
| No sound in the headphones. | Failure in audio_policy.conf | Slice the fix for sound. |
Performance tip: In Settings β Special features β Windows resolution set a value of 480 DPI β this will reduce the load on the processor and save battery power.
7.Shockback to stock firmware: if something went wrong
If MIUI 12 is unstable or you donβt like the changes, you can return the original firmware from Xiaomi.
- π₯ Stock firmware for Redmi 4X (for example, MIUI 11 Global Stable).
- π§ Mi Flash Tool (for Fastboot firmware).
- π Patience β the process can take up to 20 minutes.
Step-by-step:
- Download fastboot-rom for your model (for example, for the first time, santoni_global_images_V11.0.2.0.PFMMIXM_20200310.0000.00_9.0_global_4a1a7a7b3d.tgz).
- Unpack the archive in a folder without spaces in the name (for example, C:\santoni_stock).
- Install the Mi Flash Tool.
- Connect your phone in Fastboot mode and in the Mi Flash Tool, select the folder with the firmware.
- Press Refresh, then Flash. At the bottom, select clean all.
- After completion, the phone will reboot to the stock firmware.
β οΈ Warning: After rolling back on the stock firmware, the bootloader will remain unlocked. To return everything "like from the factory", you will need to re-lock it through the Mi Unlock Tool (but this will delete all data and may require a wait of 72 hours).