How to unlock Xiaomi Mi 5: all ways to reset the lock (even without a password)

Xiaomi Mi 5 is the legendary smartphone of 2016, which is still used by many users. but what to do if you forget your password, pattern lock or the key. PIN-In this article, we will discuss all the current ways of unlocking, including official methods through Mi Account, Fastboot and Recovery modes, as well as alternative solutions for complex cases.

It's important to understand that some methods will lead to total loss of data -- photos, contacts, messages. So try to remember your password first, or use backups. If access to your phone is critical and data is not available, then unlock.

This article is relevant for Xiaomi Mi 5 based on MIUI (including global and Chinese versions) and Android 6.0-8.1. For new models (Mi 10/11/12), methods may differ due to changes in the firmware and security policy of Xiaomi.

1 Unlocking through Mi Account (official method)

If a Mi Account was tied to the Mi 5, you can unlock the phone through Xiaomi’s website, which works even if you don’t remember the lock screen password, but requires access to the email or phone number associated with the account.

How it works: After 5 failed password attempts, the system will offer an unlock option via Mi Account. If that doesn't happen, go to account.xiaomi.com and follow the following steps:

  • πŸ”‘ Enter the email or phone number associated with your account.
  • πŸ“§ Confirm the entry through the code from SMS letter.
  • πŸ”„ On the device management page, find the locked Mi 5 and select the option to Unlock the screen.
  • πŸ“± Wait 1-5 minutes – the phone unlocks automatically (requires an Internet connection).

Limitations of the method:

  • ❌ It does not work if the phone is disabled mobile Internet or Wi-Fi.
  • ❌ Requires proof of identity (SMS/email).
  • ❌ On some firmware (Chinese versions) MIUI) may be offline.

⚠️ Note: If you bought the Mi 5 with your hands, the previous owner may not have deleted his Mi Account.In this case, unlocking through the account is impossible - you will need a reset via Fastboot (see section 3).

πŸ“Š Have you ever lost access to your smartphone because of a forgotten password?
Yeah, a few times.
Yeah, once.
No, I always remember.
I use biometrics (print/face)

2. Reset the pattern lock via call (only for older versions of MIUI)

This method worked on MIUI 7-8 (Android 5.1-6.0) and allowed you to bypass the pattern lock through an emergency call. On newer versions of firmware, the vulnerability was fixed, but if your Mi 5 has not been updated for a long time, try:

  1. On the lock screen, press Emergency Call.
  2. Enter the combination ##4636## (the test menu will open).
  3. Return to the home screen via the Home button – sometimes this will unlock access.
  4. If it doesn’t work, try entering any number and click Add to Contacts, then go to Settings β†’ Security and disable the pattern lock.

πŸ”Ή Chance of success: ~30% (depending on version) MIUI). Nana MIUI 9+ This method doesn't work.

Why did this method stop working?
With MIUI 9 (2017), Xiaomi has closed a vulnerability that allows you to bypass the lock through emergency calls, and now when you try to enter the test code, the system either ignores the command or restarts the phone.

3. Unlock via Fastboot (full reset)

If previous methods didn't work, you'll have to hard reset through Fastboot mode, which will delete all the data, but you'll get back to the phone, you'll need a computer with ADB/Fastboot drivers installed, and a USB Type-C cable.

πŸ“Œ Preparation:

  • πŸ–₯️ Download Platform Tools (from Google) or Mi Flash Tool (from Xiaomi).
  • πŸ”Œ Install drivers for Xiaomi Mi 5 (can be used via Mi) PC Suite).
  • πŸ“± Turn off the phone and press the volume down. + Food to enter Fastboot (screen with rabbit in a hat-eared hat).

πŸ”§ Resetting instructions:

  1. Connect your phone to your PC via USB.
  2. Open the command prompt (cmd) in the folder with Platform Tools.
  3. Enter the command to check the connection: fastboot devices If the phone is determined (serial number will appear), continue.
  4. Run full reset: fastboot erase userdata fastboot erase cache fastboot reboot

After the reboot, the phone will be like new – you will need an initial setup.

⚠️ Note: Some Xiaomi Mi 5 firmware may require re-assignment of Mi Account after being reset via Fastboot.If you don't remember your account details, the phone will lock again (FRP-In this case, you will need to firmware through the Mi Flash Tool (see section 5).

Download Platform Tools|Install drivers ADB|Charge the phone. >50%|Prepare original USB-cable|Make a backup copy (if available)-->

4 Unlocking through Recovery Mode (no PC)

If you don't have a computer, you can try resetting with Recovery, which also erases all data, but doesn't require a Fastboot.

πŸ”„ How to log in to Recovery:

  1. Turn off the phone.
  2. Press Volume Up + Power and hold for 10-15 seconds until the Recovery menu appears (Chinese firmware may have hieroglyphics).
  3. Use volume buttons for navigation and power button for selection.

πŸ—‘οΈ Resetting settings:

  • Select Wipe Data β†’ Wipe All Data (or similar).
  • Confirm the action (Confirm or Yes).
  • After reset, select Reboot System.

⚠️ Important: On some versions MIUI Recovery requires you to enter your Mi Account password even to reset it, and if you don't remember it, it won't work.

Unlocking methodPC requiredData retainedIt works without a Mi Account.Difficulty
Through the Mi Account.❌ No.βœ… Yes.❌ No.⭐
Emergency call.❌ No.βœ… Yes.βœ… Yes.⭐⭐ (old MIUI)
Fastboot (reset)βœ… Yes.❌ No.⚠️ Partially.⭐⭐⭐
Recovery Mode❌ No.❌ No.❌ Not if there is. FRP)⭐⭐
Flashing (Mi Flash)βœ… Yes.❌ No.βœ… Yes.⭐⭐⭐⭐

5. flashing through the Mi Flash Tool (extreme case)

If the phone is locked at Mi Account level (so-called. FRP-locking, and you don't remember your account, the only way out is to completely flash through the Mi Flash Tool, which will delete everything, including the account binding, but requires you to download the official firmware and computer.

πŸ“₯ What's the matter:

  • πŸ–₯️ Windows PC 7/10/11.
  • πŸ”Œ The original cable. USB Type-C (Poor cables can interrupt firmware).
  • πŸ“¦ Firmware for Xiaomi Mi 5 (download from the official website). Choose the version of Fastboot (file.tgz or.zip).
  • πŸ› οΈ Mi Flash Tool (last version).

πŸ”§ Step-by-step instruction:

  1. Unpack the firmware in a folder without Cyrillic characters (for example, C:\Mi5_Firmware).
  2. Install the Mi Flash Tool and drivers.
  3. Sign in to Fastboot on your phone (Loudness down + Power).
  4. Connect your phone to your PC and start the Mi Flash Tool.
  5. Click Select and point the way to the firmware folder.
  6. Select Clean All mode and press Flash.
  7. Wait for the end (5-10 minutes). The phone will reboot automatically.

⚠️ Warning: Don't turn off your phone while you're firmware! This can lead to a blink (complete failure).If the process is stalled during the Waiting for device stage, check the drivers or try another one. USB-port (preferably) USB 2.0).

πŸ’‘

If the Mi Flash Tool is giving you a Critical error, try running the program on behalf of the administrator or temporarily disabling the antivirus. Also check that the firmware is downloaded for the Mi 5 model (codename gemini).

6. Alternative methods (for experienced users)

If standard methods don’t work, try bypassing the lock through ADB or TWRP. These techniques require technical skills and can disrupt the phone if used improperly.

πŸ”Œ Unlocking through ADB (if debugging is on):

If USB Debugging was previously enabled on the phone, you can delete the lock files via ADB:

adb shell


su




rm /data/system/gesture.key




rm /data/system/password.key




rm /data/system/locksettings.db




rm /data/system/locksettings.db-wal




rm /data/system/locksettings.db-shm




reboot

After the reboot, the screen lock will reset.

πŸ”„ Installation TWRP and:

  1. Download TWRP for Mi 5.
  2. Install with Fastboot: fastboot flash recovery twrp.img fastboot boot twrp.img
  3. In TWRP, select Wipe β†’ Format Data (enter yes for confirmation).
  4. Reboot.

⚠️ Risks:

  • ❌ Wrong firmware TWRP may lead to a brick.
  • ❌ On the new versions MIUI post-installation TWRP The anti-rollback can work (the phone will be locked forever).
  • ❌ Without a backup, the data will be lost.

πŸ’‘

Use TWRP or ADB only if you are confident in your actions. It is safer for beginners to use official methods (sections 1-3).

7 What should I do if nothing helps?

If you’ve tried all of these methods, but your phone is still locked, there are two options:

  1. Contact the Xiaomi Service Center. πŸ“ Find the nearest authorized service. πŸ’° The cost of unlocking: ~1 500–3 000 β‚½ (depending on the region). ⏳ Time: 1-3 days.

πŸ”Ή Pros: warranty, no risk of damaging the phone.

πŸ”Έ Cons: expensive, takes time.

Buy a new phone.

If the Mi 5 is outdated and unlocking is expensive, it might make sense to consider buying a new model.For example, the Redmi Note 12 or POCO X5 offer modern specs at an affordable price.

πŸ’‘ Tip: Before buying used Xiaomi, always check if the previous owner's Mi Account is tied to the phone. ask the seller to reset settings with you.

FAQ: Frequent questions about unlocking Xiaomi Mi 5

πŸ”“ Can I unlock the Mi 5 without losing data?
Yes, but only if: You remember the Mi Account data (method 1). You have an old version of MIUI (up to 9th), and the emergency call method (method 2) worked. The phone has been enabled to debug over USB, and you can use ADB (method 6). In all other cases, the data will be erased.
πŸ”§ Why does the phone need to reset via Fastboot again?
It's FRP-Factory Reset Protection: This works if you have a Mi Account attached to your phone and you have reset your account without detachment. Solutions: Enter Mi Account information if you remember. Refuse your phone through the Mi Flash Tool (method 5). Contact the service center with proof of ownership (check, box).
πŸ“± How to find out the version MIUI on a locked Mi 5?
If the phone is turned on but locked: Press Volume Up + Power to log in to Recovery - the MIUI version is usually listed at the bottom of the screen.If there is access to Fastboot, plug the phone into your PC and type in the command: fastboot getvar version-bootloader or fastboot getvar version-baseband
⚑ The phone is dead and not turning on?
First charge your phone: Connect to charge and wait 30 to 60 minutes (even if the indicator doesn't burn). Try another charger or cable (preferably the original one). If the phone doesn't respond, try clamping Volume up + Volume down + Power for 20 to 30 seconds (emergency reboot). If after charging the phone turns on but shuts down right away, maybe the battery is faulty.
πŸ›‘οΈ How to protect the Mi 5 from future locks?
Follow these recommendations: πŸ” Use a fingerprint or facial recognition in addition to PIN-code. πŸ“ Write down your Mi Account and Google Account password in a secure location (such as in your password manager). ☁️ Regularly back up through Settings β†’ Additionally. β†’ Backup. πŸ”„ Update. MIUI Up to the latest version – there are fewer vulnerabilities in new firmware. 🚫 Do not buy used phones without resetting to factory settings.