How to unlock Xiaomi Mi 5A: the full guide 2026

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:

  1. Turn off your smartphone.
  2. Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data โ†’ Wipe All Data.
  4. 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?
If the Mi 5A asks for data from the Mi Account after the reset, then the Find Device function is activated on the device. In this case, it is officially impossible to bypass the lock - you will either need to remember the account data or contact Xiaomi with proof of purchase (check, box). Alternative methods of bypassing (via EDL or firmware) often lead to a "brick" and require soldering.

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)

-->

  1. 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.
  2. Through Fastboot: Pass through anti_frp.zip via fastboot flash anti (requires an unlocked bootloader).
  3. 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:

  1. Turn on Developer Mode: Go to Settings โ†’ About Phone โ†’ MIUI version and tap 7 times.
  2. Back to Settings โ†’ Additionally. โ†’ For developers and activate OEM-unlocking and debugging USB.
  3. Download the Mi Unlock Tool and log in to it under the same Mi Account as you do on your phone.
  4. Connect the Mi 5A in Fastboot mode (click Volume Down + Power) and follow the program instructions.
PhaseAction.Possible errors
Account bindingAdd Mi-account to your phone settingsCouldn't verify device (unconfirmed account)
Waiting.Wait 7-15 days after the bindingWaiting time not completed
Connection to PCRun Mi Unlock Tool in Fastboot ModeUSB debugging not authorized
UnlockingClick Unlock in the programFailed 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:1

It 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].zip

But 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/pttycmd1

where [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 deviceAccount not confirmed or phone not tiedReconnect your account and wait 7 days
Mi Flash: Flash is not doneIncorrect firmware or damaged cableDownload firmware for ugglite and use the original USB
Device is lockedThe bootloader is not unlockedUse Mi Unlock Tool or flash through EDL
After reset, asks for an old passwordEncryption of data is enabledEnter 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.

-->

FAQ: Answers to Frequent Questions

Can I unlock the Mi 5A without losing data?
Not if you're resetting your screen password or deleting your Mi Account, all official and unofficial methods result in a complete reset, and the only way to save your data is to remember your password or restore access to your Mi Account.
How long does it take to unlock the bootloader?
At least 7 days after linking the Mi Account to the phone. on new versions of MIUI (12+) the wait can last up to 15-30 days.
What if the Mi Unlock Tool can't see the phone?
Check: Are drivers installed? ADB/Fastboot Is the original Xiaomi cable used? Is debugging enabled USB and OEM-unlocking in the developer settings: Is your phone connected in Fastboot mode? If the problem persists, try another PC or Mi Unlock Tool (e.g., the Mi Unlock Tool, 3.5.1118.51).
Can I flash Mi 5A without unlocking the bootloader?
Yes, but only official firmware via Recovery or EDL. To install custom firmware (LineageOS, Pixel Experience) or get root, unlocking the bootloader is mandatory.
Why did the connection disappear after the unlock?
Most likely, IMEI has been erased or modem files have been corrupted. Restore IMEI through an engineering menu or scroll through NVRAM (network settings section) through SP Flash Tool.