A situation where the owner cannot access his smartphone due to a forgotten password, PIN-The code or graphics drawing is one of the most stressful in the world of digital technology. Xiaomi users face this quite often, especially given the aggressive shell security policy. MIUI And HyperOS, which locks the device after a certain number of failed input attempts, often spontaneously: you change the pattern, rush and lock the gadget, or the device gets to the new owner without transferring the access data.
Fortunately, the current Mi Account ecosystem and standard Android protocols offer several ways to address this problem. However, it is important to immediately tune in to the fact that data security is the first priority for developers, so most methods involve complete deletion of information. In this article, we will discuss in detail all legal ways to restore access, from cloud services to forced reset through the engineering menu.
Before you get into action, you need to understand the difference between locking your screen and locking your account. If your phone requires a password from your Mi Account after you reset, it's a theft protection that's almost impossible to get around without the original owner's data. If it is a forgotten pattern lock or PIN-In the unlock code, the chances of bringing the device back to life are very high, and the most critical point is the presence of the "Find Device" feature enabled, which can require a password from the account even after resetting the settings.
Using the Mi Cloud service for remote unlocking
The most civilized and safe way to restore access to the device is to use the Mi Cloud service, which works only if the locked smartphone has previously logged in to the Mi Account and activated the Find Device function, and the gadget must be connected to the Internet via a mobile network or Wi-Fi.
To start the procedure, you will need access to another device (computer or smartphone) with access to the network. You need to go to the official website of the Xiaomi cloud service and log in under the same account that is used on the locked phone.
From the control menu, select the option “Wipe Data” (Wipe Data), which will force the Factory Reset process on the phone, deleting all user files, including the forgotten lock password, and after rebooting the device will be clean, as from the store, and require initial configuration.
⚠️ Warning: This method will completely destroy all photos, contacts and apps on your phone.If you didn't have cloud sync enabled, it won't be possible to restore personal files.
Resetting with Recovery Mode (Hard Reset)
If cloud services are unavailable or the internet is off, the only option is to use Recovery Mode, a low-level operating system built into the phone’s memory that allows administrative tasks, including factory resets, accessed by a combination of physical buttons.
The login procedure may vary depending on your Xiaomi Redmi or POCO model. Most often, you need to turn the device off completely, then press the volume button and the power button at the same time. Hold them until the Mi logo appears, then release power, but continue to keep the volume until the Recovery menu appears.
In the menu, you can navigate with volume buttons (up/down), and the choice is confirmed by the power button. You need to find the Wipe Data item and select the Wipe All Data option. The system will ask for confirmation, usually this is Confirm. After the cleaning process, select Reboot to restart the system.
☑️ Checklist before resetting via Recovery
Importantly, newer versions of MIUI 12, 13, 14 and HyperOS may require you to enter a password from the Mi Account that the phone was attached to after resetting via Recovery, a measure of protection against theft. If you don't remember your account password, you won't officially unlock your phone.
Unlocking with Google Find My Device
An alternative to Xiaomi’s branded service is Google’s standard tool, Find My Device, which is effective if the device is logged in to a Google account and geolocated, and is similar to Mi Cloud: a remote command to reset data.
Go to Google Find My Device from any browser and log in to an account that is synced to the locked phone. The system will try to locate the device. If the phone is connected, select the “Clear Device” option from the action menu.
Once the command is confirmed, the phone will receive a signal to perform a complete reset, which, unlike some methods, works even if the phone is in sleep mode, the main thing is that it has an active connection to the network, and after rebooting, the screen password will be deleted.
| Method | We need the Internet. | I need an account. | Data retention |
|---|---|---|---|
| Mi Cloud | Yes. | Mi Account | No. |
| Recovery Mode | No. | No (but maybe ask after) | No. |
| Google Find Device | Yes. | Google Account | No. |
| ADB Command | No (PC needed) | No. | No. |
What to do if your phone says “Device is locked”?
Using ADB to remove lock files
For more advanced users, there is a method of unlocking through debugging by USB (USB Debugging. This is only possible if the debugging function has been activated in advance in the Developer Menu and the computer already has permission to connect to the device.
You'll need to install ADB drivers on your computer and connect your phone with a cable. You'll need to enter a command over the command line to delete system files that store access keys. These are usually gesture.key or password.key files in /data/system/.
adb shell rm /data/system/gesture.key
adb shell rm /data/system/password.keyOnce the commands are executed, the device needs to be restarted. In theory, the lock screen should disappear or allow any password to be entered. However, on modern versions of Android with data encryption, this method rarely works, since the keys are stored in a secure memory area (TEE), access to which is closed without unlocking.
⚠️ Attention: Use ADB Introducing incorrect commands can lead to unstable system operation or loss of important system files, which will require flashing the phone.
💡
Tip: If you plan to use ADB in the future, be sure to enable USB debugging in advance and establish a connection with a trusted computer while access to the phone menu is open.
FRP (Google Account Lock)
After a forced reset (Hard Reset), modern Xiaomi smartphones activate FRP protection. This is a mechanism that requires entering a password from a Google account that was synced to the device before the reset, which is done so that the stolen phone can not simply be reflashed and used.
There is no official way to open a phone without a password, and the only legal way is to restore access to your Google account through a recovery form on any other device, and if you bought your phone with your hands and it's locked, the only way to do that is to contact the previous owner to unlock it.
There are various workarounds (FRP Bypass) that exploit vulnerabilities in the system, such as through the settings of TalkBack or the browser. However, these methods are constantly patched by Xiaomi and Google, using such methods can be regarded as a violation of the terms of use of the software, and also carries the risk of installing malware.
The process of restoring the account looks like this:
- 📱 Go to the Google Account Recovery page from another device.
- 📧 Enter the email address that was on the locked phone.
- 🔑 Follow the instructions to reset your password (via backup email or phone number).
- 🔄 Enter a new password on a blocked Xiaomi after resetting.
Prevention and backup
To avoid being caught off guard by the “keyless shaomi” situation, it’s important to prepare the device in advance. Regular backups are the only guarantee that your data is safe. Xiaomi offers built-in backup tools that can be set up to run automatically.
A combination of cloud storage and local copy is recommended, and photos and contacts are best synced with Google Photos and Google Contacts respectively, as this provides access to data from any device in the world, regardless of the state of the smartphone itself.
💡
Regularly syncing data to the cloud is the only way to ensure that you don’t lose important information when you need to reset your password.
It's also worth writing down yours. PIN-You can use your codes and graphics keys to a safe place (like a paper notebook or password manager) to avoid relying on memory alone. Remember that biometrics (print, face) are just a convenient addition, but the main access key is a digital code that you can not forget.
What to do if I forget my Mi Account password?
Can I unlock Xiaomi with my fingerprint if I forget my password?
Will the information be erased when unlocked through Mi Cloud?
Why does the phone ask for an account after resetting with buttons?
⚠️ Be careful with services that offer “unblock for money”: 99% of the time they either require your personal data, use the same free methods described above, or are outright fraud.