Why do Redmi 5A owners decide to reflash their smartphone?
The budget Xiaomi Redmi 5A (codenamed riva) was released in 2017, but remains popular due to its reliability and ability to upgrade through firmware. Over time, users face slowdowns, lack of security updates or the desire to install custom firmware like LineageOS or Pixel Experience.
β Return the βfactoryβ speed of work if the smartphone began to βbrakeβ after aΓ±os utilization.
β Update the Android version (officially Redmi) 5A It only got Android 7.1 Nougat and it got it. MIUI 12, but custom firmware supports up to Android 13).
β Remove pre-installed applications (bloatware) and optimize power consumption.
β Fix critical errors if the smartphone is not turned on or hovers on the Mi logo.
However, the process has risks: missteps can lead to a βbrickβ (complete device failure) or data loss. This article outlines the ways Redmi 5A flashbacks are relevant for 2026, given the changes in Xiaomiβs policy to unlock the bootloader.
Preparation for Flashing: What to Do Before Starting
Before you start firmware, follow the mandatory steps, which can lead to data loss or the inability to restore the smartphone.
- π± Save all the data: contacts, photos, messages. The firmware erases internal memory (except microSD card). Use Settings β Additionally. β Backup or third-party utilities like Titanium Backup (requires root).
- π Charge the battery to at least 60%. interruption of the process due to battery discharge can make the smartphone inoperable.
- π Download the right firmware. 5A (riva) fit: Official firmware from Xiaomi (select the version for your region: Global, China, EEA). Castomic firmware from forums XDA Developers or 4PDA (For example, Havoc-OS, ArrowOS).
- π Unlock the bootloader (if you plan to install custom firmware). MIUI Updater can be installed without unlocking.
β οΈ Note: If you install firmware for another region (e.g. China instead of Global), Google services may stop working, NFC Check compatibility on forums before choosing.
Method 1: Update via MIUI Updater (official method)
The easiest and safest way is to upgrade through the built-in MIUI Updater app, which is suitable for installing official firmware without unlocking the bootloader and does not require a connection to a PC.
Instructions:
- Open Settings β About the phone and tap 7 times on the MIUI version to activate the developer mode.
- Return to Settings β Additional β For developers and enable USB debugging.
- Download the firmware (.zip) to your smartphone or memory card (do not unpack!).
- Open the MIUI Updater app, click on the three dots in the upper right corner and select Select the firmware file.
- Specify the path to the downloaded file and confirm the installation. The smartphone will reboot to Recovery and begin firmware.
β³ Time of installation: ~10-15 minutes. After you restart, check the version. MIUI In Settings β The phone.
β οΈ Warning: If after the update the smartphone got stuck on the Mi logo, try to pinch the Volume up + 10 seconds power to force reboot, and if that doesn't work, you'll need firmware on Fastboot.
Download the firmware for your model (riva)|Check the battery charge (>50%)|Activate the Developer Mode|Enable debugging on USB|Keeping important data-->
Method 2: Fastboot firmware (for official and custom firmware)
Fastboot is suitable for installing official firmware (if the MIUI Updater doesn't work) or custom firmware after unlocking the bootloader. You'll need a computer with drivers installed. ADB/Fastboot and MiFlash utility.
Step-by-step:
- Unlock the bootloader (if not unlocked): Apply for unlocking through the official Xiaomi website (Mi Account will be required). Download Mi Unlock Tool, connect your smartphone in Fastboot mode (click Volume Down + Power) and follow the program instructions.
.tgz
.img
ADB/Fastboot Tools
MiFlash
Fastboot
MiFlash
Select
Refresh
Flash
| Type of firmware | File format | Do you need unlocking? | Wipes data? |
|---|---|---|---|
| Official (MIUI) | .tgz or.zip | Not (if via MIUI Updater) | No (if upgraded) |
| Official (Fastboot) | .tgz | Yes (if the bootloader is locked) | Yes. |
| Castomium (TWRP) | .zip | Yes. | Yes (if you wipe) |
| Cast-boot (Fastboot) | .img | Yes. | Yes. |
What if MiFlash canβt see the device?
Method 3: Install custom firmware through TWRP
Unofficial firmware installations (such as LineageOS or Pixel Experience) require custom TWRP recavators, which offer more opportunities but also risks.
Steps:
- Download. TWRP for Redmi 5A (twrp-3.7.0_9-0-riva.img).
- Install it with Fastboot: Fastboot Flash Recovery twrp-3.7.0_9-0-riva.img fastboot boot twrp-3.7.0_9-0-riva.img
- In TWRP, make a backup of the current firmware (Backup β Select partitions β Swipe to Backup).
- Flip custom firmware (.zip) through Install. After installation, run Wipe β Format Data (if required).
- Reboot. The first launch can take up to 10 minutes.
π‘
If after firmware custom OS does not work mobile network, check the settings APN In Settings β SIM-maps and mobile networks β Access points (APN). Often helps manually enter operator parameters.
β οΈ Note: Some custom firmware does not support VoLTE and VoWiFi on Redmi 5A. Before installing, check this out on the developer forum.
Common mistakes and their solutions
Even with the correct following of the instructions, there can be problems, and here are the most common ones and ways to fix them:
- π« Error "This package is for riva devices": Reason: You're trying to flash the firmware for another model. 5A (riva).
- π Smartphone is fixated on bootloop: Solution: Log in Recovery (Loudness up) + Power) and run Wipe Data. If it doesn't work, go back to the Fastboot.
- π Computer doesn't see device in Fastboot: Try another cable (original), disable everything USB-PC devices other than mouse and keyboard, and install drivers manually through Device Manager.
- π΅ After firmware no network: Make sure the firmware is compatible with your region. ROM You may need to manually install Google services.
π‘
If the smartphone does not turn on and does not respond to buttons after firmware, do not panic: in 90% of cases it can be restored through the phone. EDL-This will require a Qualcomm box or help from a service center.
How to return the smartphone to factory settings after a failed firmware
If the firmware is faulty and the smartphone is not loading or is not running smoothly, reset to factory settings. There are two ways:
Method 1: Through Recovery
- Turn off your smartphone.
- Press Volume Up + Power to enter Recovery.
- Select Wipe Data β Wipe All Data (use volume buttons for navigation, Power buttons for confirmation).
- Reboot (Reboot)
Method 2: Fastboot (if Recovery is not available)
- Connect your smartphone to your PC in Fastboot mode.
- In the command line, run: fastboot erase userdata fastboot erase cache fastboot reboot
If the reset didnβt help, repeat the firmware from scratch, following the instructions from the previous sections.