Fastboot is one of the most reliable ways to bring the Xiaomi Redmi Note 5A Prime (codename ugg) back to life if it stops loading, freezes on the logo or requires updating to the current version of MIUI. Unlike Recovery, Fastboot allows you to install firmware even on a fully βbrickβ device when the system does not respond to buttons.
However, the process has its nuances, from the mandatory unlocking of the bootloader to choosing the right firmware version for your modification (Prime differs from the standard version of the Redmi Note 5A in hardware and software support). In this article, we will discuss a unique algorithm for the 5A Prime model, taking into account its hardware features, which minimizes the risks of errors such as EDL mode or anti-rollback.
Preparation for firmware: what to do before the start
Before you start firmware, make sure you have everything you need. Xiaomi Redmi Note 5A Prime requires a special approach due to the closed MIUI ecosystem and the company's policy of locking the bootloader.
- π± Battery charge of at least 60% β with a low charge, the device can turn off during firmware, which will lead to a hard brick.
- π» Computer on Windows 7/10/11 (on macOS/Linux Possible problems with Qualcomm drivers).
- π Original. USB-cables β cheap cables often donβt transfer data to Fastboot.
- π Unlocked bootloader (if you are stitching through an informal firmware).
Pay special attention to the firmware version. Two branches are relevant for the Redmi Note 5A Prime:
- π¦ Stable MIUI β Stable versions with monthly security updates.
- π§ͺ Developer MIUI β Weekly builds with new features but possible bugs.
If you are flashing the device for the first time, we recommend starting with a stable version. Custom firmware (for example, LineageOS) requires an unlocked bootloader and can deprive you of warranty.
β οΈ Attention: Fastboot firmware resets all data on the device. If the smartphone is still on, back up through Settings. β Additionally. β Backup or Mi Cloud Backup.
Unlock the bootloader on the Redmi Note 5A Prime
Without unlocking the bootloader, you can only install the official Xiaomi firmware via Fastboot. For custom firmware or modified cores, unlocking is mandatory. The process takes up to 72 hours due to Xiaomi's policy.
Instructions for unlocking:
- Link your Mi Account to your device: Go to Settings β Mi Account β Link your device.
- Activate USB debugging: go to Settings β About Phone β MIUI version (click 7 times to enable Developer Mode), then to Settings β Additional β Developers β Debugging over USB.
- Install Mi Unlock Tool on your PC and log in to the same Mi Account.
- Connect your phone in Fastboot mode (press Power + Volume Down when the device is off) and follow the program instructions.
You will have to wait until you have sent the unlock request, you can check the status in the Mi Unlock Tool, and if you have a Couldn't unlock error, try again in 24 to 72 hours.
What if the Mi Unlock Tool canβt see the device?
β οΈ Warning: Unlocking the bootloader resets the device to factory settings. If you plan to return to the official firmware after custom, the bootloader locks again.
Select firmware for Redmi Note 5A Prime
For the Redmi Note 5A Prime (ugg model), only firmware marked βPrimeβ is suitable. Installing firmware from the standard version of the Redmi Note 5A (ugglite) will lead to errors in the NFC module, camera or sensors.
Where to download the firmware:
- π Official Xiaomi website: MIUI Downloads (select Global or China region depending on your model).
- π§ Forum 4PDA: Redmi Note 5A (There are modified and custom assemblies).
- π¦ Xiaomi Firmware Updater: firmware archive (convenient to search by ugg code).
Please note the Android version:
Redmi Note 5A Prime was released with Android 7.1 Nougat and received an update to Android 9 Pie.
Install firmware based on Android 10+ is possible only through custom builds (for example, LineageOS 17), but it requires experience.
| Type of firmware | Android version | Download link | Do you need unlocking? |
|---|---|---|---|
| MIUI Stable Global | 9.0 Pie | Download | No. |
| MIUI Developer China | 7.1β9.0 | Download | No. |
| LineageOS 16 (Android 9) | 9.0 Pie | XDA | Yes. |
| Pixel Experience | 10.0 Q | XDA | Yes. |
Before downloading, check the hash amount of the file (usually indicated on the site), which will help to avoid errors when firmware due to broken archives.
Installation of drivers and preparation of PC
Without the right drivers, Windows wonβt recognize Redmi Note 5A Prime in Fastboot mode.
- Qualcomm Drivers: Official Page
- Mi Flash Tool: Download the latest version (for firmware via Fastboot).
- ADB and Fastboot: Included in Android SDK Platform-Tools.
After installing the drivers, check the connection:
- Turn off the phone.
- Press Power + Volume Down to log in to Fastboot.
- Connect to your PC and type in the command line: fastboot devices If the device is displayed (for example, 1234567890abcdef fastboot), the drivers are installed correctly.
π‘
If the fastboot device command doesnβt show the device, try disabling the driver signature in Windows: run the command prompt on behalf of the administrator and perform bcdedit/set nointegritychecks on, then restart the PC.
Step-by-step instructions for firmware through Fastboot
Now, to the process itself, we'll look at two options: firmware through the Mi Flash Tool (for official firmware) and Fastboot commands (for power users).
Method 1: Mi Flash Tool (recommended for beginners)
This method is suitable for installing official MIUI firmware.
βοΈ Preparation for firmware through Mi Flash Tool
- Unpack the downloaded firmware (.tgz file) into a folder, for example, C:\MIUI\ugg_global_images_....
- Run the Mi Flash Tool on behalf of the administrator.
- Click Select and point the way to the firmware folder.
- Connect your phone in Fastboot mode.
- In the program, press Refresh - the device should appear.
- Select firmware mode: π Clean all β complete cleaning (recommended when changing version) MIUI). π¦ Clean all and lock - cleaning + Loader lock (only for official firmware!). π§ Save user data β data retention is not always stable).
Flash
Method 2: Fastboot commands (for power users)
This method gives more control and is suitable for custom firmware or individual components (e.g. boot.img only).
Open the command line in the firmware folder (where the images files are located) and do:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsb fsb.img
fastboot flash bluetooth BTFM.bin
fastboot flash dsp dspso.bin
fastboot flash logo logo.bin
fastboot flash bootloader bootloader.img
fastboot flash radio radio.img
fastboot flash tz tz.mbn
fastboot flash rpm rpm.mbn
fastboot flash hyp hyp.mbn
fastboot flash keymaster keymaster.mbn
fastboot flash cmnlib cmnlib.mbn
fastboot flash cmnlib64 cmnlib64.mbn
fastboot flash devcfg devcfg.mbn
fastboot flash aboot emmc_appsboota.mbn
fastboot flash abootb emmc_appsbootb.mbn
fastboot flash splash splash.img
fastboot flash cust cust.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot rebootIf you are flashing custom firmware, some files (for example, vendor.img) may be missing β skip them.
β οΈ Note: When running through Fastboot commands, donβt interrupt the process, even if itβs stuck in the sending βsystemβ phase. 5A Prime is normal and can take up to 15 minutes.
Common mistakes and their solutions
Even with the correct instructions, errors can occur, and here are the most common ones and how to correct them:
| Mistake. | Reason. | Decision |
|---|---|---|
| fastboot: error: Failed to boot into fastbootd | The wrong version of Fastboot or drivers. | Update Platform-Tools and reinstall Qualcomm drivers. |
| This package is for "ugg" devices; this is a "ugglite". | The firmware is not suitable for the Prime version. | Download the firmware marked ugg, not ugglite. |
| Anti-rollback check fail | Trying to install an older version of MIUI. | Sweep through a newer firmware or use EDL mode (requires an authorized Xiaomi account). |
| The phone does not turn on after the firmware | Incorrectly selected mode in Mi Flash Tool or broken firmware. | Repeat the firmware with a full clean (Clean all). |
If the device does not respond to buttons and does not boot, try to log into EDL mode (emergency mode):
- Turn off the phone.
- Press Volume Up + Volume Down and connect to the PC.
- Install firmware through the Mi Flash Tool in EDL mode (Mi Account authorization required).
π‘
If the phone is stuck on the MI logo after the firmware, wait 10-15 minutes β the first download can take a long time.
What to do after the firmware
After successful firmware Redmi Note 5A Prime will require initial configuration:
- Select the language and region (for Global firmware, we recommend Russia or India β there are no restrictions on Google).
- Connect to a Wi-Fi network and log in to your Mi Account (if required).
- Update Google Play Services and other apps through the Play Market.
- Check the operation of the main functions: πΆ Network: calls, mobile Internet, Wi-Fi. π· Camera: front and main. π Charging: Connect the charger. π Fingerprint sensor (if any).
If something is not working (for example, it is not determined) SIM-map), probably not suitable for your region. Try changing it to Global Stable.
π‘
After you have firmware custom (like LineageOS) install GApps (Google Apps) through Recovery, otherwise there will be no Play Market or other Google services.