The situation when the owner of a Xiaomi smartphone forgets the installed pattern lock or digital pin code is one of the most stressful for the user. The lock screen turns into an insurmountable barrier that hides all important data, contacts and photos. Modern versions of the MIUI shell and the Android operating system provide a high level of protection, making it almost impossible to easily guess the combination.
There are several proven methods to restore access to the device, and the specific method depends on the version of the operating system, whether you have a Mi Account or a Google account, and whether USB debugging is enabled. In this article, we will look at all the current solutions, from standard recovery tools to more complex technical procedures.
Before taking action, you need to be clear about the risks, some methods require the complete deletion of user data, while others allow you to save information, and it is important to act consistently and carefully read each step of the instructions, so as not to aggravate the situation by software locking the device.
Using a Mi Account to Reset a Password
The most civilized and safe way to unlock a Xiaomi phone without losing personal files is to use a feature built directly into the MIUI shells. If you have previously logged in through your Mi Account and enabled the Find Device feature, then you have a great chance to regain access to the gadget. This method only works if you have an active Internet connection (Wi-Fi or mobile network).
First, you have to type in the wrong pattern lock or password several times in a row. Usually, after the fifth attempt, the system will offer the option "Forgot the password" or "Forgot the pattern lock." When you click on this button, you will see the authorization window. Here you need to enter the username and password from your Mi Account. After successful verification of the data, the system will suggest reset the current method of locking the screen.
β οΈ Note: If Find Device was disabled in the security settings before locking, this method will not work and you will have to look for alternative ways.
It is important to note that once unlocked through a Mi Account, it is strongly recommended that you set a new, more secure password immediately and write it in a secure location, and it is also worth checking your cloud sync settings to make sure your data is saved regularly.
Remote Unlocking through Google
Owners of devices with a βcleanβ Android or older versions of MIUI can use Google Find My Device, a tool originally designed to find lost phones, but also allows you to control access to them.
The unlocking process is done from any other device that has Internet access. You need to go to the official Google service website, enter your account information. Once the system determines the location of your Xiaomi smartphone, several options will appear in the control menu: "Call", "Block" and "Clear".
Choosing the Lock option allows you to set a new temporary password that will replace the forgotten pattern lock, and by entering a new code on the site, you can use it to log in to your phone, but it is worth considering that on new versions of Android, this feature may be limited by security policies.
- πΉ Make sure your phone is connected to the network (Wi-Fi or mobile internet).
- πΉ Know the login and password from the Google account linked to the phone.
- πΉ Have another device (computer or tablet) on hand to log in to the service.
If the phone is offline, the unlock command will queue up and run automatically as soon as the device is online.This can take some time, so be patient and don't try to reboot the gadget again.
Resetting settings via Recovery Mode
If the software methods through the accounts did not help, the radical but effective way is to completely reset the device to the factory settings (Hard Reset), which is guaranteed to remove the screen lock, but leads to the complete removal of all user data: photos, contacts, messages and installed applications.
To enter recovery mode, you need to turn off your smartphone completely, then you need to pinch a certain combination of buttons. On most Xiaomi models, this is the simultaneous pressing of the power button and the volume buttons, you need to hold them until the Mi logo or the Recovery menu appears.
Procedure:
1. Turn off the phone.
2. Clutch Volume Up + Nutrition.
3. Wait for the menu to come out.
4. Select "Wipe Data" -> "Wipe All Data".
5. Confirm the action of the power button.In the Recovery menu, the volume buttons (moving up/down) and the power button (confirming selection) can be controlled. The interface language can be English or Chinese, so it is important to navigate by the location of the items. After reset, the phone will restart, and you will get a clean device that requires initial configuration.
β οΈ Note: After resetting, the system may request confirmation of ownership of a Google or Mi Account that was previously synced with the phone (protection) FRP).
βοΈ Preparation for Hard Reset
Use of debugging by USB and ADB
For advanced users who have pre-installed USB Debugging in the Developer Menu, there is a way to reset your password without losing data, a method that requires a computer, an ADB driver installed, and basic command-line skills.
The method is to delete the system file that stores the hash of the pattern lock or password.The file is usually located on the path /data/system/gesture.key or /data/system/password.key. Deleting this file makes the system think that the lock is not installed.
To implement this plan, connect your phone to your PC through USB-Open the command line on your computer and enter the command to enter the shell. ADB. Next, you need to get superuser rights (root), if any, or use special utilities that can work with the Android file system through the Internet. ADB.
adb shell
cd /data/system
rm gesture.key
rm password.key
rebootIt is worth noting that on modern versions of Android with data encryption, this method rarely works, since without unlocking the screen, access to the /data file system is closed, but on older models or custom firmware, this method remains very relevant.