Unlocking Mi Account on Xiaomi Redmi 5A: from password recovery to bypassing protection

A forgotten password from the Mi Account on Xiaomi Redmi 5A can turn a smartphone into a useless β€œbrick”: the lock is activated after resetting settings, firmware or even accidentally entering the wrong password 5 times in a row. Unlike modern Xiaomi models, where unlocking often requires contacting a service center, the Redmi 5A (codename riva) is still amenable to self-recovery - but with reservations.

In this article, we will discuss all the current ways of unlocking, from official recovery via email to bypassing protection with the help of engineering modes and third-party tools. It is important to understand that since 2021, Xiaomi has tightened security policies, and some methods (for example, through the use of security tools). EDL-The mode stopped working without an authorized developer account. 5A There are still loopholes – the main thing is to act on instructions and avoid common mistakes.

Why is Redmi 5A blocked by Mi?

The blocking of Mi Account on Xiaomi Redmi 5A works in three cases:

  • πŸ”’ Resetting settings via Recovery or Fastboot without first logging out of your account.
  • πŸ“± Install custom firmware without decoupling the device from the Mi Account (even if the firmware is official).
  • πŸ”‘ Multiple incorrect password entry (5)+ attempts) when trying to unlock the screen.

Unlike newer models (like the Redmi Note 12), where locking is tied to a hardware identifier, Redmi 5A is implemented at the firmware level, which means that bypassing is possible, but requires technical manipulation. For example, if you bought a used phone with a linked account, official password recovery will not help - you will need to reset via Fastboot or EDL.

πŸ“Š How did you get your Mi Account blocked?
Forgot my password.
I bought a used phone with someone else's tether
Reset the settings.
I got the firmware installed.
Another option

Method 1: Officially Recovery of Mi Account Password

If your phone is yours and you remember the email or phone number associated with your account, use the standard recovery procedure:

  1. Go to the Mi Account password recovery page.
  2. Enter the email or phone number specified during registration.
  3. Confirm your identity via SMS or code letter.
  4. Create a new password and save it to your password manager (like Google Password Manager or KeePass).

When you change your password, unlock your phone by entering new data. If this method doesn't work, the reason may be:

  • πŸ“§ Remote Account (Xiaomi clears inactive accounts over 2 years old).
  • πŸ”„ Shift. email/Numbers without updating the data in the Mi Account.
  • 🚫 Blocking an account for suspicious activity (for example, frequent login attempts).

πŸ’‘

If you don’t remember an email, try to restore it through your Gmail/Yandex Mail email history by asking for β€œMi Account” or β€œXiaomi.”

Method 2: Unlocking via Fastboot (without data loss)

If the official recovery didn’t work, but you have access to Fastboot mode, you can try resetting the lock without completely resetting the settings.This method works on Redmi 5A with firmware up to MIUI 12 (newer versions require authorization).

Step-by-step:

  1. Turn off your phone and press the Power button + Volume down to log into the Fastboot.
  2. Connect the device to the PC and install the Mi Flash Tool drivers (download from the official website).
  3. Download the Mi Account Unlock Tool (check reviews on XDA to avoid malware).
  4. Launch the utility, select the port of your device and press Unlock.

⚠️ Note: Some versions of utilities require disabling the driver signature check in Windows:

Press Win + X β†’ select Command Prompt (Administrator) β†’ enter bcdedit /set testsigning on and restart your PC.

Download the Mi Flash Tool|Install the drivers ADB/Fastboot|Download Mi Account Unlock Tool from a trusted source|Disable driver signature verification (if necessary)-->

Method 3: Bypassing the lock through EDL-mode (for advanced)

EDL-The Emergency Download Mode is an engineering mode that allows you to stitch through your phone without the standard restrictions. 5A It can be activated only hardware (closing contacts on the board) or through special commands if the bootloader is already unlocked.

Important: This method requires soldering skills or boxing (like a UFi Box) and misconduct can lead to a full blink of the device. If you're not sure, contact the service.

Instructions for experienced users:

  • πŸ”§ Hardware method: Disassemble the phone, find test points EDL (usually USB-port) and lock them for 5-10 seconds when connecting to a PC.
  • πŸ’» Software method: If the bootloader is unlocked, use the command: fastboot oem edl
  • πŸ“₯ In Mi Flash Tool, select a firmware file riva_global_images... Click Flash (select the clean all option).
What are EDL test points?
Testpoints are the contacts on the motherboard, the closure of which puts the device in emergency firmware mode. 5A They are usually located near the USB-smack-and-smack-and-smack-and-smack-and-smack-and-smack-and-smack-and-smack-and-smack-and-smack-smack-and-smack-smack-and-smack-and-smack-smack-smack-smack-and-smack-and-s "EDL" or "9008." Use tweezers or low-resistance wire to close.

Unlocking methodDifficultyRisk of a brickTools required
Password recovery⭐No.Access to email/phone
Fastboot + utility⭐⭐Low.PC, USB-cable, Mi Account Unlock Tool
EDL (testpoints)⭐⭐⭐⭐High-pitchedSweater, Tweezers, Mi Flash Tool
Firmware through TWRP⭐⭐⭐Medium.Castomy recovery, ADB

Method 4: Delete Mi Accounts via TWRP (if installed)

If your Redmi 5A already has custom recovery TWRP installed, you can manually delete your account binding, which only works on an unlocked bootloader.

Instructions:

  1. Load to TWRP (press the Power button + Volume up).
  2. Go to Advanced β†’ File Manager.
  3. Delete the files: /data/system/mi_account_db /data/system/miui_activation_info.xml
  4. Reset the phone. The lock should disappear.

⚠️ Note: If after deleting files, the phone is stuck on the download, reset through TWRP (wipe β†’ Format Data. This will delete all data, but unlock the device.

Method 5: Contact Xiaomi Service Center

If all of the above methods did not work, the official way remains – contact the service center. Xiaomi provides the service to unlock the Mi Account if you have:

  • πŸ“„ Check of purchase (even if the phone used, try to request a check from the previous owner).
  • πŸ†” Document confirming identity (passport).
  • πŸ“± IMEI Devices (you can find out through the sticker under the battery or command *#06#).

The cost of the service varies from 500 to 2000 rubles depending on the region, in some cases, the service may refuse if:

  • The phone is listed in the database of stolen devices.
  • IMEI is modified (checked through Engineer Mode).
  • The account is blocked for fraud.

πŸ’‘

Official unlocking in the service is the only legal way if the phone is bought with hands and the previous owner did not untie the account.

Frequent Mistakes and How to Avoid Them

When trying to unlock a Mi Account on Redmi 5A, users often face typical problems:

  1. Error "Couldn't verify device" in Mi Flash Tool: Solution: Use an older version of the utility (e.g. Mi Flash 2018) or disable the antivirus.
  2. Phone is not defined in Fastboot: Solution: Check the drivers (install Mi) PC Suite or try another one USB-cable (original).
  3. After firmware is run through EDL, the phone does not turn on: Solution: Repeat firmware with the clean all and lock option (but this will block the bootloader).

⚠️ Warning: Never use "miracle utilities" from unknown sites that promise to unlock in 1 click. Most of them contain viruses or spyware. XDA Developers or 4PDA.

Can I unlock my Mi Account on Redmi 5A without losing data?
Yes, but only if you remember the login/password from your account (recovery via email) or use the method with Fastboot + Mi Account Unlock Tool. All other methods (EDL, TWRP) will lead to a data reset.
What if the phone asks for an old password after unlocking?
This means that the account's binding is still in the system. Try: Reset settings via Recovery, flash your phone through Mi Flash Tool with clean all option, manually delete account files via TWRP (if installed).
Does the method work with the testpoint closure on the 2023 Redmi 5A?
Yes, but only if the device hasn’t received updates after 2021.On the newer MIUI 12.5, Xiaomi has closed this loophole, and an authorized developer account is required to log in to EDL.
Can I unlock my phone if the previous owner doesn’t answer?
Technically, but legally, only through a service center with a check of purchase, and alternative methods (EDL, firmware) may violate Xiaomi's user agreement.
How to check if the bootloader is unlocked on Redmi 5A?
Turn off your phone, press Volume Down + Power to log into Fastboot. If there's Unlocked at the bottom of the screen, the bootloader is unlocked. If Locked, you'll need official unlocking through Xiaomi's site.