Reflashing Xiaomi Redmi Note 5A: official and custom methods

Xiaomi Redmi Note 5A (codenamed ugg/ugglite) remains a popular budget smartphone even years after its release. However, over time, users face slowdowns, no updates or the desire to install custom firmware. Flashing the device can solve these problems, but requires care: wrong actions will lead to a breeze (completely inoperable) phone.

In this guide, we will look at all the current ways to implement the Redmi Note 5A firmware, from official updates via MIUI Updater to custom firmware installation via TWRP and Fastboot. We will focus on unlocking the bootloader, choosing the correct firmware version and typical bugs. Instructions are adapted for 2026, taking into account changes in Xiaomi policy and tool availability.

Warning: firmware voids warranty and can lead to data loss. If you're a beginner, start with official methods and then move on to custom solutions.

Preparation for firmware: what you need to know before starting

Redmi Note 5A flashing is a process that requires preparation, and without it, the risk of errors increases significantly.

  • ๐Ÿ”‹ Battery charge at least 60%. Interrupting the process due to discharge can make the phone inoperable.
  • ๐Ÿ“ฑ Backup. Firmware erases all data (except internal memory in some cases). Use Mi Cloud, Google Drive or local copying on your PC.
  • ๐Ÿ” Custom firmware requires official unlocking via Mi Unlock Tool, which takes up to 720 hours (30 days) of waiting.
  • ๐Ÿ–ฅ๏ธ Drivers and tools. Install the Mi Flash Tool, ADB/Fastboot and drivers for Xiaomi on PC.

Important: Redmi Note 5A models with Snapdragon 425 (ugg) and 435 (ugglite) processor have different firmware. Installing the wrong version will lead to a blink! To find out your modification, go to Settings โ†’ About Phone โ†’ Kernel Version and check the code name.

Also prepare:

  • ๐Ÿ”Œ Cable USB Type-C (original or high-quality) cheap cables can interrupt the connection.
  • ๐Ÿ’ป PC running Windows 7/10/11 (Mi Flash Tool requires Windows).
  • ๐Ÿ“‚ Folder with firmware (official or custom) and tools at the root of the C disk: (paths without Cyrillic!).

โš ๏ธ Please note: if your Redmi Note 5A purchased in China (domestic version), firmware global version can block the network. โ†’ The phone. โ†’ Model: Global versions are labeled Global.

๐Ÿ“Š What type of firmware do you plan to install?
Official MIUI (Stable)
Official MIUI (Developer)
LineageOS (Pixel Experience)
other

Method 1: Update via MIUI Updater (without unlocking)

The safest method is to update through the built-in System Update (MIUI Updater) application, which is suitable for installing official firmware without losing data and does not require unlocking the bootloader.

Algorithm of action:

  1. Open Settings โ†’ About the phone โ†’ System update.
  2. Click on the icon. โ‹ฎ (three dots) in the upper right corner and select Select Service Package.
  3. Specify the path to the downloaded firmware file (.zip format).
  4. Confirm the installation and wait for the reboot.

Advantages of the method:

  • โœ… Does not require unlocking the loader.
  • โœ… Stores user data (unless otherwise specified in the firmware description).
  • โœ… Minimum risk of error.

Limitations:

  • โŒ Only official firmware can be installed. MIUI.
  • โŒ Does not work if the current firmware is very outdated (an intermediate version is required).
  • โŒ Not suitable for transition from China ROM Globally ROM.
Type of firmwareSupport for MIUI UpdaterUnlocking requiredData retention
Stable MIUI (same version)โœ… Yes.โŒ No.โœ… Yes.
Stable MIUI (new version)โœ… Yes.โŒ No.โŒ No (backup recommended)
Castomium (TWRP)โŒ No.โœ… Yes.โŒ No.
Fastboot (official)โŒ No.โœ… Yes.โŒ No.

โš ๏ธ Note: If you update through MIUI Updater appears with the error "Cannot verify update", check the integrity of the firmware file (compare the hash amount with the official) or rename the file to the official one. update.zip and try again.

Download the correct firmware version (Global/China)| Check battery power (>60%) | Create a backup of data |Rename the file to update.zip (if required) | Disable the antivirus on your phone-->

Method 2: Fastboot Firmware (official MIUI)

Fastboot is suitable for installing official firmware when a standard update is not possible (e.g., when a system crashes), requiring an unlocked bootloader and complete data erasure.

Step-by-step:

  1. Download Mi Flash Tool from the official Xiaomi website and firmware in.tgz format for your model (ugg or ugglite).
  2. Unpack the firmware in a folder without spaces (for example, C:\MIUI\ugg_global).
  3. Turn off the phone and press Volume Down + Power to enter Fastboot mode (a picture of a rabbit in a hat will appear).
  4. Connect your phone to your PC and run the Mi Flash Tool on behalf of the administrator.
  5. In the program, click Select, specify the firmware folder, then select Clean all (full cleaning) or Clean all and lock (clean + lock the bootloader).
  6. Press Flash and wait for completion (5-10 minutes). the phone will reboot automatically.

Important nuances:

  • ๐Ÿ”น Clean all and lock will lock the bootloader back. Use this mode if you want to return the phone to factory status.
  • ๐Ÿ”น If the Mi Flash Tool doesnโ€™t see the device, check the drivers (install Mi). USB Driver or try another one USB-port.
  • ๐Ÿ”น For models with ugglite (Snapdragon 435), use firmware marked ugglite in the file name.

Common mistakes and their solutions:

  • ๐Ÿšซ "Flash is not done, try another one. USB-cable or port, disable the antivirus.
  • ๐Ÿšซ "Device Not Found โ€“ Check the drivers or reinstall the Mi Flash Tool.
  • ๐Ÿšซ The phone is stuck on the logo. MI โ€” Do a hard reset (Loudness up) + Nutrition).
What to do if the Mi Flash Tool is 99% deaf?
This problem is often associated with an antivirus or unstable USB-Try: 1. Turn off real-time protection in antivirus. 2. Use USB 2.0 port (not 3.0). 3. Run the Mi Flash Tool in Windows 7.4 compatibility mode. Reinstall drivers manually through Device Manager (select "Xiaomi Mi Composite" MDB Interface").

Method 3: Install custom firmware through TWRP

For enthusiasts who want to install LineageOS, Pixel Experience or other custom firmware, TWRP Recovery is required, a method that gives full control of the system, but requires an unlocked bootloader and an experienced approach.

Instructions:

  1. Unlock the bootloader through the Mi Unlock Tool (instructions in the next section).
  2. Download TWRP for your model: ugg: twrp.me/ugg ugglite: twrp.me/ugglite

TWRP

recovery.img

ADB/Fastboot

USB debugging

Settings โ†’ For developers

ADB

adb reboot bootloader


fastboot flash recovery recovery.img




fastboot boot recovery.img

TWRP

Wipe โ†’ Advanced Wipe

Dalvik, Cache, System, Data

Install

Magisk

Reboot to the system.

Recommended custom firmware for Redmi Note 5A:

  • ๐Ÿ“ฑ LineageOS 18.1 (Android 11) is stable and optimized.
  • ๐Ÿ“ฑ Pixel Experience โ€“ The interface is like Google Pixel.
  • ๐Ÿ“ฑ Havoc-OS โ€“ flexible configuration and high FPS play.

โš ๏ธ Note: Install custom firmware on Redmi Note 5A With a Snapdragon 425 (ugg) processor, you may have problems with your camera or mobile network. XDA Developers.

๐Ÿ’ก

If after installing custom firmware does not work mobile network, try to sew separately modem module from stock firmware through TWRP. To do this, download the official firmware, extract the file modem.img and install it as a regular ZIP.

Unlocking the bootloader: a step-by-step guide

Without unlocking the bootloader, you canโ€™t install custom recovery or firmware. Xiaomi has tightened the rules, now it takes up to 30 days to wait (720 hours), a process that consists of two steps: linking the account to the device and actually unlocking.

What you need:

  • ๐Ÿ“ฑ Phone with MIUI (custom-free!).
  • ๐Ÿ”‘ Mi Account with a confirmed phone number.
  • ๐Ÿ–ฅ๏ธ PC with Mi Unlock Tool (download from the en.miui.com/unlock).
  • ๐Ÿ”Œ Original. USB-cable.

Instructions:

  1. Enable OEM Unlock and USB Debugging in Settings โ†’ For Developers.
  2. Link your Mi Account to your device: Settings โ†’ Mi Account โ†’ Link your account.
  3. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  4. Connect your phone to your PC and start the Mi Unlock Tool (autonomy required).
  5. Press Unlock. If you receive a waiting message, wait until the specified time (usually 168 or 720 hours).
  6. After the wait is over, repeat the process โ€“ the bootloader will be unlocked.

Frequent problems:

  • ๐Ÿšซ "Cannโ€™t unlock โ€“ check if your account is linked to your device and enabled OEM Unlock.
  • ๐Ÿšซ "Device Not Connected โ€“ Install drivers manually or try another one USB-port.
  • ๐Ÿšซ Waiting timer resets โ€“ donโ€™t log out of your Mi Account or drop your phone.

๐Ÿ’ก

Unlocking the bootloader on the Xiaomi Redmi Note 5A takes up to 30 days (720 hours) a process that cannot be accelerated or circumvented by official methods.

Solving typical firmware errors

Even when following instructions, users encounter errors, and let's look at the most common ones and how to fix them.

Mistake.Reason.Decision
Error 7 in TWRPIncompatibility of the firmware with the deviceCheck the model (ugg/ugglite) and download the correct firmware
The phone is stuck on the MI logoFailed firmware or failureLog in to Fastboot and run the official firmware through the Mi Flash Tool
Anti-rollback errorReverse to the old version of MIUIInstall a newer firmware or run through Fastboot with a Clean all and lock tick
No network after firmwareThere is no modem or incorrect settingsSwitch modem.img from stock firmware or reset network settings

If the phone doesnโ€™t turn on after firmware (black screen, vibration without image), try:

  1. Press Volume up + Power for 10-15 seconds for hard reset.
  2. Connect to charging for 30 minutes - sometimes helps with the discharge of the battery.
  3. Swipe through Fastboot with the clean all tick.

To diagnose problems with Fastboot, use the following commands:

fastboot devices # Check the connection


fastboot getvar all # View device information




fastboot oem device-info # Unlock status of bootloader

Selection of firmware: official MIUI vs custom solutions

Which firmware to choose for the Redmi Note 5A? It depends on your goals:

Official MIUI:

  • โœ… Stable work and support of Xiaomi.
  • โœ… Regular security updates (for current versions).
  • โœ… Full compatibility with iron (camera, network, sensors).
  • โŒ Many pre-installed applications (bloatware).
  • โŒ Limited Customization Opportunities.

Custom firmware (LineageOS, Pixel Experience, etc.):

  • โœ… Clean Android without unnecessary apps.
  • โœ… Longer supported updates (e.g. Android 11 on Redmi Note) 5A).
  • โœ… Advanced settings (kernel, interface, performance).
  • โŒ Possible bugs (for example, non-functioning) NFC camera).
  • โŒ No official support from Xiaomi.

Selection recommendations:

  • ๐Ÿ”น For everyday use, official MIUI (stable-developer).
  • ๐Ÿ”น For experiments and new versions of Android โ€“ LineageOS or Pixel Experience.
  • ๐Ÿ”น For gaming and performance, Havoc-OS or Corvus OS.

Where to download firmware:

  • ๐Ÿ“ฅ Official: miui.com (select Redmi Note) 5A โ†’ ugg/ugglite).
  • ๐Ÿ“ฅ Castomy: XDA Developers or LineageOS.

FAQ: Frequent questions about the Redmi Note firmware 5A

Can I flash Redmi Note 5A without unlocking the bootloader?
Yes, but only official firmware via MIUI Updater or Fastboot with a locked bootloader (not all versions support this).
How do I know if the boot loader is unlocked?
Turn off your phone and press Volume Down + Power to log in to Fastboot. If the bottom of the screen says "Unlocked" - the bootloader is unlocked. You can also check by command: fastboot oem device-info Look for Device unlocked: true.
Why is the camera or mobile network not working after the firmware?
This is a typical problem when installing custom firmware on the Redmi Note. 5A, Especially with the Snapdragon model. 425 (Solutions: Please submit separately modem.img and persist.img Try another custom firmware version (for example, install Pixel Experience instead of LineageOS). MIUI via Fastboot.
How to return the official firmware after custom?
Download the official.tgz firmware for your model and run it through the Mi Flash Tool with the Clean all and lock option, which will return the phone to factory status and lock the bootloader.
How long does it take to get through Fastboot?
The process takes 5 to 15 minutes depending on the speed USB-If the Mi Flash Tool freezes 99% longer than 10 minutes, check the connection or restart the process.