How to unlock Xiaomi Mi A2 if you forget your password: the full guide 2026

Forgot the password from Xiaomi Mi A2 And you can't get into the system? This is a familiar situation for many people -- you just have to type in the wrong one. PIN-A code or a pattern lock, and the phone locks up for 30 seconds, then for a minute, and then requires you to enter your Google credentials, but what if you don't remember your screen password or your account information?

Mi A2

Xiaomi

Android One

MIUI

Find My Device

all-time

loss

๐Ÿ“Š How often do you forget passwords from your devices?
Never.
Always written down nearby
Sometimes (1-2 times a year)
Frequently (once a month)

1 Unblocking through Google account (the easiest way)

If your Xiaomi Mi A2 is connected to the internet (via Wi-Fi or mobile network), after 5 failed attempts to enter a password, the system will offer a recovery option via Google account.

What to do:

  • ๐Ÿ”น Enter any password 5 times in a row until the message โ€œForgot the pattern lock?โ€ or โ€œForgot the passwordโ€ appears?".
  • ๐Ÿ”น Click on this sign, the Google login window will open.
  • ๐Ÿ”น Enter the email and password from the account that was linked to the phone.
  • ๐Ÿ”น Follow the instructions on the screen to create a new lock password.

โš ๏ธ Note: If you changed your Google password after setting up your phone, this method may not work, and it is not available if your device has an internet connection or has previously enabled the "No Connection - Do Not Lock" option in the security settings.

๐Ÿ’ก

If you donโ€™t remember your Google password, try to restore it through your computer at accounts.google.com. Use a backup email or phone number linked to your account.

2.Reset to factory settings via Recovery Mode

If Google fails, you have to resort to a hard reset, which will remove all data from your phone, including photos, contacts and apps, but it works 99% of the time, even if the phone is completely locked.

Instructions for Xiaomi Mi A2:

  1. Turn off the phone with a long press on the power button (10-15 seconds).
  2. Press the Power button + Volume Up at the same time and hold for 10-15 seconds until the Xiaomi logo appears.
  3. Release the buttons and you will be taken to the Recovery Mode menu (a black screen with a green robot and the inscription "No command").
  4. Press the Power button + Volume up again for 1-2 seconds to open the menu.
  5. With the volume buttons, select "Wipe data/factory reset" and confirm the choice with the power button.
  6. Select โ€œYes โ€“ Delete all user dataโ€ and wait until the process is completed (1-3 minutes).
  7. After reset, select "Reboot system now".

The phone will reboot and suggest that you set it up as new, and this method is guaranteed to unlock the screen, but all data will be permanently deleted, including photos in the internal memory.

Stock up on the charger (the battery must be charged at least 30%)

Make sure your important data is synced to Google Drive or other cloud

Prepare. SIM-resetting card

Remember the Google account that was linked to the phone-->

3. Unlock through ADB (for advanced users)

If you have previously enabled USB debugging, you can try removing the password file via ADB (Android Debug Bridge), a method that saves data but requires a computer and minimal technical skills.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with installed Xiaomi drivers and package ADB Tools.
  • ๐Ÿ”Œ USB-cable (preferably original).
  • โšก Included debugging by USB on the phone (if not on, the method will not work).

Step-by-step:

  1. Connect your phone to your computer via USB.
  2. Open the command line (Win + R โ†’ enter cmd โ†’ Enter).
  3. Enter the command to check the connection: adb devices If the phone is determined (the serial number will appear), go further.
  4. Enter the commands in turn: 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

Once the phone is restarted, it should start without a password, so if a "su: not found" error appears, it means that the phone has no root rights, and the method will not work.

What if the ADB canโ€™t see the device?
If the adb device command returns a blank list, try: 1. Install Xiaomi drivers manually through Device Manager. 2. Reconnect the cable to another. USB-port (preferably) USB Turn on โ€œCharge Onlyโ€ mode in the phone notification curtain, then select โ€œCharge Files Transferโ€ again. 4 Restart computer and phone.

4.Use of Google's Find My Device service

If you have Google sync enabled and you have Internet access, you can try to unlock it through Find My Device, a web service that only works if you meet two conditions:

  • ๐Ÿ“ถ The phone is connected to the Internet (Wi-Fi or mobile network).
  • ๐Ÿ”„ Geolocation and remote control enabled in Google settings.

Instructions:

  1. Go to Find My Device from a computer or other phone.
  2. Sign in with the same Google account as your blocked Mi A2.
  3. Select your Xiaomi Mi A2 from the list of devices.
  4. Click on โ€œBlock the deviceโ€ (yes, that sounds weird, but itโ€™s the right thing to do).
  5. Enter a new temporary password and confirm.
  6. On the locked phone will appear a field to enter this password.

โš ๏ธ Warning: Once unlocked in this way, you may need to reset your screen password in your security settings, and this method does not work if your phone is disabled or offline.

5 Unlocking through Mi Account (only for the MIUI)

Although the Xiaomi Mi A2 runs on Android One, some users install MIUIs on it through custom firmware. If that's your case, you can try unlocking the phone through Mi Account.

For this:

  1. Go to the Mi Account website.
  2. Sign in with your Xiaomi account.
  3. Select the Device or Find Device tab.
  4. Find your Mi A2 in the list and click Unlock.

This method doesn't work on all firmware, and requires that the phone be tied to Mi Account before locking. If you have a standard Android One, it won't work.

๐Ÿ’ก

On the Mi A2 with the original Android One firmware, unlocking via Mi Account is not possible โ€“ this method only works on devices with MIUI.

6. Contact the Xiaomi Service Center

If none of these methods worked, the last option is to contact the official service center of Xiaomi.

  • ๐Ÿ” Phone locked after failed firmware.
  • ๐Ÿ“ฑ The error appears on the screen: "This device is locked).
  • ๐Ÿ’พ You need to save data, but resetting does not help.

What to bring with you:

  • ๐Ÿ“„ Check or warranty card (if the phone is guaranteed).
  • ๐Ÿ†” Passport for proof of possession.
  • ๐Ÿ“ฑ The device itself with a charge of at least 50%.

The cost of unlocking the service varies from 1,000 to 3,000 rubles, depending on the complexity, and in some cases, it may be necessary to replace the motherboard if the lock is associated with a hardware malfunction.

Unlocking methodAre the data stored?You need a computer?Difficulty
Through a Google accountโœ… Yes.โŒ No.โญโญ (simple)
Reset via RecoveryโŒ No.โŒ No.โญโญ (simple)
Through ADBโœ… Yes.โœ… Yes.โญโญโญโญ (difficult)
Find My Deviceโœ… Yes.โœ… Yes.โญโญ (simple)
Service centreโ“ Depends on the case.โŒ No.โญ (simple)

Frequent Mistakes and How to Avoid Them

When unlocking the Xiaomi Mi A2, users often face typical problems, and here are the most common ones and ways to solve them:

Error 1: After resetting via Recovery, the phone requires you to enter the old password.

This happens if the Factory Reset (FRP) protection feature was enabled.Solution: Unblock through the Google account that was tied before the reset.

Error 2: ADB does not see the device, although debugging is enabled.

Try using another one. USB-cable (preferably original) or install drivers manually through Device Manager.

Error 3: Once unlocked through Find My Device, the phone asks for a password again.

So that means that the data didn't sync with Google's servers, so you can reset it through Recovery.

๐Ÿ’ก

If the phone unlocks the message "This device was reset. To continue, sign in with a Google Account," it's a Google Account. FRP-In this case, only the account that was linked before the reset will help.

FAQ: Answers to Frequent Questions

Can I unlock the Xiaomi Mi A2 without losing data?
Yes, but only if: ๐Ÿ”น The phone's debugging on. USB (Then the method of ADB). ๐Ÿ”น Your phone is connected to the internet and you remember your Google account details. ๐Ÿ”น You have a backup in Google Drive or another cloud, and in all other cases, the data will be deleted.
What if I forgot my screen password and Google account details?
In this case, there are only two options: Recovery Mode (data will be deleted); Contact Xiaomi Service Center (you can save data, but not guaranteed); If backups in Google Photos or Contacts were enabled on the phone, you can recover some of the data after unlocking.
Will the phone help you remove your password?
Yeah, but it's an extreme method. EDL delete all the data and reset the password, but: ๐Ÿ”น Unlocked bootloader is required (if not, you will have to wait). 7-30 Unlock the device with the Mi Unlock Tool). ๐Ÿ”น There is a risk of โ€œbrickingโ€ the phone if you do the wrong thing. ๐Ÿ”น On Mi. A2 from Android One to re-flashing MIUI It can cause problems with drivers. It is better to try other methods first.
How to avoid blocking in the future?
Not to face this problem again: ๐Ÿ”น Use a fingerprint or facial recognition as an additional way to unlock. ๐Ÿ”น Write your password in a secure location (such as Google Keep or Notebook). ๐Ÿ”น Enable Smart Lock in your security settings so that your phone unlocks in secure places (such as at home). ๐Ÿ”น Regularly back up through Settings โ†’ System system โ†’ Backup.
Can I unlock the Mi A2 through the Engineering Menu?
No. The engineering menu (#4636###) does not contain features for resetting the lock password, it is designed to diagnose the network, battery and sensors, but not to bypass security. Any instructions on the Internet suggesting unlocking a phone through an engineering menu is a fraud or a mistake.