The pattern lock on Xiaomi smartphones is a convenient way to protect it until you forget it. But what if after a reboot or a long break in use the phone requires a pattern to enter and the memory fails? The situation becomes more complicated if the device stores important data, such as photos, correspondence or work documents. In this article, we will discuss all the current ways to unlock for Redmi, POCO, Mi and Black Shark phones β from official methods through Mi Account to technical solutions using Fastboot and Recovery.
It's important to understand that some methods will lead to a complete hard reset, while others will save data - but only if you have set up a backup or sync with Mi Cloud beforehand. We will also show you how to minimize the risk of information loss and avoid re-blocking in the future. If your phone is locked right now, start with the simplest way and move to the difficult only if you fail.
1 Unlocking through Mi Account (official method)
The most secure and recommended method for Xiaomi is to use a tied Mi Account, which works on most modern devices (starting with MIUI 9) if:
- π± The phone is connected to the Internet (via Wi-Fi or mobile network).
- π You remember the username and password from Mi Account that was tied to the device.
- π Find Device has been activated in the settings.
To unlock the phone:
- On the lock screen, tap the button Forgot the password? (or Forgot pattern? on English firmware).
- Select the option to Sign in via Mi Account.
- Enter the email or phone number associated with the account, then the password.
- Confirm unlocking via SMS or email (if two-factor authentication is enabled).
β οΈ Note: If you have previously changed your Mi Account password but havenβt updated it on your phone, unlocking may not work, in which case you can try to restore your account through account.xiaomi.com.
This method doesn't cause data loss, but it requires a stable Internet connection, so if your phone isn't connected to the network, go to the next one.
2. Reset the pattern lock via Recovery Mode (without loss of data)
If the Mi Account is not tied or the phone is not connected to the Internet, you can try resetting the graphical password through Recovery Mode. This method does not work on all models, but is suitable for devices with an unlocked bootloader or custom recovery (for example, TWRP).
Instructions for standard Mi Recovery:
- Turn off the phone with a long press of the power button.
- Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
- From the Recovery menu, select the language (if available), then go to Wipe & Reset.
- Slip on Wipe Lock Settings (or similar item).
- Confirm the action and restart the phone.
If your Recovery does not have Wipe Lock Settings, it is not supported, and then you only have to reset completely (see next section).
What if Recovery Mode asks for a password?
3. Complete reset via Recovery (Hard Reset)
If previous methods didnβt work, youβll have to resort to a hard reset, which will delete all data on your phone, including apps, photos and settings, which is suitable for all Xiaomi models, but requires caution.
Step-by-step:
βοΈ Preparation for Hard Reset
- Turn off the phone.
- Press Volume Up + Power before the Fastboot menu (the rabbit logo in the hat) appears.
- With volume buttons, select Recovery Mode and confirm with the power button.
- From the Recovery menu, select Wipe Data β Wipe All Data.
- Confirm the action (usually you need to enter Yes or press the power button for a long time).
- After reset, select Reboot β Reboot to System.
β οΈ Attention: On phones with MIUI 12+ After the reset, you may need to enter data from the Mi Account that was previously linked. If you do not remember the password, it will be impossible to unlock the device without contacting the service center!
After the reboot, the phone will be like new β you will need to reconfigure it, including the linking of your Google and Mi Account. If you synced data with Mi Cloud, some of the information (contacts, notes, photos) can be restored.
4. Unlock via Fastboot (for advanced users)
Fastboot is a good way to do this if you have access to a computer and you're ready to work with the command line, it allows you to reset the pattern lock without completely clearing the data, but it requires an unlocked bootloader.
What you need:
- π₯οΈ Computer with drivers installed ADB/Fastboot (You can download from Xiaomi or Mi Unlock Tool).
- π USB-cable (preferably original).
- π± Phone with a charge of at least 30%.
Instructions:
- Turn off the phone and put it in Fastboot mode (clamp Volume down + Power).
- Connect the phone to the computer.
- Open the command prompt (CMD) and type: fastboot devices Make sure the device is identified (serial number should appear).
- Enter the command to reset the key: fastboot erase frp or (for new models): fastboot erase locksettings
- Reboot the phone: fastboot reboot
If the bootloader is locked, the command will not work β you will need to unlock it through the Mi Unlock Tool (the process takes up to 720 hours of waiting on new devices).
π‘
Before using Fastboot, check the phone model with the fastboot getvar product command. Some devices (such as the POCO F3) require special commands to reset the lock.
5. Use of service codes and hidden menus
Some Xiaomi models (especially older ones like the Redmi 4X or Mi A1) can reset the pattern lock through service codes or engineering menus, a method rarely works on new devices, but itβs worth trying if other methods arenβt available.
Popular combinations:
| Model phone | Service code | Action. |
|---|---|---|
| Redmi Note 3/4 | ##7780## | Resetting settings (data is stored) |
| Mi 5/6 | ##3646633## | Engineering menu (possible lock reset) |
| POCO X3 | ##4636## | Test menu (sometimes there is a reset option) |
To use the code:
- On the lock screen, type the code as if you were calling (in the number input field).
- If the menu is open, look for the Reset or Lock Screen section.
- Confirm the reset of the pattern lock.
β οΈ Warning: Service codes can permanently damage firmware if entered incorrectly. MIUI 13+ β These menus are usually blocked.
6. Contact the Xiaomi Service Center
If none of these methods work, the last option is to go to the official service center.
- π Phones with a locked bootloader and a tied Mi Account.
- π± Devices that store critical data (without backup).
- π οΈ Models with hardware problems (for example, the screen is not working).
What will be required to unlock:
- π Check or warranty card (proof of purchase).
- π Passport (for proof of identity).
- π± Phone box (if saved).
The cost of the service varies from 500 to 2000 rubles depending on the model and region. In some cases, the service can offer free unlocking if the phone is guaranteed. However, be prepared that the data will still be lost - service centers rarely save information during a hardware reset.
π‘
The official service is the only legal way to unlock if the phone is tied to Mi Account and you do not remember the data from the account.
How to avoid blocking in the future
To avoid the problem of a forgotten pattern lock, follow these tips:
- π Use the backup. PIN-code or password together with pattern lock (configured in Settings) β Screen locking).
- βοΈ Enable sync with Mi Cloud for automatic data backup.
- π Write down the graphical pattern in a safe place (for example, in the Bitwarden or Keeper password manager).
- π Regularly update the firmware in new versions MIUI Added access restoration functions.
Alternative ways to block the following should also be considered:
- π Fingerprint or facial recognition (configured in Settings) β Passwords and security).
- π Smart Lock β Automatic unlocking in trusted places (home, work).
If you often forget passwords, install an access control app, such as AppLock, which allows you to restore access via email.