Forgot the screen unlock combination on Xiaomi or just want to go to the PIN-A graphical password is a convenient security feature, but sometimes it becomes a problem. In this article, we will discuss all the current ways to disable it, from standard settings to emergency methods for loss of access, POCO and Mi on base MIUI 14/15 (including Xiaomi 13/14, Redmi Note 12, POCO F5).
It's important to understand that the procedure is different depending on whether you remember the current key or not. If the phone is locked completely, you will need to manipulate your Mi Account account or even reset to factory settings. We detailed each scenario with the nuances of firmware and Android versions.
1. Standard disabling of graphical password (if you know the current key)
The easiest way is to deactivate the lock through the settings menu, which will take no more than a minute and will not affect the data in the phone, suitable for all Xiaomi devices with the current version of MIUI.
Instructions:
- π Open the Settings. β Passwords and security.
- π± Select the Lock screen option (may be called the Lock screen in older versions).
- π Enter the current graphical password to confirm.
- β Click Delete Graphic Password or No in the Lock Type Selection Section.
- β Confirm the action β the system will suggest to install an alternative method (PIN, print or leave the screen unprotected.
If after deleting the key, the system requires you to specify another way to unlock, select Skip (if available) or set a temporary PIN, which can then be removed in a similar way.
π‘
Some models (POCO X3, Redmi 9) may still request a PIN when you turn on the phone after disabling the graphical password. This is standard MIUI behavior - delete the PIN in the same way.
2. Disconnect via Mi Account (if you forgot the key but the account is tied)
If you don't remember the graphical combination, but the phone is tied to your Mi Account, you can reset the lock via Find Device, which only works when you have an active Internet connection on your phone (Wi-Fi or mobile data).
Step-by-step:
- From your computer or other phone, go to i.mi.com and log in with the same account as you logged in on your locked device.
- In the menu, select Find the device β [Your Xiaomi model].
- Click Unlock Device (the function is only available if the phone is connected to the network).
- Confirm the action via SMS or email (depending on the account security settings).
- Wait for a notification of successful unlocking (can take up to 5 minutes).
After that, the graphical password will be reset, but all data on the phone will remain intact.The next time you turn on, the system may require you to enter Mi Account details to confirm ownership.
3. Reset graphical password via Fastboot (for advanced users)
If previous methods didnβt work and the data on the phone isnβt critical, you can use Fastboot mode. This method requires a computer with ADB/Fastboot drivers installed and an unlocked bootloader (on some models), Suitable for Xiaomi based on Qualcomm Snapdragon (most modern devices).
What you need:
- π₯οΈ Computer with Windows/Linux/macOS.
- π Cable USB (preferably original......>
- π οΈ Utilities. ADB Fastboot (you can download from the official Android website).
- π Unlocked bootloader (if not previously unlocked, you will need to link to your Mi Account).
Instructions:
1. Turn off the phone.
2. Press the Power Button + Volume down before the Fastboot logo appears.
3. Connect the phone to the computer.
4. Open the command prompt (Windows) or terminal (Linux/macOS) in the folder with ADB.
5. Enter a command to check the connection:
fastboot devices
(Serial number of the device must be displayed).
6. perform the lock reset:
fastboot erase frp
fastboot erase userdata
fastboot rebootβ οΈ Warning: This procedure removes all data from your phone, including photos, contacts and apps, only use it if other methods have failed and you have a backup.
What if Fastboot doesnβt see the device?
4. Unlock via Recovery Mode (without data loss on some models)
On some Xiaomi devices (e.g. Redmi Note 10, POCO X3 Pro) you can reset your graphical password through Recovery Mode without completely resetting.This method doesnβt work on all firmware, but itβs worth trying if other methods arenβt available.
Algorithm of action:
- Turn off the phone.
- Press the Power button + Volume up until the Recovery menu appears.
- Choose a language (if available).
- Go to Wipe & Reset β Wipe Lock Settings (the name may vary).
- Confirm the action β the phone will restart without a graphical password.
If there is no Wipe Lock Settings, then your version of MIUI does not support this method, in which case only a full reset (Wipe Data) remains, but it will delete all data.
βοΈ Preparing for resetting through Recovery
5.Official reset via Xiaomi Service Center
If you fail to make any independent attempts and the data on your phone is critical, contact your Xiaomi authorized service center.
- π Document confirming the purchase (check, warranty card).
- π Passport of the holder (to confirm the identity).
- π± The device itself with a charge of at least 30%.
Service centers can unlock your phone without losing data if:
- π The device is linked to your Mi Account and you remember your username/password.
- π± The phone is not in the status of "lost / stolen" (checked by the IMEI).
- π The warranty period is still in place (accelerates the process).
The cost of the service varies from 500 to 2000 rubles depending on the model and complexity, on average, the procedure takes from 1 to 3 working days.
π‘
The official service is the only way to unlock Xiaomi without losing data, if you have forgotten your password and no Mi Account tied.
6. Alternative methods (for specific cases)
In rare cases, the solutions that are not standard are helpful. Let's look at two scenarios:
| Script | Conditions | Action | Risks. |
|---|---|---|---|
| Unlocking through ADB | USB-The debugging was enabled before the lockdown | Connect your phone to your PC and execute the command:adb shell rm /data/system/gesture.key | It may not work on the new MIUI versions. |
| Use of Test Point | It takes a phone breakup. | Shorten contacts on the FRP reset board | High risk of damage to the device |
| Firmware through EDL Mode | You need to use the Mi Flash Tool. | Install stock firmware in emergency mode | Could block IMEI |
The ADB method is suitable if you have previously enabled USB debugging in the developer settings.
- Connect the phone to the computer.
- Open the command line and type: Adb devices (the device should appear in the list).
- Execute the file deletion command with a graphical password: adb shell su rm /data/system/gesture.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboot
β οΈ Attention: MIUI 14/15 This method often doesn't work because of the changed password structure, and don't try it if you're not sure about your skills, you're at risk of getting a brick".
Comparison of Unlocking Methods
| Method | Password required | Loss of data | Difficulty | Time. |
|---|---|---|---|---|
| Through settings | β Yes. | β No. | β | 1 minute |
| Mi Account (i.mi.com) | β No. | β No. | ββ | 5-10 minutes |
| Fastboot | β No. | β Yes. | βββ | 15-30 minute |
| Recovery Mode | β No. | β οΈ Partially. | ββ | 10 minutes. |
| Service centre | β No. | β No. | ββββ | 1-3 days |
Frequent Mistakes and How to Avoid Them
When trying to disable a graphical password, users often encounter typical problems, and here are the most common ones and ways to solve them:
- π "Wrong password" when entering a pattern lock: Make sure you enter the combination correctly - it is important for Xiaomi not only the combination of points, but also the order of their connection.
- π "No Internet connection when unlocking via Mi Account: Connect your phone to Wi-Fi or insert SIM-active rate card on some models (Redmi) A1, POCO C50) You may need to restart to activate the network.
- π Computer doesn't see phone in Fastboot mode: Check the cable (better use the original), install Xiaomi drivers USB Drivers and try another one USB-port (preferably) USB 2.0).
- π "Device locked after reset": If the phone requires an old password after Wipe Data, the locksettings.db file has not been deleted. Repeat the reset or swipe the phone through the Mi Flash Tool.
If you get an error "This device is locked" in Fastboot, the bootloader is locked.
- Go to en.miui.com/unlock.
- Download the Mi Unlock Tool.
- Link your Mi Account to your device (can take up to 72 hours).
- Unlock the bootloader through the program.