Xiaomi Redmi Smartphone 5A (The code name riva is still popular among users due to its reliability and the ability to install custom firmware. MIUI It starts to slow down and official updates stop coming out. Flashing the device can return it to its former performance, add new features or even install Android 12/13 through informal assembly.
In this article, you will find the most relevant ways to reflash Redmi. 5A 2026 โ from official update through MIUI Updater before installing custom firmware through TWRP We will discuss each step in detail: from unlocking the bootloader to solving typical errors like Error 7 or hanging on the Mi logo. Particular attention is paid to data security and the nuances of working with Qualcomm Snapdragon 425, which is built on the smartphone.
Before you start, consider that flashing will void the warranty (if it still works) and can lead to a device blink if you do the wrong thing. You do all the manipulations at your own risk. If you're a beginner, start with the official methods and then move on to custom solutions.
1. Preparation for flashing: what to do before the start
Regardless of the firmware method chosen, device preparation is a critical step, and neglecting it can lead to data loss, inability to restore a smartphone, or even failure.
The first thing you need to do is back up all the important data, even if you plan to update through the Internet. MIUI Updater, a failure in the process can erase user files:
- ๐ฑ Local backup through Settings โ Additionally. โ Backup and reset (keeps contacts, SMS, application settings).
- โ๏ธ Xiaomi Cloud (requires authorization in Mi Account) โ syncs photos, notes and some settings.
- ๐ป Manual copying on PC (photos, videos, documents) MTP or ADB pull.
Second, check the version. MIUI And the build number, which will help you choose the right firmware. โ About the phone and write it down:
- ๐ Version MIUI (for example, MIUI Global 12.5.3).
- ๐ข Assembly number (e.g, V12.5.3.0.RCCMIXM).
- ๐ง Android version (such as Android 11).
โ ๏ธ Attention: If your Redmi is 5A It was bought in China, it can work for China. ROM Chinese-linked services. Global flashing ROM In this case, it requires mandatory unlocking of the bootloader, otherwise the device will turn into a โbrick".
The third step is to charge the battery, make sure it's at least 60 percent charge, and it can take 10 to 40 minutes to run the firmware, and it'll crash in the process.
- ๐ Cable USB Type-C (original or certified).
- ๐ฅ๏ธ Windows computer 10/11 (for the Fastboot methods and TWRP).
- ๐ ๏ธ Used by Mi Flash Tool, ADB/Fastboot, Qualcomm drivers.
Check the model of the device (must be Redmi) 5A, riva)|
Create a backup of the data |
Charge your phone to at least 60% |
Download the correct version of the firmware|
Install ADB/Fastboot drivers on PC|
Disable antivirus (can block firmware utilities)-->
2. Official firmware via MIUI Updater (without unlocking)
The safest way to upgrade to Redmi 5A โ built-in MIUI Updater.This method does not require unlocking the bootloader and is suitable for installing official stable or beta versions. MIUI.
Instructions:
- Open Settings โ About the phone โ System update.
- Click on the icon. โฎ (three dots) in the upper right corner and select Select firmware file.
- Specify the path to the downloaded firmware file (should have the.zip extension and weigh ~1.5โ2 GB).
- Confirm the installation and wait for the reboot.
Where to download the official firmware?
- ๐ Global Stable: Xiaomi's official website (choose Redmi) 5A โ Stable).
- ๐จ๐ณ China ROM: miui.com (Chinese versions only).
- ๐งช Beta versions: via Mi Community (requires registration).
โ ๏ธ Note: If you select a firmware file with an error "This package is for 'riva' devices; this is a 'riva'", you have downloaded the firmware for another model or region: miui_HM5AGlobal_V12.5.3.0.RCCMIXM_....
Advantages of the method:
- โ Does not require unlocking the loader.
- โ Stores user data (unless otherwise stated).
- โ Xiaomi supports (less risks).
Disadvantages:
- โ There is no way to revert to the old version.
- โ Limited choice of firmware (official only).
Official. MIUI (stable)|
LineageOS (Pixel Experience)|
Stock Android (without stock) MIUI)|
I don't know what to choose.-->
3. Unlocking the bootloader: a mandatory step for custom firmware
If you plan to install TWRP, LineageOS or any other unofficial firmware, you first need to unlock the bootloader. Xiaomi blocks it by default to protect against unauthorized changes.
The unlocking process includes several stages:
- Linking your Mi Account to your device: Go to Settings โ Xiaomi account โ Mi Cloud and log in. Enable Settings โ Additionally. โ For developers โ Linking the Mi Account.
- Getting permission to unlock: Download Mi Unlock Tool from the official website. Launch the utility on your PC, log in to the same Mi Account as on your phone. Connect your phone in Fastboot mode (turn off the device, then press Volume down). + Nutrition).
Waiting for confirmation
- Xiaomi can request a wait of up to 72โ168 hours (3โ7 days) before unlocking.
- At the end of the term, try again in the Mi Unlock Tool.
Important nuances:
- ๐ The account binding must be active at the time of unlocking. If you reset the phone to factory settings, the binding will reset!
- ๐ The waiting period may be reset when changing SIM-card or Mi Account.
- ๐ง Drivers: Make sure that drivers are installed on the PC ADB/Fastboot (can be downloaded SDK Platform Tools by Google).
| Problem. | Reason. | Decision |
|---|---|---|
| The "Couldn't unlock" error in the Mi Unlock Tool | Waiting period has not expired (72)+ hours) | Wait for the time and try again. |
| Phone is not defined in Fastboot | There are no Qualcomm drivers | Install QDLoader HS-USB Driver manually |
| After unlocking the phone is stuck on the logo | Data reset after unlocking | Run Wipe Data in Recovery |
| Mi Unlock Tool writes "Account not bound" | The account is not tied to the device | Repeat the binding in the phone settings |
โ ๏ธ Note: After unlocking the Redmi bootloader 5A It'll automatically do a hard reset. All data will be erased! It's an irreversible process, so check backups again.
1. Delete the Mi Account on the phone.
2. Add it again.
3. Repeat the binding in the developer settings.
This bug often occurs when you change your password in your Mi Account.-->
4. Installation of custom Recovery (TWRP) on the Redmi 5A
TWRP (Team Win Recovery Project is an alternative recovery that allows custom firmware installation, backups and system repair. 5A There is a stable version. TWRP 3.6.2, Android-compatible 11/12.
Installation instructions:
- Download the image TWRP For riva: Official site: twrp.me. or verified sources: XDA Developers.
The file should be called twrp-3.6.2_9-0-riva.img (or newer).
Transfer the phone to Fastboot mode
(a) Turn off the device.
(b) Press <Loud down> + <Power button> before the Fastboot logo appears.Please. TWRP via Fastboot
fastboot flash recovery twrp-3.6.2_9-0-riva.img
fastboot boot twrp-3.6.2_9-0-riva.imgAfter the second command, the phone will automatically reboot to TWRP.
Turn off the check. MIUI
V TWRP Go to Mount. โ Disable MIUI Anti-Rollback (if there is such a clause).
Important: After installation TWRP Do not reboot to the system if you plan to sew custom firmware! MIUI may re-write TWRP Instead, start the firmware right away.
Challenges and solutions:
- ๐ TWRP not start after firmware โ Repeat the command fastboot boot twrp.img.
- ๐ต After installation TWRP phone gets stuck โ Run the Wipe. โ Format Data (Data Loss!).
How to return standard recovery after TWRP?
5. Custom firmware ROM (LineageOS, Pixel Experience, HavocOS)
Castom firmware opens up new opportunities for Redmi 5A: Updated Android, no advertising in the MIUI, Improved performance, however, their installation requires an unlocked bootloader and TWRP.
Popular firmware for riva:
| Firmware | Android version | Features | Reference |
|---|---|---|---|
| LineageOS 19 | 12 | Clean Android, stable operation | XDA |
| Pixel Experience | 12/13 | The interface is like Google Pixel | Official website |
| HavocOS | 11 | Maximum customization | HavocOS |
| crDroid | 12 | Balance of productivity and function | crDroid |
Step-by-step:
- Download firmware and GApps (if you need Google services): Firmware: select from the table above (.zip format). GApps: OpenGApps (select option arm64 โ 11/12 โ pico).
- Transfer files to your phone: Connect the device to the PC in mode MTP (into TWRP: Mount โ Enable MTP). Copy. ROM.zip and GApps.zip phone-memory.
Perform the cleanup.
- In TWRP, select Wipe โ Advanced Wipe.
- Mark Dalvik, Cache, System, Data (donโt touch Internal Storage if thereโs firmware in there!).
- Install firmware and GApps: (a) Press Install โ choose ROM.zip โ Swipe to confirm. b Repeat to GApps.zip (If necessary. c) Reboot to the system (Reboot) โ System).
โ ๏ธ Attention: Firmware based on Android 12+ You may not be able to encrypt data on Redmi. 5A Because of the hardware limitations of the Snapdragon 425 processor, if you're running your phone and you don't set it, you can run the data format on the phone. TWRP (Wipe โ Format Data โ yes).
Typical errors and decisions:
- ๐ซ 7-in error TWRP โ Incompatible with the device. Check the model (riva) and version MIUI.
๐ก
Custom firmware requires regular updates! Watch out for new builds on forums XDA or 4PDA, As older versions may contain vulnerabilities.
6. Firmware via Fastboot (Mi Flash Tool)
Fastboot method is suitable for installation of official firmware (for example, when recovering from a failure) or custom Fastboot-ROM. TWRP, But you need to unlock the loader.
Instructions:
- Download firmware in.tgz or.zip: Official: Xiaomi Firmware (choose Fastboot). Custom: check for compatibility with riva.
Unpack the firmware.
C:\redmi5a_fastboot
Mi Flash Tool
- Download from the official website.
- Launch on behalf of the administrator.
- Connect your phone in Fastboot mode and swipe: (a) In Mi Flash, press Select and specify the firmware folder. (b) Press Refresh - the device must be determined. (c) Select firmware mode: - Clean all (recommended) - complete cleanup. - Clean all and lock - cleaning + bootloader lock (official firmware only!!) Press Flash and wait for completion (5-10 minutes).
Advantages of the method:
- โ Suitable for the restoration of bricks".
- โ You can even make a formal firmware without TWRP.
Disadvantages:
- โ Requires an unlocked bootloader.
- โ Completely erases data (except for Internal Storage).
If the Mi Flash Tool is not correct,
- ๐ต Phone's not being determined. โ Run Mi Flash on behalf of the administrator.
7. Solving Typical Errors After Firmware
Even with the right Redmi firmware 5A It can be unstable. Let's look at the most common problems and their solutions.
1.The phone is stuck on the Mi or Android logo:
- ๐ Reboot to Recovery (Loudness Up). + Power) and perform Wipe Cache.
- ๐ต If it doesnโt work, repeat the firmware with full cleaning (Wipe Data).
- ๐ง For custom firmware, check compatibility with your firmware version.
2. No network (IMEI Missing or "Emergency Calls Only"):
- ๐ก Check if the modem is in the firmware).
- ๐ข Restore. IMEI via Engineer Mode: (a) Dial ##4636#.b Go to Information โ Run Ping Test. in If IMEI Not available, use Maui META or SN Write Tool (requires NV-data backup).
Fast battery discharge after firmware:
- ๐ Calibrate the battery: Charge the phone to 100%. Turn off charging and use until full discharge (0%). Repeat the cycle 2-3 times.
- โ๏ธ Check the background processes in Settings โ Battery.
4. Google services are not working (the error "Google Play Services has stopped"):
- โ๏ธ Re-flash GApps (choose the pico or nano version).
- ๐ Clear the Google Play Services cache in Settings โ Annexes.
- ๐ฅ Install the latest version of Google Play Services manually (APK).