When you pick up your smartphone to check a notification or answer a call and suddenly realize you can’t remember the unlock combination, it’s one of the most stressful things in the digital world. It’s especially frustrating to realize that when you put on your screen a sign that your device is locked for 30 seconds and then for an hour, and with each attempt, the waiting time only increases. Owners of Xiaomi, Redmi and Poco gadgets face this problem regularly, because the security system MIUI and HyperOS require periodic code change or simply “forget” the data entered after a firmware update.
It's important to decide on the type of lock, because what you do next depends on it, whether it's a pattern lock, a digital pin, a complex password, or a fingerprint lock that's no longer recognized because of sensor contamination. If you just forgot the lock screen password but remember the Mi Account data, the chances of getting back to the data without losing information are still great. However, if Find Device and two-factor authorization are enabled, the process can become complicated, requiring a complete memory cleanup.
Before embarking on radical measures like Hard Reset, you need to take a hard look at the situation and check all possible backdoors that a security system could leave. Modern Android shells have several layers of protection, and sometimes the solution lies in synchronizing with cloud services or using alternative authorization methods. In this article, we will examine in detail all the known ways to restore access, from the most gentle to complete firmware, so you can choose the best option for your case.
Using Mi Cloud to remove the lock
The most civilized and safe way to block is to use the cloud service Mi Cloud, which is integrated by default into the shell MIUI. This method works only if the locked device was signed in to the Mi Account, enabled the function “Find the device” and the smartphone itself has an active Internet connection (Wi-Fi or mobile data). If these conditions are met, you do not need to reset to factory, which will save all contacts, photos and applications.
To start, go to the official i.mi.com website from any other device, whether it is a computer or tablet. You will need to log in using the same Mi Account that is attached to the locked phone. After successfully logging in to the service interface, find the Find Device section. The system will try to locate your gadget, and if the connection to the server is established, a map and control panel will appear on the screen.
⚠️ Note: Remote unlock may not be available in some regions or on certain firmware versions due to Google’s security policies and local laws.
In the control panel, select your device from the list (if there are more than one) and click on the Unlock button. The system will request confirmation of the action, as this is a critical security operation. Once confirmed, the command will be sent to the smartphone and the lock screen will be removed. It is important to know that after this procedure, the lock screen password will be reset, and you will need to reconfigure the biometrics or come up with a new pin code.
Resetting settings via Recovery Mode
If cloud services have failed or Internet access is not available on a locked device, the only way out is to force resets through a recovery mode known as Recovery Mode. This method is standard for all Android devices and allows you to return the phone to a “shop-like” state by completely removing user data, including the forgotten password. Before starting the procedure, make sure that the battery charge is at least 30-40% so that the phone does not turn off at a critical moment.
The process of entering recovery mode on Xiaomi and Redmi smartphones has its own peculiarities. First, turn off the device completely. Then press the Volume Up and Power button simultaneously. Hold them until the Mi logo appears on the screen, after which the power button can be released, continuing to hold the volume button until the main Recovery menu appears.
☑️ Preparing for resetting through Recovery
In the Recovery menu, the navigation is done with volume buttons (up/down), and the choice is confirmed by the power button. You need to find the Wipe Data item and select it. Then the system will prompt you to choose Wipe All Data for complete cleaning. Once confirmed, the phone will begin the formatting process, which can take several minutes. Once completed, select Reboot to restart the system.
⚠️ Warning: After resetting settings through Recovery, protection will work FRP (Factory Reset Protection: The phone will require you to enter a password from a Google account or Mi Account that was synced to the device before locking.
Unlocking via Fastboot and PC
Fastboot mode is a low-level debugging protocol that allows you to control the Android device bootloader from your computer. Unlike Recovery, Fastboot does not have a graphical interface on the phone itself and is managed exclusively via the command line on your PC. This method is often used to flash the device, but can also be useful if the Recovery menu is damaged or unavailable, although it requires an unlocked bootloader to directly remove the password.
To get into Fastboot mode on Xiaomi devices, you need to turn off your phone and then press the Volume Down and power button simultaneously. The screen will show an image of a rabbit repairing an android that says Fastboot. Connect the phone to your computer via the original one. USB-The computer must have drivers installed. ADB/Fastboot platform-tools.
Open the Command Prompt (CMD) or PowerShell in the folder with the installed tools and enter the command to check the connection:
fastboot devicesIf you see the serial number of the device in response, the connection is established. However, it is worth noting that the standard command to reset the password through Fastboot only works on devices with the bootloader unlocked. If the bootloader is locked (which is the default for all devices purchased at retail), this method will only allow you to reflash the device completely, which will also lead to deletion of data.
What is an unlocked bootloader?
Using ADB for Advanced Users
Android Debug Bridge (ADB) provides a powerful interface for interacting with the Android operating system, which allows you to transfer files, install applications and execute system commands. Deleting a password file through ADB is only possible if the phone has previously enabled Developer Menu and activated USB debugging, and if you have previously authorized this computer on the device. If the phone is locked and you have never enabled debugging, this method, unfortunately, will not work.
If you're debugging, plug your phone into your PC and open the command line. Type in:
adb shell rm /data/system/gesture.keyFor digital passwords, the file name may differ, such as password.key or locksettings.db. Once you have completed the command, you need to restart the device. On some versions of Android, you can enter any password after this procedure, and the system will accept it, or the screen will be unlocked immediately.
The effectiveness of ADB is highly dependent on the Android version and the security level of the patch. On current versions of Android 12, 13, 14 and HyperOS shells, access to system lock files via ADB without root permissions is often closed, even if debugging is enabled, so this method should be considered as an auxiliary option for devices of previous generations.
💡
Before attempting any manipulation with ADB or Fastboot, be sure to back up important data if you have access to it through a file manager on a PC, as the risk of information loss is extremely high.
Comparison of Unlocking Methods
The choice of the specific method depends on your situation: access to the Internet, knowledge of account data and willingness to lose files. Below is a comparison table that will help you navigate the available options and their consequences for the device.
| Method | Data retention | We need the Internet. | Difficulty | Risk of blocking an account |
|---|---|---|---|---|
| Mi Cloud | Yes. | Yeah (on the phone) | Low. | No. |
| Recovery Mode | No (Full reset) | No. | Medium | High (FRP) |
| Fastboot | No. | No (PC needed) | Tall. | High-pitched |
| ADB (no root) | Yes. | No. | Tall. | No. |
As you can see from the table, Mi Cloud is the only way to ensure the safety of user files. All other methods somehow lead to data cleaning or require specific conditions that are difficult to fulfill on a locked device. Recovery Mode remains the most versatile “people’s” way, which works in 99% of cases, but requires passwords from accounts for subsequent activation.
💡
The most reliable way to avoid unlocking problems is to regularly back up data to the cloud and write passwords to a trusted password manager or notebook.
Preventing and Configuring Smart Lock
To avoid the “forget password” situation in the future, it is advisable to configure the Smart Lock feature.This technology allows you to automatically keep the device unlocked in certain secure conditions. For example, the phone can remain accessible when it is near your home (geolocation), connected to a Bluetooth headset in the car or when it is lying on the table (position sensor).
You can set up Smart Lock in Settings → Passwords & Security → Advanced Settings → Smart Lock. Here you can add trusted devices, places, or choose Physical Contact mode, which keeps the screen unlocked while you hold the phone in your hands. This greatly simplifies daily use, although it does not completely replace the basic method of protection.
Alternative unlocking methods are also recommended. If you use a pattern lock, adjust your face unlock or fingerprint as well. Biometrics are often more stable than the user's memory, allowing access to the device even in stressful situations. Remember to update your password periodically so that it is not forgotten completely, but also too simple.