The forgotten graphical password on Xiaomi's smartphone is a situation that thousands of users face every day. PIN-When you use a code or fingerprint, the pattern seems easy to remember until you have to type it after a reboot or prolonged downtime. Fortunately, the manufacturer has provided several official and unofficial ways to return access to the device โ from restore through the Mi Account to a complete reset via Fastboot.
Itโs important to understand that not all methods will save your data. For example, unlocking through Mi Cloud or Find Device can work without loss, while Hard Reset will remove all information from internal memory. In this article, we will discuss all the current ways for models in 2020-2026 (including Redmi Note 12, POCO X5, Mi 13 and others), indicate their pros and cons, and also warn against common errors that can turn a phone into a brick.
1 Unlocking through Mi Account (official method)
The safest method is if you previously linked your device to your Xiaomi account, which works on all smartphones with MIUI 12 and later, including the latest firmware in 2026, and the main condition is that the phone must be connected to the Internet (via Wi-Fi or mobile network).
Algorithm of action:
- ๐ On the lock screen, enter the wrong pattern lock 5 times in a row.
- ๐ง Select the option โForgot the password?ยป โ ยซSign in via Mi Accountยป.
- ๐ Enter the username and password from your Xiaomi account (the same one used for syncing).
- ๐ฑ After successful authorization, the system will prompt you to create a new pattern lock or PIN-code.
If you do not remember your account data, restore it through the official account.xiaomi.com website.Please note: when you restore your password via email or SMS, you may need to confirm it on another device.
โ ๏ธ Note: If the phone was bought with hands and the previous owner did not untie his Mi Account, this method will not work.
2. Use of the โFind Deviceโ function (remote unlock)
Find Device (similar to Googleโs Find Phone) not only allows you to track your smartphoneโs location, but also unlock it remotely.
- ๐ The device is connected to the Internet (Wi-Fi/mobile).
- ๐ In the settings enabled synchronization with Mi Cloud.
- ๐ You remember the data from the Xiaomi account.
Instructions:
- Go to i.mi.com from a computer or other phone.
- Sign in with your Mi Account.
- In the menu, select the locked device (if there are several).
- Click "Unblock" and confirm the action.
After that, the graphical password will be reset and the phone will receive a notification of successful unlocking, which works even if the phone is turned off, but the next time you connect to the Internet, the command will be executed automatically.
๐ก
If Find Device is disabled, turn it on in advance in the settings: Settings โ Mi Account โ Mi Cloud โ Find the device. This will help you avoid unlocking problems in the future.
3. Recovery Mode reset (without data loss on some models)
The method is suitable for devices with unlocked bootloader or models where Xiaomi allows you to reset the graphics password without full cleaning. For example, on Redmi 9/9A or POCO M3 you can do a soft reset, but on flagships (Mi 13 Ultra, Xiaomi 14) this will lead to the deletion of all data.
Step-by-step:
- Turn off the phone with a long press on the power button.
- Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
- From the Recovery menu, select the language (usually English or Chinese).
- Go to Wipe & Reset โ Wipe All Data (on some firmwares, the item may be called Erase User Data).
- Confirm the action and wait for the reboot.
If you reset your phone and you want to enter your Mi Account, use a linked account, and you can't unlock your device without it, because it's anti-theft.
โ ๏ธ Note: On devices with a locked bootloader, a reset via Recovery may result in activation FRP-Factory Reset Protection: This will require the username/password from the last Google account you use.
Turn off the phone from charging.
Make sure the battery is at least 30% charged.
Prepare your Mi Account information (if required)
Have your hand on it. SIM-Confirmation card (on some models)-->
4. Unlock via Fastboot (for advanced users)
The way for those who are willing to work with ADB and Fastboot is if:
- ๐ Bootloader unlocked on the phone (checked by the fastboot oem device-info team).
- ๐ป There is a computer with installed Xiaomi drivers and package ADB Tools.
- ๐ There is a backup of the data (the method can erase it).
Instructions:
- Download and install Googleโs Platform Tools.
- Turn off the phone and put it into Fastboot mode, clamping Volume down + Power.
- Connect the device to the PC via USB.
- Open the command line in the folder with ADB and type: fastboot oem unlock If the bootloader is locked, first execute: fastboot oem unlock-go
- Once you unlock the bootloader, type in: fastboot erase userdata fastboot erase frp fastboot reboot
This method will delete all data, but will bypass the graphical password and Mi Account. New models (Xiaomi 13T, Redmi K60) may require additional confirmation through the official Xiaomi website to unlock Bootloader.
What if the "fastboot oem unlock" command doesn't work?
5. Contact the Xiaomi Service Center
If all of the above methods do not work, you need to contact an authorized service center.
- ๐ฑ Phones with Bootloader locked and Mi Account unknown.
- ๐ Devices purchased from hands without the ability to confirm ownership.
- ๐ Models where resetting leads to FRP-locking (for example, Xiaomi 12 Pro with firmware for the global market).
What will be required to unlock:
| Document/conditionality | What do you need? | Note |
|---|---|---|
| Check or sales contract | Confirmation of possession | If the phone is not in your name, |
| Passport | Identity card | Original required |
| Phone box. | Model and IMEI Confirmation | It is desirable, but not always necessary. |
| Data from Mi Account | Unblocking a tied account | If your account is not yours, recovery is not possible. |
The cost of the service varies from 500 to 3000 rubles depending on the model and the complexity of the case. Some services offer a โbypassโ Mi Account for a fee, but this violates Xiaomiโs policy and can lead to locking the device.
6. How to avoid data loss when unlocking
If you don't want to lose photos, contacts and messages, set up a backup beforehand. Here's what you can do before your phone locks:
- โ๏ธ Enable automatic synchronization with Mi Cloud (Settings) โ Mi Account โ Mi Cloud โ Synchronization).
- ๐ฒ Use Google Photos to back up your media files.
- ๐พ Regularly create local backups through Settings โ Additionally. โ Backup and reset.
- ๐ Link your Google account to help restore contacts and apps after resetting.
If your phone is already locked, but you have it on USB Debugging (debugging by USB), You can try to extract data through ADB:
- Connect the phone to the PC.
- Open the command line and type in: adb shell rm /data/system/gesture.key or for newer versions of Android: adb shell rm /data/system/locksettings.db
- Reset the device.
โ ๏ธ Note: This method only works if the debugging is done USB It was on before the lockdown. MIUI 14 and newer it may not work due to tightened security measures.
๐ก
The most reliable way to save data is to use regular backups in Mi Cloud, and even if you forget your password, files will remain accessible through the web version of the cloud.