When the screen of a Xiaomi, Redmi or POCO smartphone suddenly becomes inaccessible due to a forgotten password, it is alarmingly common. Device owners often set up complex combinations to protect personal data, but human memory can fail at the most inopportune moment. If you find yourself in front of a black screen demanding to enter a pattern lock or digital code, you should not panic, since there are several proven methods of access restoration.
It's important to understand that modern Android security systems, especially those in the MIUI and HyperOS shells, are designed to maximize tamper protection, which means that the simple ways of circumventing security that worked on older versions of Android may not work on newer models. However, if you're the legitimate owner of the device, you always have ways to solve the problem, ranging from soft reset to full firmware.
Before you start taking action, you need to evaluate the criticality of the data stored in the memory of the phone. Some methods allow you to save photos and contacts, while others require full formatting (USB-Debugging is a sign-in through Mi Account, provided that Find Device has been activated in advance, otherwise you will have to choose between accessing the system and keeping files safe.
Using the Mi Account function to remotely unlock
The most civilized and safe way to restore access is to use the cloud service Mi Account. This method works only if you previously logged in to your account on a locked device and enabled the search function. The system allows you to remotely control the device through the web interface, which makes it possible to remove the lock screen without losing user data.
To start the process, you will need a computer or other smartphone with Internet access. Go to the official website of Xiaomi cloud service and log in using the same credentials that were entered on the locked phone. If the system requires two-factor authorization, confirm the login via the linked phone number or backup email.
Once you've successfully logged in, find the device management section, often labeled as Find Device or Find Device. From the list of available gadgets, select your Xiaomi or Redmi model. If the device is online and geolocated, you'll see its location on the map and the control panel.
In the control panel, find the unlock button. The system can warn you that after this procedure, the data will be deleted, but in practice, if the device is associated with an account, it often happens simply to reset the lock screen.
β οΈ Warning: If the device is enabled "Lost", it will not be possible to unlock it through the site. First, you need to turn off this mode in the account settings on the site.
Resetting with Recovery Mode (Hard Reset)
If the cloud method is not available, the most effective way is through the recovery menu, which is guaranteed to remove any lock screen, but completely removes all user data, returning the phone to the state "out of the box." Before starting the procedure, make sure that the battery is at least 50%.
To get into the Recovery menu on most Xiaomi models, you need to turn off the device and press the button combination. Usually this is a volume button along with the power button. Hold them until the Mi logo appears, then release the power button, continuing to keep the volume.
βοΈ Preparation for Hard Reset
In the Recovery menu, you can use volume buttons (up/down) to move around and power buttons to confirm your choice. The interface language can be English or Chinese. You need to find Wipe Data or Erase Data.
Once you select a point, the system will offer a confirmation, because the action is irreversible. Select Wipe All Data and confirm the action. The formatting process can take from a few seconds to a couple of minutes. Upon completion, the phone will prompt you to restart by selecting Reboot -> Reboot to System.
| Entry method | Button combination | The result | Data security |
|---|---|---|---|
| Recovery Mode | Volume + and Nutrition | Reset menu | Complete removal |
| Fastboot Mode | Loudness - and Nutrition | Firmware mode | Demands a PC. |
| Safe Mode | Loudness - when loaded | No third-party software. | It doesn't. |
Unlocking the Google Find My Device
An alternative to Xiaomiβs branded service is Googleβs standard security feature: If you have an active Internet connection on your locked smartphone and a Google account is attached, you can use Find My Device, a method that is especially effective if you donβt remember your Mi Account password, but remember your Google data.
Go to google.com/android/find from any device and log in to the right account. The system will try to locate your phone. On the menu on the left or bottom, you will see several options: Call, Lock and Clear the device.
We're interested in the cleaning function. By clicking on Erase Device, you start the remote reset process, the phone gets a command to format and reboot, and when you turn on, you'll be greeted by the initial settings screen, where you'll need to enter your Google account password to confirm ownership (FRP protection).
What is FRP and how to get around it?
It is worth noting that this method only works if the phone is connected to a mobile network or Wi-Fi. If the device was turned off or was in aeromode, the command will be executed as soon as the phone appears on the network.
Use of USB and ADB debugging (for advanced ones)
This is only suitable for those users who have pre-installed USB Debugging in the developer menu. If this feature was activated before locking, you can delete the file responsible for storing access keys through the computer.
Connect your phone to your computer through USB-Install the Platform Tools on your PC (ADB). Open the command line in the tool folder and enter the command to check the connection: adb devices. If the confirmation window appears on the phone screen, click "Allow" (if the screen responds to touches in the notification area or if possible).
adb shell rm /data/system/gesture.key
adb shell rm /data/system/password.key
adb rebootExecuting these commands will delete files that store a pattern lock or a digital password. Once reboot (adb reboot), the phone should let you in without entering a password, or offer to install a new one. It is important to understand that on new versions of Android with disk encryption, this method may not work, since without unlocking the screen, access to the file system through ADB is closed.
β οΈ Note: On the modern versions MIUI access to system partitions through ADB without unlocked screen is often locked by default, even if debugging is enabled.
Unlocking the lock via Fastboot and Mi Flash
If standard methods donβt work, you can try reflashing the device in Fastboot mode. This is a more complex method that requires an unlocked bootloader. If the bootloader is locked, you will have to wait 7-168 hours after submitting an application to Xiaomi, which can be problematic in a situation with a forgotten password.
To enter Fastboot mode, press the volume and power buttons simultaneously. Connect your phone to your computer. In Mi Flash Tool, select the downloaded firmware (preferably the region-specific version of China or Global) and press Flash. Select Clean All mode to clear the partitions completely.
π‘
Always use the original USB-cable USB 2.0 on the computer motherboard to avoid connection errors during firmware.
The firmware process will take a few minutes, and when it is completed, the phone will restart with a clean system, a method that ensures that any software locks are removed, but requires technical skills and a stable-internet connection to download the firmware image.
FRP Reset Protection and Important Nuances
After successfully resetting your settings with any of the above methods, you will encounter the initial setup screen, where FRP (Factory Reset Protection) protection will come into effect. The system will require you to enter a password from a Google account that was synced to the phone before the reset.
This is done so that the thief who stole the phone can't just dump it and use it as his own, and if you forget the password from your Google account, retrieving access becomes a huge challenge, requiring you to go to the service center with your purchase checks.
Also worth mentioning is the Mi Account password, which is that if the phone was tied to a Mi Account, it will require you to reset it, and without that password, you can't activate the device, which is another layer of protection that makes stealing Xiaomi devices pointless.
π‘
Forgotten password from the screen is solved by reset, but the forgotten password from the Google or Mi Account after reset turns the phone into a βbrickβ without purchase documents.
In conclusion, regularly backing up important data to the cloud or computer is the only guarantee that a technical problem will not become a disaster: Set up biometric unlocking (fingerprint, face) as an addition to the password to minimize future risks.