Xiaomi Redmi Note 5A (The codename ugg remains a popular budget smartphone even years after its release, but over time, the deviceβs performance may decline due to outdated software, and official updates from Xiaomi for this model have long been discontinued. Firmware allows you not only to update Android to the current version, but also to improve performance, add new features or even install custom software like LineageOS.
In this guide, we will analyze all available ways to flash Redmi Note 5A β from official updates through MIUI Updater before installing unofficial firmware through TWRP We will pay special attention to unlocking the bootloader without waiting for 720 hours (current for 2026) and solving typical errors such as anti-rollback or bootloop.
Preparation for Flashing: What You Need to Know Before You Start
Flashing is not just about clicking the "Update" button, but doing the wrong thing can turn your Redmi Note. 5A Check the brick before you start:
- π Battery charge at least 70%, and interruption due to discharge is almost guaranteed to cause a failure.
- π± Model of the device: flashing for Redmi Note 5A Prime (ugg) will not work for the basic version (ugglite). β The phone. β Model.
- π Backup: All data (photos, contacts, messages) will be erased. Use Mi Cloud or adb backup.
- π₯οΈ Computer: to unlock the bootloader and firmware through fastboot you will need a Windows PC 10/11 Linux.
If you are planning to install custom firmware (like Pixel Experience or Havoc-OS), consider:
- π οΈ You will need to unlock the bootloader (officially via the Mi Unlock Tool).
- π Anti-Rollback: Redmi Note 5A It has protection against rollbacks to older versions. MIUI. Trying to install a firmware with a lower number ARB lock-in.
- π‘ Networking modules: Some custom firmware may not support VoLTE or Wi-Fi Calling on this device.
β οΈ Please note: if your Redmi Note 5A was purchased in China (domestic version), firmware global or European MIUI It may lead to problems with IMEI Check the region in Settings. β The phone. β Version. MIUI.
Official firmware: update through MIUI Updater and Recovery
The safest way to upgrade is through Xiaomiβs built-in tools, which is suitable if:
- π² You want to stay on MIUI (For example, switch from Chinese to global).
- π You already have a bootloader unlocked (or you don't plan to install custom software).
- π‘οΈ You are afraid of "bricking" and prefer official methods.
Step 1 Update through MIUI Updater
- Open Settings β About the phone β System update.
- Click on the three dots in the top right corner and select Select Service Pack.
- Download the official firmware for Redmi Note 5A From en.miui.com (select the Recovery version) ROM).
- After downloading the file (usually weighs) ~1.5-2 GB) select it from the update menu and confirm installation.
Step 2: Update via Recovery (if the first method didnβt work):
- Downloaded firmware file (.zip) renamed to update.zip Put it in the root of internal memory.
- Turn off the phone, then press Volume Up + Power to enter Recovery Mode.
- Select Install update.zip to System (control β volume buttons, confirmation β power button).
- After you complete the process, select Reboot to System.
β οΈ Note: If you update with Recovery with E: Footer is wrong, you're corrupting the firmware file. Download it again and check the checksum. MD5 (For example, through the HashMyFiles utility).
| Type of firmware | Method of installation | Do you need to unlock the bootloader? | Is data erased? |
|---|---|---|---|
| Recovery ROM (official) | Through MIUI Updater or Recovery | No. | No (if the version is the same or newer) |
| Fastboot ROM (official) | Through the Mi Flash Tool on PC | Yes. | Yes (full reset) |
| Castom firmware (LineageOS, etc.) | Through TWRP or fastboot | Yes. | Yes (recommended) |
π‘
Official firmware MIUI For the Redmi Note 5A No longer updated (last version β MIUI 12.5 based on Android 9).
Unlocking the bootloader: bypassing the limit of 720 hours in 2026
Xiaomi has imposed a limit on unlocking a bootloader: 30 days (720 hours) must be waited after an account is linked to a device, but there are legal ways to circumvent this requirement.
Method 1. via Mi Unlock Tool (official)
- Download Mi Unlock Tool from the official website.
- Enable OEM Unlock in Settings β For developers (if there is no item, tap 7 times on the Build Number in About Phone).
- Link your Mi Account to your device in Settings β Xiaomi Account.
- Connect your phone to your PC in fastboot mode (clip Volume Down + Power when the device is off).
- Launch the Mi Unlock Tool, log in to your account and watch the timer. In 720 hours, the Unlock button will appear.
Method 2: Accelerated Unlocking (2026)
Some users have successfully reduced the waiting time to 72β168 hours using the following trick:
- Link your Mi Account to the device.
- Install the XiaomiTool app on your phone V2 (available on GitHub).
- Connect to the same account in XiaomiTool and select Check Unlock Status.
- Repeat the status check every 2-3 hours. Sometimes Xiaomi servers reset the timer.
β οΈ Attention: Use of informal unlocking methods (e.g. through EDL) This may result in the blocking of the Mi Account or IMEI. In 2026, Xiaomi tightened control over such actions.
What if the Mi Unlock Tool shows a "Couldn't unlock" error?
Installation of custom firmware: from TWRP up to LineageOS
If official MIUI You don't like it, you can install custom firmware based on Android 10-13. 5A:
- π± LineageOS (Pure Android without Bloatware).
- π¨ Pixel Experience (like the Google Pixel interface).
- β‘ Havoc-OS (maximum customization).
- π§ ArrowOS (balance between performance and function).
Step 1 Installation TWRP Recovery
You need to install custom firmware TWRP β Alternative recovery with support for installing.zip files.
- Download the latest version TWRP for ugg/ugglite official website.
- Rename the file to twrp.img and put it in a folder with fastboot (for example, C:\platform-tools).
- Connect your phone in fastboot mode and execute the command: fastboot flash recovery twrp.img
- Immediately after the firmware reboot to TWRP, holding up + Nutrition.
Step 2: Custom software firmware
Before installing the firmware, it is necessary to:
Make a backup through TWRP (backup)
Download firmware (.zip) and GApps (if necessary)
Check the compatibility of the firmware with the model (ugg/ugglite)
Format the section /data (Wipe β Format Data)
-->
- Download firmware (e.g. LineageOS 18.1) and Open GApps if necessary (select the option). arm64 β 10.0 β pico).
- Transfer files to your phone or flash drive (into the fat32).
- In TWRP, select Wipe β Advanced Wipe and select Dalvik, Cache, System, Data.
- Return to the main menu, click Install and select the firmware file, then GApps.
- After installation, run Wipe Cache/Dalvik and restart.
Step 3. First setup
After downloading:
- π Wait for application optimization (may take 5-15 minutes).
- πΆ Set up a mobile network manually (some custom firmware is resetting) APN).
- π Turn it on. OEM Unlock again (if you plan to manipulate it further).
π‘
If after firmware does not work camera or fingerprint sensor, download a separate fix from the forum XDA Developers (search for themes using the ugg model).
Solving Common Errors When Setting Redmi Note 5A
Even if you follow the instructions strictly, you can get errors, and let's look at the most common ones and how to fix them.
1. "Anti-Rollback" error" (ARB)
If you are trying to install a firmware with a lower number ARB, The device will be locked, but not the current one:
- Hold the Loud up. + Power to enter the fastboot.
- Connect to the PC and execute: fastboot getvar anti
- Compare the output to the firmware version, for example, if the current ARB=4, you cannot install the firmware with ARB=3.
2. Bootloop (cyclic reboot)
If the phone is constantly rebooting:
- π Try to get in. TWRP and wipe Cache and Dalvik.
- π¦ Flip the same firmware version over it (without formatting data).
- π§ If the problem persists, go back to the official MIUI via Mi Flash Tool.
Error "This package is for ugg devices; this is a ugglite"
You downloaded the firmware for the wrong model.
- π± Redmi Note 5A (basic version - code name ugglite.
- π± Redmi Note 5A Prime is the code name for ugg.
| Mistake. | Reason. | Decision |
|---|---|---|
| E: Unknown command [log] in TWRP | Older version of recovery | Update. TWRP last-minute |
| The phone does not turn on after the firmware | Incompatible firmware or interrupted process | Please Fastboot. ROM via Mi Flash Tool |
| Invalid IMEI after the firmware | The modem or nvram partition is damaged | Restore backup modem or stitch stock firmware |
How to restore IMEI after firmware?
Retreat to official MIUI: return the stock firmware
If custom firmware worked unstable or you need official updates, you can return the stockware MIUI. It's gonna take a while:
- π₯οΈ Computer with Mi Flash Tool.
- π Fastboot ROM For your model (download from the official website).
- π Unlocked loader.
Instructions:
- Unpack the downloaded Fastboot ROM in a folder without spaces (for example, C:\MIUI\ugg_global).
- Connect your phone in fastboot mode.
- Start the Mi Flash Tool, select the folder with the firmware.
- At the bottom, choose clean all (full reset) or clean all and lock (reset + lock bootloader).
- Press Flash and wait until it is completed (5-10 minutes).
β οΈ Warning: The clean all and lock option will block the bootloader, and you'll have to wait 720 hours to re-unblock.
After the firmware:
- π The first download can take up to 15 minutes.
- π± Set your phone as new (restore data from the backup).
- π Turn it on. OEM Unlock and USB Debugging again if you plan to manipulate it further.
Recommendations after flashing: optimization and security
Successful firmware is only half the battle. 5A worked steadily:
1. Optimization of productivity
- β‘ Turn off animation: in Settings β For developers, set the scale of animation windows, transitions and animators on 0.5x or off.
- π§Ή Remove unnecessary applications via adb: adb shell pm uninstall --user 0 com.miui.analytics
- π Calibrate the battery: fully discharge and charge the phone 2-3 times in a row.
2. Security.
- π Install Magisk for root rights (if necessary), but avoid modules that conflict with SafetyNet.
- π‘οΈ Check SafetyNet through the SafetyNet Test app. If the test fails, use the MagiskHide Props Config module.
- π‘ Update modem and firmware to the latest versions (see for more details) XDA).
3. Backup
After setting up the system:
- π± Create a backup through TWRP (Boot, System, Data sections).
- βοΈ Download the backup to the cloud (Google Drive, Mega).
- π Save the list of installed applications through adb: adb shell pm list packages -f > apps.txt
π‘
After custom firmware firmware is installed, some banking applications (Sberbank, Tinkoff) may block work due to root rights. Use MagiskHide or Island to isolate such applications.