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

The situation when the screen of the smartphone Xiaomi Mi A2 suddenly ceases to respond to the usual pattern lock or PIN-This code can take anyone by surprise, often after a system update or a long period of operation, when memory is full of temporary files. A2, face more stringent security systems, making standard bypassing methods less effective.

Donโ€™t panic if you forget your password, because there are several proven ways to restore access to data and functions of the phone. In this article, we will detail the algorithms for actions for different scenarios, including using a Google account and recovery mode. It is important to understand that a full reset via Recovery is the only guaranteed way to unlock without losing data, if they were not synchronized in advance.

Before you start taking action, you need to assess the current state of the device and the availability of backups. Sometimes the problem is not the forgotten code, but the software failure of the touchscreen, which can be solved by restarting. We will look at all the nuances so that you can choose the most gentle method for your situation.

โš ๏ธ Note: Most of the unlock methods described below will result in the complete deletion of user data (photos, contacts, messages.

Preparation of the device for the recovery procedure

The first step before any manipulation of the system partitions Xiaomi Mi A2 is the correct preparation.You need to make sure that the battery is charged at least 50-60%, as the process of resetting or flashing requires stable power.

Itโ€™s also worth checking for a physical on and volume button, as these will be used to navigate the Recovery Mode menu.If the buttons stick or donโ€™t work, use a computer connection, but this requires pre-setting the USB debugging, which is often disabled by default.

It is important to understand the difference between a Mi Account and a Google account on Android One devices. Since the Mi A2 runs on pure Android, Google services are given priority here, not the MIUI shell. This means that after a reset, the device will request the Google account that was synchronized earlier.

  • ๐Ÿ”‹ Charge your smartphone to at least 60% for stable operation.
  • ๐Ÿ“ฑ Check the serviceability of the volume and power buttons.
  • ๐Ÿ’พ Remember the login and password from the Google account associated with the device.
  • ๐Ÿ”Œ Prepare. USB-cable and computer, if used ADB.

If you have the opportunity, try to remember your password using the prompts or by trying to enter it on another device that has logged in to the same account, sometimes users change the password in a hurry and forget about it, blocking access to all associated gadgets.

๐Ÿ“Š How do you normally protect your smartphone?
pattern lock
PIN-code
Fingerprint.
Face ID
Password not set

Use the Find My Device feature from Google

The most civilized and easy way to unlock the Xiaomi Mi A2 is to use Googleโ€™s built-in Find Device service, which only works if the locked phone has internet (Wi-Fi or mobile data) on and geolocation activated, and if these conditions are met, you can remotely control access to the system.

To start the procedure, go to the official website of the service from any other device (computer, tablet or phone of a friend), you will need to log in to the same Google account that is used on the blocked Mi A2.

In the control interface, you'll see several options: Call, Lock, and Clear the device. We're interested in the cleaning function that initiates factory reset, and once confirmed, the phone will be commanded to delete all data and reset the lock screen password.

ParameterRequirementThe result
InternetDefinitely (Wi-Fi or 4G)The team will reach the device.
GPSPreferably.Mapping
Account.Exactly the same.Successful authorization
Battery chargeAnybody.Execution of the team

It's worth noting that once you've done the "Clean" command, the device will reboot, and when you first turn on, it will require you to enter a password from your Google account to prove ownership (FRP protection), a standard Android security measure that you can't get around without your account data.

๐Ÿ’ก

If the internet on the phone is turned off, the reset command will remain in the queue and will be executed automatically as soon as the device is in the network coverage area.

Reset via Recovery (Hard Reset)

The most versatile method, which works even when there is no Internet or a dead battery (subject to the possibility of turning on), is to enter Recovery mode. On the Xiaomi Mi A2, as on other Android One smartphones, you can get into this menu with a combination of physical buttons when the screen is off.

To enter, you need to turn off your smartphone completely. Then press the volume down button and the power button at the same time. Hold them until the Android logo or recovery menu appears. Some versions of the firmware may require you to hold the volume up button instead of the volume down, so it's worth trying both options if the first one doesn't work.

Once you enter the Recovery menu, you will see an animated Android robot with a red triangle. To open the command list, press and hold the power button, then once press the volume button (or vice versa, depending on the menu version). In the list that opens, use the volume buttons for navigation and the power button for selection.

โ˜‘๏ธ Hard Reset algorithm

Done: 0 / 5

You need to find Wipe data/factory reset and confirm the selection. The system will warn you that data is irreversible. Once confirmed, the process of formatting the user partition will begin. Once completed, select Reboot system now to restart.

โš ๏ธ Note: On Android 10 and higher devices, it may take 15 minutes to 24 hours to wait for a new password to be entered after a reset.

Unlocking with Smart Lock

Smart Lock is a handy option that allows you to keep your device unlocked in certain conditions. If you set this feature up in advance on your Mi A2, then there is a chance to access the system without entering a password. This can work if you are in a โ€œsafe placeโ€ (such as at home) or near a โ€œtrusted deviceโ€ (smart watch, car headset, headphones).

Try approaching a location the phone considers safe, or turning on Bluetooth on a paired device. If the system recognizes a trusted factor, the lock screen may disappear or allow the phone to be unlocked with a simple swipe, but this method only works to log in, but does not remove the password requirement when the device is rebooted.

It's also worth checking the Facial Recognition or Fingerprint settings if they've been configured as alternative methods. Sometimes biometrics works even when the digital code is no longer accepted by the system because of a software glitch. Try applying your finger several times or looking at the front camera when the screen is on.

  • ๐Ÿ  Are you in the range of home Wi-Fi?
  • ๐ŸŽง Is your Bluetooth headphones or watch on?
  • ๐Ÿš— Are you in a car if it is added to a trusted vehicle?
  • ๐Ÿ‘† Does the fingerprint scanner work when you try to enter?

Unfortunately, if the Smart Lock wasn't activated in advance, it's not a preventive measure, rather than an emergency unlock, but it's definitely worth checking before you go for radical measures.

Why does Smart Lock stop working?
Often users forget that the Smart Lock is turned off after a full reboot of the device or if the phone has not been used for more than 4 hours.

Use of debugging by USB and ADB

For advanced users who have previously included USB Debugging in the Developer Menu, there is a method of unlocking via a computer, which requires installing ADB drivers (Android Debug Bridge) and having the appropriate software on the PC. If debugging was active and the computer was previously authorized, you can try to delete the file with the lock keys.

Connect the blocked Xiaomi Mi A2 computer-to-computer USB-Open the command line (CMD) or terminal in a folder with installed ADB. Enter the connection check command:

adb devices

If you see a device that has device status on the list, you've got the connection, and then you can try sending a command to reset security settings, although on modern Android, this is often blocked without root permissions.

adb shell rm /data/system/gesture.key

Or, for PIN-code:

adb shell rm /data/system/password.key

Once you have completed the command, you need to restart the device, and it's important to understand that on current Android security versions, this method rarely works, because the system partition is protected from recording without special permissions. However, the attempt is not time-consuming and can be a salvation in some cases.

๐Ÿ’ก

The ADB method is only effective if USB debugging was previously enabled and the computer had permission to access the device data.

What to do if the FRP protection is working

After a successful Hard Reset, many users are faced with an activation screen where the system requires you to enter a Google account that was synced to the device before the reset, a FRP (Factory Reset Protection) mechanism designed to protect the ownerโ€™s data in the event of a phone theft.

If you remember your account, just enter your login and password. Problems arise if you forgot your login details or bought your phone with your hands and the previous owner did not untie the device. In the first case, use the procedure to restore access to your Google account through a browser on another device.

In the second case, buying used, the only legal way is to contact the seller to unblock the device. There are FRP Bypass, which often varies depending on the version of the Android security patch installed on the Mi A2. These can involve complex manipulation of special features settings, but their description requires separate guidance due to the high variability.

โš ๏ธ Note: Using third-party software to bypass FRP It can be considered illegal if the device is not yours.Be careful when downloading reset tools, as they often contain viruses.

If you successfully enter the correct account data, the phone will unlock and go to the standard procedure of initial setup. All data that was not stored in the Google cloud will be lost irretrievably, so after unlocking it is recommended to immediately set up automatic sync.

Frequently Asked Questions (FAQ)

Can I unlock the Xiaomi Mi A2 without losing photos and contacts?
Unfortunately, if you forgot your screen password and didnโ€™t set up Smart Lock or ADB debugging, the only way to access the system is a full Hard Reset, which deletes all user data. Photos can only be saved if sync with Google Photos was enabled.
What to do if your phone writes โ€œincorrect passwordโ€ after resetting?
This could mean you're trying to type in an old password and the system requires a new one, or you're using FRP protection and you need a Google account, and you may not have fully resetted it, and you've got the old lock cache in your memory. Try repeating the Hard Reset procedure.
How long do you have to wait after 5 wrong attempts?
Lock time increases exponentially, from 30 seconds to 1 minute, then 5, 15, 30 minutes, and so on. In some cases, the device can lock for 24 hours. Interrupting this timer by rebooting usually doesn't help and can only reset the meter partially.
Will the phone help to remove the password?
Flashing (installing a new version of the system via Fastboot) is the same effect as Hard Reset, which also completely clears the partition with the user's data, so the password will be deleted, but the files will also disappear, and FRP protection will not go away when you flash it.
Where to find the IMEI serial number to restore your account?
The serial number and IMEI are usually listed on the phone box, on a sticker under the battery (if it is removable, which is not relevant for the Mi A2) or on the purchase check, and this data can also be in the personal account of the operator if the phone was registered on the network.