Xiaomi Mi 5A (codename ugglite) is still a popular budget smartphone, but many users face locking problems: a forgotten password, a tied Mi Account, a locked bootloader or the consequences of a failed firmware. In this article, we will analyze all the current ways to unlock the Mi 5A โ from official methods to workarounds that work in 2026.
It is important to understand that unlock procedures fall into three categories: unlock screen (PIN/pattern lock), de-link to Mi Account and unlock bootloader to install custom firmware. Each case requires a different approach - there is no universal solution. We will consider all options with the latest security updates Xiaomi and current tools.
Before you start, check: do you have a data backup? Unlocking often results in a complete device reset. Also prepare a PC with drivers installed. ADB/Fastboot original USB-cable (better from the set).
1. unlock the screen (PIN, password, pattern lock)
If you've forgotten the screen unlock password on the Mi 5A, there are several ways to reclaim access. The easiest way to do this is to use the Mi Account if the device is tied to it.
- ๐ Enter any password 5 times in a row until the Forgot Password button appears?.
- ๐ง Click on it and log in via the linked Mi Account (mail or phone).
- ๐ The system will offer to reset the screen password or confirm unlocking through SMS.
If the Mi Account is not tied or you don't remember the data from it, you just have to hard-dump it through Recovery. On the Mi 5A, it's like this:
- Turn off your smartphone.
- Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
- From the Recovery menu, select Wipe Data โ Wipe All Data.
- Confirm the action and wait for the reboot.
โ ๏ธ Warning: Recovery removes all data on the device, including photos, contacts and apps. If the smartphone has been enabled encryption (in security settings), after reset, you will need to enter the password from the Mi Account, otherwise the phone will not boot.
What to do if you need a Mi-account after the reset?
2. Deletion of Mi Account (FRP bypass)
FRP (Factory Reset Protection) is a reset protection that is activated if a Mi Account was tied to the Mi 5A and Find Device is enabled. Once reset via Recovery, the phone will require you to enter a login and password from this account, and you can get around this in several ways, but they all have risks.
The official way is to restore access to the Mi-account:
- ๐ Go to account.xiaomi.com.
- ๐ Click Forgot Password? and follow the instructions (requires access to the mail or phone associated with the account).
- ๐ฑ If your account is linked to a phone number, please request SMS confirmation-coded.
Unofficial methods (not working on all firmware versions):
Turn off the Internet on your phone (Wi-Fi and mobile data)
Download archive with tools (ADB, Fastboot, Mi Flash)
Install Qualcomm drivers on PC
Prepare original USB-cable (do not use hubs)
-->
- Through ADB: Connect your phone to your PC, open the command prompt and execute: adb shell am start -n com.android.settings/.Settings Then in the settings, disable Find Device and reset.
- Through Fastboot: Pass through anti_frp.zip via fastboot flash anti (requires an unlocked bootloader).
- Through EDL: Put your phone in EDL (Emergency Boot) mode and run the clean firmware through the Mi Flash Tool.
โ ๏ธ Attention: Bypassing techniques FRP It can lead to blocking. IMEI Or a brick of the device. MIUI 12+ Most of the workarounds are closed โ the official method remains the only reliable one.
Official Recovery through the Website
Bypassing through ADB/Fastboot
Firmware through EDL
I went to the service center.
I haven't tried it yet.
-->
3. Unlocking the bootloader (Bootloader)
If you want to install custom firmware (like LineageOS or Pixel Experience) or get root rights, you first need to unlock the bootloader. On the Mi 5A, this is done through the official Mi Unlock Tool, but with a number of restrictions:
- ๐ Requires a linked Mi Account with a confirmed phone number.
- โณ You need to wait 7-15 days after linking your account to your device (depending on version). MIUI).
- ๐ฑ The phone must be on the original firmware (not custom).
Step-by-step:
- Turn on Developer Mode: Go to Settings โ About Phone โ MIUI version and tap 7 times.
- Back to Settings โ Additionally. โ For developers and activate OEM-unlocking and debugging USB.
- Download the Mi Unlock Tool and log in to it under the same Mi Account as you do on your phone.
- Connect the Mi 5A in Fastboot mode (click Volume Down + Power) and follow the program instructions.
| Phase | Action. | Possible errors |
|---|---|---|
| Account binding | Add Mi-account to your phone settings | Couldn't verify device (unconfirmed account) |
| Waiting. | Wait 7-15 days after the binding | Waiting time not completed |
| Connection to PC | Run Mi Unlock Tool in Fastboot Mode | USB debugging not authorized |
| Unlocking | Click Unlock in the program | Failed to unlock (if the account is not matched) |
1. reconnect the phone to another USB-port (preferably 2.0).
2. disable the antivirus on the PC.
3. Use the original Xiaomi cable.
4. Repeat the account binding on the phone.
-->
4. Alternative Unlocking Methods (for experienced)
If the official methods don't work, you can try alternative methods, they require technical skills and carry the risk of loss of warranty or damage to the device.
1. Firmware via EDL (Emergency Download Mode):
EDL mode allows you to flash the phone even with a locked bootloader, but requires a special cable or short circuit contacts on the board. For the Mi 5A, the firmware through the Mi Flash Tool is suitable with a choice of clean all option.
2. Use of exploits:
Older versions of MIUI (up to 10th) run vulnerabilities that allow you to bypass the block through ADB.
adb shell content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1It can reset the Mi Account settings, but this method is closed on new firmware.
3. Fastboot flashing:
If the bootloader is unlocked, you can flash the Mi 5A through Fastboot using the command:
fastboot flash all [name firmware].zipBut this will delete all data and may result in IMEI blocking if the firmware is unofficial.
โ ๏ธ Attention: Firmware through EDL on Mi 5A With Qualcomm Snapdragon 425 processor, it requires an authorized Xiaomi account to download the firmware. SLA This restriction can only be circumvented through service centers with official keys.
5.IMEI recovery after unlocking
Once the bootloader is firmware or unlocked, the Mi 5A can lose its IMEI (serial number of the communication module), without which the phone will not catch the network.
1. Through the engineering menu:
- ๐ Type on the keyboard ##4636##.
- ๐ง Go to Phone Information โ Choose. SIM.
- ๐ Enter the original IMEI (Eat on a box or under the battery and save it.
2. Through ADB:
If the engineering menu is not available, use the following commands:
adb shell
su
echo 'AT +EGMR=1,7,"[IMEI_1]"' > /dev/pttycmd1
echo 'AT +EGMR=1,10,"[IMEI_2]"' > /dev/pttycmd1where [IMEI_1] and [IMEI_2] โ your original numbers.
Correctness of the numbers entered (15 digits).
- SIM card in the slot.
- APN settings (operator access point).
-->
6. Frequent errors and their solutions
When you unlock the Mi 5A, you're faced with typical problems, and here are the most common ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Couldnโt verify device | Account not confirmed or phone not tied | Reconnect your account and wait 7 days |
| Mi Flash: Flash is not done | Incorrect firmware or damaged cable | Download firmware for ugglite and use the original USB |
| Device is locked | The bootloader is not unlocked | Use Mi Unlock Tool or flash through EDL |
| After reset, asks for an old password | Encryption of data is enabled | Enter a password from a Mi Account or flash clean firmware |
Critical information: On Xiaomi Mi 5A with MIUI 12.5 and the newer FRP bypass through ADB is locked at the kernel level. The only working way is to officially restore an account or firmware through an authorized EDL (requires access to the service).
7. When to contact the service center
Not all problems can be solved by yourself. Contact the official Xiaomi service if:
- ๐ง The phone does not turn on after firmware (brick).
- ๐ต The network was gone, and the recovery. IMEI doesn't help.
- ๐ Mi-account is blocked and you can not restore it.
- ๐ ๏ธ Soldering work is required (for example, closing contacts for EDL).
The cost of unlocking the service varies from 1,500 to 5,000 rubles depending on the problem. Xiaomi official centers can request a check or box to confirm ownership.
-->