The forgotten pattern lock on Xiaomi's smartphone is a situation that thousands of users face every day. PIN-If you have a code or a fingerprint, a lock pattern is not always easy to recover from memory, especially if you rarely change it. Fortunately, the manufacturer has provided several formal and informal unlock methods, but each has its own nuances: from data loss to the risk of βbrickingβ the device.
In this article, weβll look at all the current unlocking methods (including those that run on MIUI 14/15 and newer models like Xiaomi 14 or Redmi Note 13), assess their safety and complexity, and give checklists for preparation. Importantly, some methods require pre-setting (such as binding Mi Account), so if you read this in advance, save the article in case of emergency.
1 Unlocking through Mi Account (official method)
The most reliable and recommended method Xiaomi uses is to use a Mi Account if it was tied to the phone before locking, which does not require a data reset and works even on a locked screen.
To unlock:
- π Enter the wrong pattern lock 5 times in a row until the message βForgot your password?β or βUnlock via Mi Accountβ appears".
- π§ Enter. email/phone and password from Mi Account, which was linked to the device. If you don't remember the data, restore it through the official website.
- π± Confirm the unlock through SMS or email (depending on your account security settings).
- π Create a new pattern lock or PIN-code.
β οΈ Note: If you bought your phone with your hands and the previous owner didnβt untie his Mi Account, this method wonβt work, in which case you will need a full reset (see section 4), but on some models (Redmi Note 10 Pro, POCO X3 After the reset, there may be a link to another account β this is called a Mi Cloud lock, and it can only be removed through an appeal in support of Xiaomi with proof of purchase.
π‘
If you have two-factor authentication enabled in Mi Account, save your backup codes in a secure location (such as a password manager) beforehand, and without them, it will take up to 72 hours to restore your account.
2. Unlock through ADB (for advanced users)
The Android Debug Bridge (ADB) method is suitable if the phone is debugging over USB and has access to a computer, and it is one of the few ways to get around the lock without losing data, but it requires technical skills.
Step-by-step:
- Download and install ADB Tools on PC.
- Connect your phone to your computer through USB-cable (preferably original).
- Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with adb.exe.
- Enter the commands in order: adb devices (you should have the name of your device) adb shell su rm /data/system/gesture.key
- Restart the phone β the pattern lock will be reset.
β οΈ Note: On new models (Xiaomi) 13/14, Redmi Note 12) version MIUI 14+ This method may not work because of the increased protection, and if you didn't have root rights, the su command will return the error, so move on to other ways.
What if the ADB canβt see the device?
3. Unlock via Fastboot (for models with unlocked bootloader)
Fastboot is a good way to do this if your Xiaomi bootloader is unlocked. This is rare, as unlocking the bootloader officially requires waiting 7-15 days and binding to the Mi Account. However, if you have previously unlocked it (for example, to install custom firmware), you can reset the pattern lock without losing data.
Instructions:
- π Turn off the phone and press the power button. + Volume down to enter Fastboot.
- π» Connect the device to your PC and open the terminal in the folder from fastboot.exe.
- Enter the command: fastboot erase gesture or for new models: fastboot erase locksetting
- π Reboot your phone with the fastboot reboot command.
β οΈ Attention: On some firmware (MIUI EU, Xiaomi.eu: This command can cause you to lose all data in the section /data. Before execution, check backup copies!
4 Hard Reset - a last resort
If other methods failed or you donβt remember the Mi Account data, youβll have a full reset, which will delete all the data from your phone (photos, contacts, messages), but will return access to the device. On newer models (Xiaomi 12/13/14, Redmi Note 11/12), the reset may not remove the Mi Account lock if the phone was linked to an account.
How to make a Hard Reset:
- Turn off the phone.
- Press the Power button + Volume up for 10-15 seconds until the Mi Recovery logo appears.
- Use volume buttons to navigate and select Wipe Data β Wipe All Data.
- Confirm the action and wait for the completion (5-10 minutes).
- Reboot the phone (Reboot) β Reboot to System).
π Important: After the reset, the phone will require you to enter the Mi Account data, which was tied before the lock. If you do not remember them or the phone was bought with your hands, contact Xiaomi with a check to buy.
βοΈ Preparation for Hard Reset
5 Unlocking through Xiaomi Service Centers
If you don't succeed on your own, contact the official Xiaomi service center, which is the most reliable, but also the longest way.
- π Check or warranty card (proof of purchase).
- π Passport (for proof of identity).
- π± The phone itself (preferably with a charge) >30%).
The cost of the service varies from 500 to 2000 rubles depending on the model and region. In some cases (for example, when blocking Mi Cloud from the previous owner), an examination may be required, which will take up to 5 working days.
π How to find an official service:
- Go to the Xiaomi Service Locator website.
- Choose a country and a city.
- Check the reviews about the center (in Google Maps or Yandex.Maps).
π‘
Official service centers never ask for advance payment or Mi Account data over the phone. If you are offered to "unlock remotely" for a fee, these are scammers!
Alternative methods (with risks)
On the Internet you can find dozens of βmagicβ ways to unlock β from the use of the Internet. EDL-We don't recommend them for a few reasons, but we don't recommend them for a few reasons:
| Method | Risks. | Chance of success |
|---|---|---|
| Paid programs (Miracle, UFi) | Viruses, data theft, blocking IMEI | 30β50% |
| EDL-mode (emergency firmware) | Full Brick, Loss of IMEI | 60β70% |
| Bypassing MIUI bugs | It only works on older versions. | 10β20% |
| Flashing through the SP Flash Tool | Data loss, firmware errors | 40β60% |
β οΈ Note: Using informal methods may result in loss of warranty or blocking IMEI (If you're going to stop catching the network, at least you'll be able to:
- π Charge your phone to 100%.
- πΎ Create a backup copy IMEI (You can use the engineering menu: #4636##).
- π Check the reviews of the program on the forums (4PDA, XDA-Developers).