Xiaomi Redmi 4A (codenamed rolex for the global version or prada for the Chinese) is still a popular budget smartphone, but its proprietary shell MIUI is not everyoneβs liking. Installing pure Android (AOSP) allows you to get rid of unnecessary Xiaomi services, get current security updates and smoother work. However, the process requires care: wrong actions can turn the phone into a βbrickβ.
In this guide, we will analyze all the stages - from unlocking the bootloader to choosing the optimal custom firmware, taking into account the specifics of Redmi. 4A (including problems with EDL-The instructions are relevant for 2026 and take into account changes in Xiaomiβs policy to unlock the bootloader.
Why you should install a clean Android on Redmi 4A
The proprietary MIUI firmware on Redmi 4A has a number of drawbacks that the transition to the AOSP (Android Open Source Project) solves:
- π Performance: the absence of background processes Xiaomi increases the speed of work by 20-30% (tests on rolex with 2 GB of RAM).
- π Privacy: no data collection via Mi Cloud, Analytics and other Xiaomi services.
- π± Updates: Most custom firmware supports fresh security patches (unlike the official ones) MIUI, renewal).
- π¨ Customization flexibility: the ability to install themes, launchers and modifications without restrictions MIUI.
There are, however, downsides:
- β οΈ Loss of functions: some features of Redmi 4A (for example, IR-The blaster or camera modes may not work properly.
- π Autonomy: Pure Android often consumes battery faster due to lack of Xiaomi optimizations.
- π οΈ Risk of βbrickingβ: if errors in the firmware process, the phone may stop turning on.
β οΈ Attention: On Redmi 4A With a Snapdragon 425 processor, some custom firmware may not support hardware video acceleration (manifested as "teared" playback on YouTube). 4PDA or XDA-Developers.
Preparation for installation: what will be needed
Before starting the process, collect everything you need:
| Component | Description | Where to find it. |
|---|---|---|
| Computer | Windows 10/11 or Linux (MacOS not recommended due to fastboot driver issues) | β |
| USB cable | Original cable from Redmi 4A (cheap analogues can cause firmware errors) | Phone kit |
| Drivers. | ADB and Fastboot (for Windows - Mi Flash Tool Drivers) | Android SDK |
| Firmware | Build AOSP, LineageOS or Pixel Experience for rolex/prada | XDA-Developers |
| TWRP Recovery | Version. 3.6.0 or newer (for Redmi) 4A fitting twrp-3.7.0_9-0-rolex.img) | Official website of TWRP |
Important: Before you start, back up all your data. The firmware erases your phone's internal memory!
- π Files: copy to PC or cloud (Google Drive, Mega).
- π Contacts: sync with your Google account.
- πΈ Photos/Video: Use Google Photos or Mi Mover.
- π Passwords: Export from your browser or password manager.
β οΈ Attention: If your Redmi is 4A was purchased in China (prada version), to unlock the bootloader may require a link to a Chinese account MI. In this case, use the bypass methods through EDL (More in the section on unlocking).
Unlock the bootloader on Redmi 4A
Xiaomi blocks the bootloader on all devices, so the first step is to unlock it.The process takes 3 to 7 days (due to checking the Xiaomi account) and consists of several steps:
- Account binding MI: π± Go to Settings. β The phone. β Version. MIUI (Press 7 times to activate the developer mode). π§ Back to Settings β Additionally. β For developers and include OEM-unlocking and debugging USB. π Link your Xiaomi account to Settings β Mi Account (required to confirm email and phone!).
Request for unblocking:
- π₯οΈ Download Mi Unlock Tool and launch it on PC.
- π Sign in under the same account MI, as on the phone.
- π± Get Redmi on board. 4A in fastboot mode (turn off the phone, then press Volume down) + Nutrition).
- β³ Wait for a successful link (usually 168 hours).
If the Mi Unlock Tool gives you a "Couldn't unlock" error after waiting, try:
- π Reconnect the phone to another USB-port (preferably) USB 2.0).
- π§ Disable antivirus and firewall on PC.
- π‘ Use another account MI (Sometimes it helps to register through VPN Chinese IP).
What if the Mi Unlock Tool can't see the phone?
For owners of the Chinese version of Redmi 4A (prada), the standard method may not work.
- Use it. EDL-Mode (plug your phone to your PC with the Volume Up button pressed) + Volume down, then insert the cable).
- Fastboot firmware via the Mi Flash Tool (select the "clean all and lock" option to avoid blocking).
- Repeat the unlocking process through the Mi Unlock Tool.
βοΈ Preparation for unlocking the loader
Installation of TWRP Recovery
TWRP (Team Win Recovery Project) is a custom recovery required for firmware and backup installation. Redmi 4A is suitable for version 3.7.0 or later.
- Downloading TWRP: Download the image for your model: π For the global version (rolex): twrp-3.7.0_9-0-rolex.img π¨π³ For the Chinese version (prada): twrp-3.6.0_prada.img
Firmware via fastboot:
fastboot flash recovery twrp-3.7.0_9-0-rolex.img
fastboot boot twrp-3.7.0_9-0-rolex.imgThe first command flashes the TWRP to the recovery section, the second immediately loads the phone into it.
Recovery replacement lock:
After the first download to TWRP, do:
adb shell
echo "setprop sys.usb.config diag,adb" > /data/local/tmp/boot-debug.sh
chmod 755 /data/local/tmp/boot-debug.shThis will prevent the automatic replacement of TWRP with stock recovery when rebooted.
If after TWRP firmware the phone loads into stock recovery, then the protection of Xiaomi has worked.
- π Repeat the firmware. TWRP, But after the command fastboot flash recovery immediately perform fastboot oem reboot-recovery.
- π§ V TWRP Go to Mount. β Enable MTP And copy the file to the phone. disable_miui_anti_rollback.zip (can be found 4PDA), Then you run it through.
β οΈ Note: Some versions of Redmi 4A s MIUI 12+ installation TWRP This can trigger an anti-rollback, which locks the phone with the error "This" MIUI To avoid this, use firmware based on Android 7.1.2 or later.
Selection and installation of custom firmware
For Redmi 4A, there are several types of firmware based on pure Android:
| Firmware | Features | Reference | Cons |
|---|---|---|---|
| LineageOS | Stable, close to stock Android, regular updates | Official website | No GApps (should be installed separately) |
| Pixel Experience | The interface is like Google Pixel, with Google services out of the box | Download | Sometimes it's on the weak gland. |
| HaventOS | Lightweight firmware with optimizations for weak devices | XDA-Developers | Fewer features than in LineageOS |
| AOSP Extended | Advanced settings, themes, gestures | Official website | Higher battery consumption |
Selection recommendations:
- π LineageOS 18.1 (Android 11) is the most well-established build for Redmi 4A.
- π± Pixel Experience 11 (but can slow down in games).
- β‘ For maximum performance: HaventOS (optimized for Snapdragon 425).
Installation process:
- Download firmware and GApps (if you need Google services) to your phone or microSD.
- Load to TWRP (Loudness Up + Nutrition).
- Run the Wipe. β Advanced Wipe and mark: ποΈ Dalvik / ART Cache π System π Data π Cache
GApps
Reboot β System
The first download can take up to 10 minutes - don't interrupt! If the phone has been stuck on the logo for longer than 15 minutes, then an error has occurred (see the "Problem Solving" section).
π‘
If there is no mobile network after firmware, check the APN settings. Go to Settings β Network and Internet β Mobile Network β Access Points (APN) and add your operatorβs settings manually.
Addressing common mistakes
When installing pure Android on Redmi 4A, users often face the following problems:
| Mistake. | Reason. | Decision |
|---|---|---|
| Error 7 in TWRP | Incompatibility of firmware with the device or a damaged file | Check the phone model (rolex/prada) and download the firmware again |
| The phone does not turn on after the firmware | Incorrect boot.img or recording failure | Fly the stock firmware through the Mi Flash Tool in EDL mode |
| No mobile network. | No APN settings or incorrect modem | Set a fix for the modem or add an APN manually |
| Bootloop (Cyclical Reboot) | Core conflict or the wrong vendor | Scroll vendor.img from stock firmware |
| The camera's not working. | There are no drivers for the Snapdragon 425 | Install Google Camera with Camera2API support |
If your phone has turned into a hard brick, try to restore it through the phone. EDL-regime:
- Download the Redmi 4A stock firmware from the Xiaomi Firmware Updater website.
- Unpack the archive and find the file. prog_emmc_firehose_8917.mbn (for Snapdragon 425).
- Use the Mi Flash Tool or QFil for firmware in EDL mode.
Return to MIUI: How to Reverse the Way
If you don't have a clean Android, you can go back to MIUI.
- Download stock firmware for Redmi 4A: π Global version: MIUI Global π¨π³ Chinese version: MIUI China
flash_all.bat
flash_all.sh
fastboot
Wait until the process is completed (the process will take ~5-10 minutes).
If after returning to MIUI, the phone asks for authorization of the Xiaomi account (even if you did not put it), then FRP (Factory Reset Protection) protection has worked.
- π Enter the account that was tied to the firmware.
- π§ If you donβt remember the data, use the Mi Account Unlock Tool (requires PC and connection in mode). EDL).
β οΈ Note: When returning to the MIUI All data will be erased via fastboot, including photos and apps on internal memory. If you want to save files, copy them to a PC or microSD before you run the firmware.