Xiaomi

Xiaomi Redmi 5A (riva): Stock Firmware Flashing Guide

Complete firmware flashing guide for the Xiaomi Redmi 5A using Mi Flash Tool. Covers Redmi 5A (riva), Qualcomm 9008 drivers, and Mi Flash Fastboot procedures.

Xiaomi Redmi 5A November 2017
Models
MCG3B (Global), MCI3B (India), MCE3B (China)
CPU
Quad-core 1.4 GHz Cortex-A53
GPU
Adreno 308
RAM
2GB / 3GB LPDDR3
Storage
16GB / 32GB eMMC 5.1
Display
5.0-inch IPS LCD (720 x 1280)
Battery
3000 mAh Li-Ion
OS
Android 8.1 Oreo (MIUI 11)
Connectivity
4G LTE, Wi-Fi 802.11 b/g/n, Bluetooth 4.1, microUSB 2.0
Colors: Gold Rose Gold Dark Grey Blue

About the Xiaomi Redmi 5A

The Xiaomi Redmi 5A was released in November 2017, built on the Qualcomm Snapdragon 425 MSM8917 platform. Featuring a 5.0-inch HD display, a 13 MP rear camera with PDAF autofocus, and a 3000 mAh battery, the handset delivered dependable budget performance.

Flashing official factory firmware via Xiaomi Mi Flash Tool repairs soft-bricked handsets, restores damaged partition tables, and reinstates certified MIUI performance. Follow the verified driver setup and flashing steps below to service your device safely.

Which Flash Mode Should You Use?

Qualcomm HS-USB QDLoader 9008 (EDL Mode)

Emergency download mode accessed via motherboard test points. Communicates directly with the Snapdragon 425 boot ROM without requiring an unlocked bootloader.

How to enter
Remove rear casing, short the two gold test points near the battery terminal with tweezers, and plug in the microUSB cable
Requires
Windows PC, Qualcomm QDLoader 9008 drivers, tweezers, Mi Flash Tool / QFIL

Stock Android Recovery Mode

Factory recovery interface for executing data wipes, cache maintenance, or ADB sideload packages.

How to enter
Turn off device, hold Volume Up + Power until the Mi logo appears, then release Power
Requires
Handset only (or PC with ADB platform-tools for sideload)

What You Need Before Flashing

1
Charge Battery

Maintain at least 50% battery level to prevent unexpected power cutoffs during partition writing.

2
USB 2.0 Connection

Connect via a certified microUSB cable directly to a rear USB 2.0 port on the PC motherboard.

3
Qualcomm Drivers

Install Xiaomi Qualcomm USB drivers to ensure Fastboot and EDL 9008 communication.

4
Unlocked Bootloader

Fastboot deployment requires an unlocked bootloader via the official Xiaomi Mi Unlock tool.

How to Flash the Xiaomi Redmi 5A β€” Quick Overview

5-step quick reference for the Xiaomi Redmi 5A. Need visuals or troubleshooting help? The full Mi Flash Tool guide covers everything in detail.

  1. Unlock bootloader & extract Fastboot TGZ archive
  2. Install Qualcomm USB drivers & Mi Flash Tool
  3. Boot Redmi 5A into Fastboot mode
  4. Select firmware folder & choose "clean all"
  5. Flash firmware and await automatic reboot

Firmware Package for MSM8917

Official Fastboot firmware packages for the Xiaomi Redmi 5A (riva) contain partition binaries (boot.img, system.img, recovery.img, cust.img, and modem) executed via flash_all.bat, rawprogram0.xml, and patch0.xml. When loaded in Xiaomi Mi Flash Tool, these scripts flash partition blocks directly to the Qualcomm Snapdragon 425 eMMC 5.1 storage controller.

flash_all.bat

Xiaomi Fastboot packages distribute partition images packaged alongside batch deployment scripts. The flash_all.bat script writes images directly to eMMC partitions via Fastboot.

The Redmi 5A (board codename riva) is powered by the Qualcomm Snapdragon 425 (MSM8917) quad-core processor with 2GB/3GB RAM, 16GB/32GB eMMC 5.1 storage, and a 3000 mAh battery.

Always verify your board codename is "riva" before flashing. Never flash packages meant for the older Redmi 4A (rolex) or sibling Redmi 5 (rosy), as partition structures differ significantly.

Xiaomi Redmi 5A Firmware Versions

Official Global stable Fastboot package for Xiaomi Redmi 5A (riva). Contains raw partition images and deployment scripts.

Version Region Android Version Size MD5 Download
V11.0.2.0.OCKMIXM (20191106.0000.00) Global Stable (MI) β€” Multilingual with GMS Android 8.1 (MIUI 11.0) 1.88 GB 605da3d46df07d6824c84a87f7f96b49 ⬇️ Download

Need additional regional builds or recovery zips? Browse the complete Xiaomi Redmi 5A archive on AndroidFirmwareFile.com →

Xiaomi Redmi 5A β€” Important Notes

Flashing official Fastboot TGZ firmware via Mi Flash Tool resolves bootloops, restores corrupt bootloader partitions, and returns the device to pristine factory software.

If your device is soft-bricked and will not enter Fastboot mode, remove the rear cover and short the two gold EDL test points near the battery terminal with metallic tweezers while inserting the microUSB cable to force Qualcomm HS-USB QDLoader 9008 mode.

Troubleshooting Xiaomi Redmi 5A (riva) Flashing & EDL Issues

Display Driver Conflict: Black Screen or Inverted Touch Post-Flash (Tianma / Shenchao Panels)

The Redmi 5A was manufactured with LCD panels from multiple suppliers (Tianma, Shenchao, and EBBG). Flashing older custom recovery images or mismatched custom kernels lacking multi-panel drivers causes the screen to stay completely black while the system boots. Technicians recommend flashing official stock boot.img packages that include unified panel driver tables.

Boot Failure: "This MIUI version can't be installed on this device" Regional Lockout

Triggered when selecting "clean all and lock" in Mi Flash Tool when flashing Global firmware (OCKMIXM) onto Chinese hardware units (model MCE3B). The bootloader security check detects the region mismatch between software certificates and hardware tags, locking startup. Technicians resolve this by entering EDL 9008 mode via motherboard testpoints and reflashing with "clean all" (flash_all.bat) to leave the bootloader unlocked.

Encountering flashing errors or driver dropouts on the Redmi 5A? Review our workshop troubleshooting notes below. Troubleshooting & Known Quirks β†’

Frequently Asked Questions β€” Xiaomi Redmi 5A

Ready to Flash?

Follow the full step-by-step Mi Flash Tool guide with interactive progress tracking, prerequisite checklist, and complete troubleshooting.

Open Full Guide