Xiaomi

Xiaomi Redmi Note 5A Prime / Y1 (ugg): Stock Firmware Flashing Guide

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

Xiaomi Redmi Note 5A Prime / Redmi Y1 November 2017
Models
MDG6S, MDI6S, MDE6S
CPU
Octa-core 1.4 GHz Cortex-A53
GPU
Qualcomm Adreno 505
RAM
3 GB / 4 GB LPDDR3
Storage
32 GB / 64 GB eMMC 5.1 (dedicated microSD up to 256 GB)
Display
5.5" IPS LCD, HD 720Γ—1280 pixels (16:9 ratio, 267 ppi, Corning Gorilla Glass 3)
Battery
3080 mAh Li-Ion (non-removable, 5V/2A charging)
OS
Android 7.1.2 Nougat (MIUI 11)
Connectivity
4G LTE, Dual SIM (Nano-SIM) + microSD, Wi-Fi 802.11 b/g/n, Bluetooth 4.2, microUSB 2.0, 3.5mm jack, IR blaster
Colors: Gold Dark Grey Silver Rose Gold

About the Xiaomi Redmi Note 5A Prime / Redmi Y1

The Xiaomi Redmi Note 5A Prime / Redmi Y1 was released in November 2017, built on the Qualcomm Snapdragon 435 MSM8940 (28nm LP, 64-bit Octa-core 1.4 GHz Cortex-A53) platform. Featuring a 5.5-inch 720p HD display, a 16 MP front selfie camera, and a 3080 mAh battery, the device represents the high-edition variant with a rear fingerprint scanner.

Flashing official stock firmware using Xiaomi Mi Flash Tool repairs soft-bricked devices, recovers corrupted bootloader blocks, and restores original MIUI performance. Follow the verified driver preparation and procedural steps below to flash 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 435 boot ROM without requiring bootloader unlocking.

How to enter
Remove rear cover, 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

Stock Android Recovery Mode

Stock recovery interface for executing factory data wipes or clearing cache partitions.

How to enter
With phone powered off, press and hold Volume Up + Power buttons simultaneously until the Mi recovery logo appears
Requires
Handset only (no computer needed)

What You Need Before Flashing

1
Windows PC & Mi Flash Tool

A PC running 64-bit Windows with Mi Flash Tool and official Qualcomm USB drivers installed.

2
Verified Fastboot TGZ Package

Download and extract the official V11.0.2.0.NDKMIXM archive twice with 7-Zip until flash_all.bat is visible.

3
50%+ Battery Charge

Ensure the 3080mAh battery has at least 50% charge to ensure stable power delivery throughout the flashing process.

4
Direct Motherboard USB Port

Use a quality microUSB data cable connected directly to a rear USB 2.0 port on the computer motherboard.

5
Select "Clean All" Option

In Mi Flash Tool, select "clean all" at the bottom right. Never select "clean all and lock" on regional conversions.

How to Flash the Xiaomi Redmi Note 5A Prime / Redmi Y1 β€” Quick Overview

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

  1. Unlock bootloader & extract Fastboot TGZ archive
  2. Install Xiaomi Qualcomm Drivers & Mi Flash Tool
  3. Boot Redmi Note 5A Prime into Fastboot mode
  4. Configure Mi Flash Tool & select "clean all"
  5. Flash firmware and wait for automatic reboot

Fastboot Rawprogram XML & Firmware Package for Snapdragon 435

Official Fastboot firmware packages for the Xiaomi Redmi Note 5A Prime (ugg) contain partition binaries (boot.img, system.img, recovery.img, cust.img, and modem) configured via flash_all.bat, rawprogram0.xml, and patch0.xml. When loaded in Mi Flash Tool, these scripts write partition images directly to the Qualcomm Snapdragon 435 eMMC controller.

rawprogram0.xml

Official factory Fastboot firmware for the Xiaomi Redmi Note 5A Prime utilizes rawprogram0.xml and patch0.xml executed through flash_all.bat. In Mi Flash Tool, select the root extracted folder containing these scripts.

The Redmi Note 5A Prime / Redmi Y1 (board codename ugg) is built on the Qualcomm Snapdragon 435 (MSM8940) octa-core processor with 3GB/4GB RAM, 32GB/64GB eMMC 5.1 storage, and a 3080mAh battery.

Ensure you identify your board codename as "ugg" prior to flashing. Packages marked "ugglite" belong to the quad-core Snapdragon 425 standard edition and will fail DRAM initialization on this board.

Xiaomi Redmi Note 5A Prime / Redmi Y1 Firmware Versions

Tested stock firmware package for the confirmed hardware variant of the Xiaomi Redmi Note 5A Prime / Redmi Y1. Always confirm your model codename is "ugg" before flashing.

Version Region Android Version Size MD5 Download
V11.0.2.0.NDKMIXM (20191022.0000.00) Global Stable (MI) β€” Multilingual Android 7.1.2 (MIUI 11.0) 1.80 GB 554b873d3da9487e1be2bf67cd4147da ⬇️ Download

This device family includes 3 verified packages across Global, China, and Xiaomi.eu multi-language releases. Browse the complete 3-package archive on AndroidFirmwareFile.com β†’

Xiaomi Redmi Note 5A Prime / Redmi Y1 β€” Important Notes

Flashing official Fastboot TGZ firmware via Mi Flash Tool restores corrupted bootloader partitions, fixes infinite bootloops, and returns the device to a clean factory state.

If your device is hard-bricked, refuses to boot into Fastboot, or remains unrecognised, remove the rear cover and short the two gold EDL test points near the battery ribbon with tweezers while inserting the microUSB cable to force Qualcomm HS-USB QDLoader 9008 mode.

Troubleshooting Xiaomi Redmi Note 5A Prime (ugg) Mi Flash & Fastboot Errors

Camera Crash: "Can't connect to camera" & front selfie light inactive post-flash

Redmi Note 5A Prime incorporates a specialized 16 MP OmniVision front sensor and a dedicated selfie LED flash controller that relies on vendor calibration libraries in the cust and persist partitions. If flashing scripts omit persist or if custom ROMs mishandle camera HAL binaries, the front camera crashes immediately upon opening. Community repair discussions indicate this is resolved by executing a full Fastboot flash via flash_all.bat to restore stock vendor blobs.

Biometrics Failure: Fingerprint settings missing from menu (ugglite cross-flash or TrustZone desync)

Unlike the base Note 5A, the Prime edition features a rear-mounted fingerprint scanner (FPC/Goodix). When users accidentally flash standard Note 5A (ugglite) firmware, or if the tz (TrustZone) security binary is desynchronized during partial flashing, the system fails to bind the fingerprint hardware daemon. Repair technicians recommend verifying that the package codename is strictly "ugg" and flashing official tz.mbn and keymaster.mbn binaries.

For in-depth Xiaomi Fastboot error explanations, EDL testpoint walkthroughs, and Sahara resolution steps: Mi Flash Tool Error Directory β†’

Frequently Asked Questions β€” Xiaomi Redmi Note 5A Prime / Redmi Y1

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