Clean Android on Xiaomi Redmi 4A: full instructions from unlock to firmware

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.

πŸ“Š What kind of firmware do you prefer on Xiaomi?
Official MIUI
Pure Android (AOSP)
LineageOS
Pixel Experience
Another.

Preparation for installation: what will be needed

Before starting the process, collect everything you need:

ComponentDescriptionWhere to find it.
ComputerWindows 10/11 or Linux (MacOS not recommended due to fastboot driver issues)β€”
USB cableOriginal cable from Redmi 4A (cheap analogues can cause firmware errors)Phone kit
Drivers.ADB and Fastboot (for Windows - Mi Flash Tool Drivers)Android SDK
FirmwareBuild AOSP, LineageOS or Pixel Experience for rolex/pradaXDA-Developers
TWRP RecoveryVersion. 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:

  1. 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?
If the phone is not identified in the Mi Unlock Tool, check: 1. Are drivers installed (Android Bootloader Interface must be displayed in the Device Manager) 2. Is the original cable used (cheap cables often do not transmit data to fastboot). 3. Are other disabled USB-Devices (port conflicts may block connection) If the problem persists, try unlocking through EDL (Requires an authorized Xiaomi account or paid services like "Mi Flash Pro").

For owners of the Chinese version of Redmi 4A (prada), the standard method may not work.

  1. Use it. EDL-Mode (plug your phone to your PC with the Volume Up button pressed) + Volume down, then insert the cable).
  2. Fastboot firmware via the Mi Flash Tool (select the "clean all and lock" option to avoid blocking).
  3. Repeat the unlocking process through the Mi Unlock Tool.

β˜‘οΈ Preparation for unlocking the loader

Done: 0 / 5

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.

  1. 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.img

The 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.sh

This 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:

FirmwareFeaturesReferenceCons
LineageOSStable, close to stock Android, regular updatesOfficial websiteNo GApps (should be installed separately)
Pixel ExperienceThe interface is like Google Pixel, with Google services out of the boxDownloadSometimes it's on the weak gland.
HaventOSLightweight firmware with optimizations for weak devicesXDA-DevelopersFewer features than in LineageOS
AOSP ExtendedAdvanced settings, themes, gesturesOfficial websiteHigher 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:

  1. Download firmware and GApps (if you need Google services) to your phone or microSD.
  2. Load to TWRP (Loudness Up + Nutrition).
  3. 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 TWRPIncompatibility of firmware with the device or a damaged fileCheck the phone model (rolex/prada) and download the firmware again
The phone does not turn on after the firmwareIncorrect boot.img or recording failureFly the stock firmware through the Mi Flash Tool in EDL mode
No mobile network.No APN settings or incorrect modemSet a fix for the modem or add an APN manually
Bootloop (Cyclical Reboot)Core conflict or the wrong vendorScroll vendor.img from stock firmware
The camera's not working.There are no drivers for the Snapdragon 425Install Google Camera with Camera2API support

If your phone has turned into a hard brick, try to restore it through the phone. EDL-regime:

  1. Download the Redmi 4A stock firmware from the Xiaomi Firmware Updater website.
  2. Unpack the archive and find the file. prog_emmc_firehose_8917.mbn (for Snapdragon 425).
  3. 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.

  1. 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.

FAQ: Frequent questions about installing clean Android on Redmi 4A

Can I install a pure Android without unlocking the bootloader?
No, bootloader unlock is mandatory. Without it, the system won't allow custom recovery or firmware to be flashed, the only exception being the use of exploits (like DirtyCOW), but they only work on older versions of MIUI and don't guarantee success.
Which is the best firmware for Redmi 4A games?
For games, HaventOS or LineageOS with the Perseus kernel are recommended.These builds are optimized for the Snapdragon 425 and have smaller lags in the game. 3D-games (e.g. in the PUBG Mobile or Call of Duty. Also worth: Disable background processes via Settings β†’ Apps. Use Game Booster (available in some custom firmware) Reduce the game resolution to 720p.
How to upgrade to Android on Redmi 4A?
Updates are installed via TWRP or a built-in firmware updater (if supported). Step-by-step: Download a new firmware version (e.g. from LineageOS site). Reboot to TWRP. Backup your current system (Backup β†’ System + Boot). Sweep a new firmware file (without Wipe if the update is "over the air"). Clean up Dalvik/Cache and restart. If the update causes errors, run Dirty Flash (firmware on top of the old version without cleaning).
Why does Bluetooth not work after the firmware?
The problem with Bluetooth on Redmi 4A after installing pure Android is due to the lack of proprietary drivers from Qualcomm. Solutions: Set Bluetooth Library Fix fix (look for 4PDA in your firmware topic).Scroll vendor.img from stock MIUI (via fastboot flash vendor.img).Try another firmware (e.g., Pixel Experience usually has working Bluetooth).
Can I get it? OTA-customization?
Yes, but only if the firmware supports OTA (like the official LineageOS builds or Pixel Experience) for this: Go to Settings β†’ System β†’ System Update. Click Update. If the update is available, download and install it (reboot to TWRP will be required). If the OTA doesn't work, manually update via TWRP (see previous question).