How to unlock Xiaomi phone if you forget your password

The situation where the screen of a Xiaomi smartphone suddenly requires a password, and the memory completely refuses to remember the right combination, is familiar to many users. This can happen after a HyperOS or MIUI system update, accidental lock in your pocket or simply because of human forgetfulness. In 2026, data protection methods became more serious, and standard bypasses through the Emergency Call menu no longer work, requiring a deeper understanding of the Android architecture.

Restoring access to the device is a delicate process, as incorrect actions can lead to the complete loss of personal photos, contacts and correspondence. However, there are several proven ways to bypass the lock or reset the device to factory settings. It is critical to understand what type of lock is installed: a pattern lock, a digital PIN, a complex password or biometric protection, because this depends on the choice of strategy.

Before we go to any drastic measures, we need to evaluate whether the Internet is on, whether the Mi Account is tied, and whether USB debugging is activated, which will be crucial when choosing the method of unlocking, and then we will examine in detail each of the available algorithms of actions, from the most gentle to the complete reset of the system.

Using Mi Account to Remotely Unblock

The most civilized and safe way to return access to the device is to use the cloud service Xiaomi Cloud. This method only works if the locked phone is signed in to the Mi Account and enabled the function "Find the device". If these conditions are met, you do not need physical access to the menu settings of the gadget.

To start the procedure, you need to go to the official i.mi.com website from any other device (computer, tablet or phone of a friend). After logging in with the same credentials as on a locked smartphone, go to the Services β†’ Find the device. The system will try to determine the location of your gadget, and if it is online, a list of available actions will appear on the screen.

⚠️ Note: Remote unlock only works if the smartphone is connected to the network (Wi-Fi or mobile Internet). If the device is offline, the command will be executed as soon as it appears on the network.

In the action list, select Unlock, which will alert you that this action will remove the lock screen password but will not affect your personal files, apps, and settings. This is the only technique that allows you to unblock without losing data. Once the command is confirmed, the phone will automatically restart or simply unblock the screen, allowing you to set a new PIN.

πŸ“Š Have you ever been blocked by Xiaomi?
Yeah, I forgot my password.
No, I'm using a print.
Blocked the baby
Not yet.

If the Unblock option is inactive or gray, it means that the function was not pre-activated in the cloud settings, in which case only the option with full memory cleanup, which will be discussed below, is left, and it is worth noting that after this procedure, the phone can request a password from the Mi Account at the next boot for security reasons.

Resetting settings via Recovery (Hard Reset)

If cloud services don’t help or have not been set up, the only way out is to force a factory reset via the Recovery menu, a method that is universal for all models from the budget Redmi to the flagship Xiaomi 15 Ultra.

To enter recovery mode, you need to turn off your smartphone completely. Then press the Volume Up and Power button at the same time. Hold them until the Mi logo appears, then release the power button, while continuing to keep the volume. In a few seconds, the main Recovery menu opens.

β˜‘οΈ Reset algorithm via Recovery

Done: 0 / 4

This menu is controlled by volume buttons (up/down), and the choice is confirmed by the power button. You need to find the Wipe Data item and confirm the selection. Then the system will suggest you select Wipe All Data. After confirmation, the formatting process will begin, which can take from 30 seconds to several minutes depending on the memory capacity.

Model of the deviceButton combinationFeatures of the menuRisk of data loss
Xiaomi with a power buttonVol Up + PowerStandard textual100%
Xiaomi without a power button (Touch)Vol Up + Charging (PC)Sensory management100%
POCO series F and XVol Up + PowerEnglish-language menu100%
Redmi Note (older models)Vol Up + PowerMi Account request is possible100%

Once the reset is complete, select Reboot β†’ Reboot to System. The first system launch will take longer than usual, as the initial Android setup takes place.You will be prompted to connect to Wi-Fi and enter the details of a Google account that was previously synced to the device.

Bypassing locking through USB debugging (ADB)

This method is only suitable for advanced users who have activated the developer mode in advance and enabled debugging over USB in the system settings. If these points were active before blocking, you have a high chance of deleting the password without losing data by deleting the keykeeper system file.

To implement this method, you will need a computer with installed drivers. ADB and USB-Connect your smartphone to your PC. If the device is recognized, open the command line on your computer and type the next command to delete the key file:

adb shell rm /data/system/gesture.key

In some versions of Android 14 and 15, the path may be different, and you will need to delete the password.key file or locksettings.db. After you perform the command, you need to restart the device. On the lock screen, you can enter any arbitrary password or pattern lock - the system will miss you, since the verification file has been deleted.

What if the ADB can’t see the device?
If the computer is not responding to the connection, it is possible that the drivers are not installed or debugging mode is turned off. Try to pinch the combination of the buttons to log in to Fastboot (Vol Down + Power) and connect the cable, but this will require an unlocked bootloader for further manipulation. Without debugging enabled, the method is not working.

It is worth noting that on modern versions of HyperOS firmware security is increased, and the removal of system files can be blocked by access rights even with ADB. In this case, this method will not work, and you will have to resort to a complete reset.

Google's Find My Device Service

The alternative to the Mi cloud is Google’s standard service, which is built into every certified Android device, similar to Xiaomi’s method, but requires a Google account link, which may be relevant if Mi services are down or your account is lost.

Go to android.com/find from any browser and log in to the Google account that was used on the locked phone. If geolocation is enabled, you will see the location of the device. In the side menu, select the option "Erase Device".

This command initiates a complete reset remotely. Unlike Mi Account, Google doesn't offer the option to simply "Unlock" without deleting data on modern versions of Android for security purposes. So this method is equivalent to Hard Reset, but it does not have to press buttons on the phone itself.

⚠️ Note: After resetting through Google Find My Device, the device will request a password from the last used Google account (FRP Without this password, you can't use your phone.

FRP Lock and Google Account Problem

After a forced Hard Reset, most users are faced with FRP (Factory Reset Protection) protection, a security mechanism that requires verification of the identity of the owner by entering a password from a Google account that was synced to the phone before the reset.

If you remember the Google login and password, it's not going to be a problem. However, if you forget them, it gets complicated. Getting around FRP on the latest versions of Android 14-16 is extremely difficult and often requires paid special tools or flashing the device through Fastboot mode with the unlocked bootloader.

πŸ’‘

When buying used Xiaomi, always ask the seller to log out of Mi Account and Google Account before transferring money. FRP future.

Attempts to circumvent FRP by password selection or exploiting vulnerabilities in the system can result in the device being locked by IMEI or the software completely failing.

Prevention of blocking and backups

To avoid a locked screen problem at the most inopportune time, it is recommended to set up a security system in advance. Regular data backup to the Xiaomi Cloud or Google Drive will allow you to quickly recover information after a reset.

Alternative unlocking methods, such as fingerprint unlocking, facial recognition or Mi Band smartwatches, are also useful, and not only are these methods more convenient, but they also allow you to access the device if you forget the digital code.

  • πŸ”’ Always write complex passwords to a secure location or use a password manager.
  • ☁️ Check your sync status with Mi Account and Google regularly.
  • πŸ“± Install applications only from trusted sources to avoid encryption viruses.
  • ⚑ Keep an eye on the battery charge, as the discharge at the time of locking can complicate the unlocking procedure.

Compliance with these simple rules minimizes the risk of losing access to your digital life. Remember that data security is a balance between convenience and security, and neglecting one aspect can backfire.

πŸ’‘

Regular synchronization with the cloud is the only way to ensure the safety of data in case of emergency password reset.

Frequently Asked Questions (FAQ)

Can I unlock Xiaomi without losing photos and contacts?
Yes, this is only possible in two ways: through the Unlock feature on i.mi.com (if it was enabled in advance) or through USB debugging (ADB) if it was activated before the lock. In all other cases, including Hard Reset, the data will be deleted.
What if the phone says "Device locked" after resetting?
This is FRP (Google Lock) or Mi Account Lock. You need to enter the username and password from the account that was last synced with the device. If you forget the data, try to restore access through the Google or Xiaomi site from another device.
Will unlock work if the phone is not on? SIM-map?
Remotely unlocking through the cloud requires an internet connection. SIM-The phone must be connected to a Wi-Fi network, without the Internet, commands from the server will not go to the device.
Is it safe to use third-party programs to remove your password?
Using untested software carries high risks, often containing viruses, stealing your data, or permanently locking up your phone, and using only official methods from Xiaomi and Google is recommended.
Will the phone call be unlocked on the screen?
On modern versions of Android (starting at 10-11 and up), this bug has been fixed. A call won't unlock the screen or access the settings menu. Don't waste time trying to call the menu through an emergency call.