Did you forget your Xiaomi password or did your phone get locked after a failed entry attempt? The situation is familiar to many β according to statistics, 28% of users have at least once faced a smartphone lock. Fortunately, you can unlock Xiaomi (including the Redmi Note 12, POCO X5, Mi 11 and others) in several ways β from standard MIUI functions to engineering modes.
In this article, we will discuss 5 working ways to unlock, including bypassing the pattern lock, resetting via Fastboot, unlocking the Mi Account and even methods for devices with a damaged screen. All instructions are relevant for MIUI 12-14 and tested on models from 2020-2026. Importantly, some methods require preliminary preparation (for example, enabled debugging over USB), so read carefully!
1 Unblocking through Mi Account (official method)
If your Xiaomi is tied to a Mi Account, itβs the easiest and safest way to unlock, and it works even after a hard reset if the device has been synced to Xiaomiβs servers.
- π Enter any password/key 5 times in a row until the message βForgot password?β or βUnlock via Mi Accountβ appears".
- π§ Click on the link and enter email/phone linked to your account, and it'll have a confirmation code.
- π Enter the code and follow the instructions on the screen. The phone unlocks without losing data.
- β οΈ If the device is not connected to the Internet, use SIM-mobile traffic card or connect to Wi-Fi via notification panel (if available).
Limitations of the method:
- β It does not work if your Mi Account is not linked to your phone.
- β On some models (e.g. Redmi) 9A) Confirmation is required through SMS, Even if the email is correct.
- β After 3 failed attempts to enter the code, the system can block the unlock for 24 hours.
π‘
If you don't remember an email from Mi Account, check the emails with the subject line "Xiaomi Account Registration" or "Mi Account Verification." Often the username is listed there.
2. Reset the pattern lock via a call (for MIUI 12 and older)
This works on most Xiaomi smartphones with MIUI 12-14 firmware and does not require a computer, and the method is to exploit a vulnerability in the emergency call interface. Importantly, after the security update in 2023, the method stopped working on the POCO F5 and Redmi Note 12 Pro+.
- On the lock screen, click "Emergency Call".
- Enter the combination ##4636## (test menu). If it doesn't work, try #7780###.
- In the menu that opens, select "Settings" β "Recovery and Reset".
- Reset the pattern lock via "Delete password" (the data will not be deleted).
If the combinations donβt work, try an alternative path:
- In an emergency call, dial any number (e.g. 112).
- Click on the Contacts icon (if available).
- Add a new contact and enter 10-15 spaces in the name field, then save.
- Return to the contacts screen, copy the created contact and paste it into the search bar β this can cause the interface to crash and open access to settings.
3. Unlock via Fastboot (for advanced users)
If the previous methods didn't work, you'll have to use Fastboot mode, which requires a computer, a USB cable, and ADB/Fastboot drivers installed.
What you need:
- π₯οΈ Computer with Windows/Linux/macOS.
- π Cable USB (preferably original).
- π¦ Archives from Platform Tools (from Google).
- π§ Drivers for Xiaomi (download from the official website).
Step-by-step:
- Turn off the phone. Press the Power button + Volume down to enter the Fastboot.
- Connect your phone to your computer. Open the command line in the Platform Tools folder.
- Check the connection command: fastboot devices should appear serial number of the device.
- To unlock the bootloader (if not unlocked) enter: fastboot oem unlock Attention: this will erase all data!
- If the bootloader is already unlocked, run the stock firmware command: fastboot flash all [name file firmware.zip]
What if the fastboot canβt see the device?
Warnings:
β οΈ Warning: Unlocking the bootloader via fastboot oem unlock results in a complete reset and deletion of all data, including photos and apps. If the phone has backups of Mi Cloud enabled, you can restore the data after unlocking.
β οΈ Note: Some models (e.g. Xiaomi) 13T) After unlocking the bootloader, Anti-Rollback protection can work, which will lock the phone if you flash the old version. MIUI. Always use the latest official firmware.
4. Bypassing the lock via ADB (if debugging is enabled)
If your Xiaomi has USB debugging enabled before locking, you can unlock your phone without losing data. This works on MIUI 13-14 and requires a computer.
Preparation:
βοΈ What to check before using ADB
Instructions:
- Connect the phone to the computer.
- Open the command line and check the connection: Adb devices should appear with the status of authorized.
- Delete the file with the password / key: adb shell rm /data/system/gesture.key or PIN-code: adb shell rm /data/system/password.key
- Reboot your phone: adb reboot
After the reboot, the pattern lock or PIN will reset, but all the data will remain in place. If the command does not work, try an alternative method:
adb shell
su
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rebootπ‘
The ADB method is the only way to unlock Xiaomi without losing data, but it only works if USB debugging was enabled before locking.
5 Unlocking through Xiaomi Service Center
If all the previous methods did not work, you just have to contact the official Xiaomi service center, which is the most reliable, but also the longest way.
- π Bring your purchase document (check, warranty card) and passport, without which you may refuse to unlock.
- π° The cost of the service varies from 500 to 2000 rubles, depending on the model and the reason for the lock.
- β³ The unlock period is from 1 to 5 working days (some cities have express service for 2-3 hours).
- π The service may offer a complete reset or flashing, which will lead to data loss.
How to find the official service:
- Go to the Xiaomi Service website.
- Choose a country and a city.
- Check the reviews about the service center (some "official" partners work in bad faith).
The alternative is informal services that offer unlocking via engineering firmware or EEPROM readers, but the risks are high:
- β οΈ Possible installation of pirated software or viruses.
- β οΈ Phone Warranty Burns After Unofficial Intervention.
- β οΈ On new models (such as Xiaomi 14), such methods can lead to hardware locking. IMEI.
Comparison of Xiaomi Unlocking Methods
| Method | PC required | Data retained | Difficulty | Works on |
|---|---|---|---|---|
| Through the Mi Account. | β No. | β Yes. | β | All models with MIUI |
| Emergency call. | β No. | β Yes. | ββ | MIUI 12β13 (not running on POCO F5, Redmi Note 12 Pro+) |
| Fastboot | β Yes. | β No (full reset) | ββββ | All models, but require unlocking the bootloader |
| ADB | β Yes. | β Yes. | βββ | Only if USB debugging is enabled |
| Service centre | β No. | β Depends on the method. | β | All models. |
Frequent Mistakes and How to Avoid Them
When you unlock Xiaomi, users often face typical problems, and here are the most common ways to solve them:
- π "Fastboot doesn't see the device": Check the cable (use the original from Xiaomi). Install the drivers manually through Device Manager. Try another one USB-port USB 2.0).
- π "Mi Account does not accept password": Check the keyboard layout (password can be entered in English). reset your account password via Xiaomi website. If your account is blocked, contact support with a photo of your check on your phone.
- π± "After Fastboot reset, the phone won't turn on": Check if you downloaded the correct firmware (should match the model and region). Try flashing only the boot partition instead of the full firmware. If the screen is black, wait 10-15 minutes - sometimes the first download takes a long time.
Tips for the future: To avoid unlocking issues, set the following settings in advance on Xiaomi:
- π Enable Smart Lock (Settings) β Screen locking β Smart Lock and add reliable devices (such as smartwatches or home Wi-Fi).
- βοΈ Activate backup in Mi Cloud (photos, contacts, SMS).
- π§ Put the debugging on. USB (Even if you donβt plan to use it).
- π Write down your Mi Account password in a secure location (for example, in a password manager).