Forgot the screen unlock combination on Xiaomi? This situation is familiar to many users, especially if the device has been lying idle for a long time or used by relatives. PIN-It's a code that's completely blocked when you lose it, and fortunately, there are formal and informal ways to fix it that work on most Redmi models, POCO and Mi (including Redmi Note) 10/11/12, POCO X3/X4/X5, Mi 11/12).
In this article, we will discuss 5 working methods to remove the pattern lock on Xiaomi, from a standard reset via Mi Account to advanced techniques using ADB and Fastboot. Importantly, some methods lead to data loss, so first try to restore access without drastic measures. If the phone is synchronized with the Xiaomi account, the chances of successful unlock without reset are much higher.
1 Unlocking through Mi Account (official method)
The safest method is if the phone has a Xiaomi account attached and sync enabled. Suitable for devices with MIUI 12 and later, where the Find Device function is active by default, the main condition is that the phone must be connected to the Internet (via mobile network or Wi-Fi).
Instructions:
- π Go to account.xiaomi.com and log in with the same account as you do on your phone.
- π In the Devices section, find a locked smartphone (if not, update the page or check the phoneβs connection to the network).
- π Press Unlock the screen and follow the system's prompts. The phone will receive a confirmation notification.
- β Once confirmed, the pattern lock will be reset and the phone unlocked.
Limitations of the method:
- β It does not work if the phone is disabled sync with Mi Account.
- β Requires a stable Internet connection on a smartphone.
- β In some models (for example, POCO F1) Additional confirmation may be required for SMS.
β οΈ Note: If you have previously changed your Mi Account password but havenβt updated it on your phone, unlocking your account may not work.
2. Reset the pattern lock via Recovery Mode (with loss of data)
If Mi Account is lost or the phone is not connected to the Internet, the radical method is hard reset via Recovery Mode, which will remove all data from the device, including photos, contacts and apps, but guaranteed to unlock the screen.
Step-by-step:
- Turn off the phone with a long press on the power button (if it does not respond, press the Power + Volume Up for 10-15 seconds).
- Press the button combination to enter Recovery Mode: For most models: Power + Volume Up. For POCO M3/M4 and some Redmi: Power + Volume Down.
Wipe Data β Wipe All Data
Confirm the reset, wait for the process to complete (5-10 minutes) and restart the phone.
Important: New Xiaomi models (e.g. Redmi Note 12 Pro+) may require data entry from the Mi Account that was previously linked to the phone after a reset, which is a FRP-blocking measure. If you do not remember the username / password, it will be more difficult to unlock the phone - you will need to contact the service center.
Turn off the phone from charging.
Make sure the battery is at least 30% charged.
Prepare a backup of important data (if you have access to a PC)
Remember the data from Mi Account (if the phone is tied)-->
3. Unlock through ADB (for advanced users)
The method is suitable if the phone is enabled debugging by USB (USB Debugging, and you have access to a computer, and it doesn't cause data loss, but it requires command line skills. MIUI 11β14.
What you need:
- π₯οΈ Computer with installed Xiaomi drivers and package ADB Tools.
- π USB-cable (preferably original).
- βοΈ Included debugging by USB in the developer settings (if not enabled in advance, the method will not work).
Instructions:
- Connect your phone to your PC and open the command line (Win + R β cmd).
- Enter the command to check the connection: adb devices If the device is displayed, move on. If not, install the drivers or check the cable.
- Delete the file with the pattern lock: adb shell rm /data/system/gesture.key or for newer versions of MIUI: adb shell rm /data/system/locksettings.db
- Reboot your phone: adb reboot
After rebooting, the pattern lock will be reset, but may need to be entered PIN-password or code from your Google account (if it has been set up).
β οΈ Note: On some models (POCO X5 Pro, Redmi K50) After removing gesture.key, the phone may become obsessed with booting.
π‘
If USB debugging wasnβt enabled in advance, try to activate it blindly: connect your phone to your PC, enter your Google account password (if you request it), and click 7 times on the βBuild Numberβ field in the settings, which sometimes works even on a locked screen.
4.Using Fastboot to bypass lockdown
If the ADB is not working or the USB debugging is disabled, you can try unlocking the phone via Fastboot mode. This method is suitable for devices with an unlocked bootloader. If the bootloader is locked, you will need to pre-unlock it through the Mi Unlock Tool, which takes up to 72 hours.
Instructions:
- π Connect your phone to your PC in Fastboot mode (press Power) + Volume Down with the device switched off).
- π₯οΈ Open the command line and check the connection: fastboot devices
- π§ Enter the command to delete the pattern lock: fastboot erase gesture or for new models: fastboot erase locksettings
- π Reboot your phone: fastboot reboot
If after restarting the phone still requests a pattern lock, try to perform:
fastboot erase frpIt'll be deleted. FRP-blocking (reset protection), but may cause additional problems with your Google account.
| Method | PC required | Loss of data | Difficulty | Works for MIUI. |
|---|---|---|---|---|
| Mi Account | β No. | β No. | β Easy. | 12β14 |
| Recovery Mode | β No. | β Yes. | ββ Middle-Average | All versions. |
| ADB | β Yes. | β No. | βββ Hardly. | 11β14 |
| Fastboot | β Yes. | β No. | ββββ Very difficult. | All versions. |
| Service centre | β No. | β Depends. | ββ Middle-Average | All versions. |
5. Contact the Xiaomi Service Center
If you don't succeed on your own, you have to go to the official service center, which is the most reliable, but also the longest way.
- π§ Unlocking without risk of damaging your phone.
- π Preservation of the guarantee (if it is valid).
- π Data recovery (in some cases).
What will be required:
- π Passport or document confirming the purchase of the phone.
- π Mi Account data if the phone is linked to the account.
- π° Payment for the service (cost varies from 500 to 2000 rubles depending on the model).
Where to find a service center:
- π Through the official website of Xiaomi (section "Service centers").
- π In partner stores (for example, Svyaznoy, M. Video).
- π Phone hotline: 8 800 775-66-88 (call-off).
β οΈ Warning: Avoid "handicraft" workshops promising to unlock your phone in 10 minutes.Unqualified intervention can cause a motherboard to break or lock IMEI.
What if your phone asks for an old Google account after unlocking?
How to avoid data loss in the future
To avoid having a locked phone problem again, follow the simple guidelines:
- π Use the backup. PIN-code or password together with pattern lock (setting in Settings) β Lock screen).
- βοΈ Regularly sync your data with Mi Cloud or Google Drive.
- π± Turn it on. USB Debugging in the developer settings (this will help unlock the phone through the ADB future).
- π Write down your graphical key or password in a secure location (such as in Bitwarden or KeePass password manager).
Itβs also helpful to set up a Smart Lock on Android so that your phone automatically unlocks in secure places (such as at home or work).This feature is available in Settings β Lock and Protection β Smart Lock.
π‘
Even if you successfully unlocked your phone, set up a backup login method (PIN or password) right away and check sync with Mi Account.