How to unlock a Xiaomi smartphone if you forget your password or pattern lock

A forgotten password on a Xiaomi smartphone is a situation that one in ten users encounters, whether it’s a digital code, a pattern lock, or a fingerprint that is no longer recognized, locking the screen can become a real headache, especially if the device stores important data such as photos, correspondence or work documents.

Fortunately, the manufacturer has provided several formal and informal ways to unlock. In this article, we will discuss all the current methods - from restore using Mi Account to using Fastboot mode and tools like ADB. Importantly, not all methods are suitable for models with a locked bootloader (for example, Redmi Note 12 or POCO X5), so read the terms of each option carefully.

If you're not sure about your technical skills, you'd better go to the service center, but most of the instructions in this article can be done by a beginner, so you can follow the step-by-step recommendations and not miss important details.

1 Unlocking with Mi Account (the safest way)

If your Xiaomi has a Mi Account attached, you can unlock your device in 5 minutes without losing data, a method that works on most models, including the Redmi 10/11, POCO F4/F5 and Xiaomi 12/13.

To start, try entering your Mi Account password directly on the lock screen. If Forgot your password? is not active, follow these steps:

  • 🌐 Go to account.xiaomi.com from a computer or other phone.
  • πŸ”‘ Sign in with the same account that is linked to the locked device.
  • πŸ“± In the Devices section, find your smartphone and select the Find the device option.
  • πŸ”“ Click Unlock the screen and confirm the action through SMS email.

After that, the phone unlocks automatically within 1-2 minutes, and if the device does not appear in the list, check whether it is connected to the Internet (via Wi-Fi or mobile network).

⚠️ Note: This method will not work if the Find Device feature is disabled or it is not connected to the network. Also, some models (for example, Redmi Note 9 Pro with custom firmware) may ignore remote unlocking.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi (Series Note, A, K)
POCO (F, X, M)
Xiaomi (11/12/13) series
Black Shark
Other

2.Reset to factory settings via Recovery Mode

If Mi Account is not tied or unlocked through it fails, there is a hard reset, which will remove all data from the device, including photos, apps and settings. Use it only as a last resort!

The instructions are suitable for most Xiaomi models, including the Redmi 9A, POCO X3 Pro and Xiaomi Mi 11 Lite. Before you start, make sure that the battery charge is at least 30%.

Turn off the phone (press the power button for 10 seconds)

Connect the charger (recommended)

Make sure there are no important unsaved data on your phone.

Prepare. SIM-card or flash drive with backup (if any)

-->

  1. Turn off the smartphone with a long press on the power button.
  2. Press the combination of Loudness up + Power and hold for 10-15 seconds until the Mi logo appears.
  3. In the Recovery menu, select Wipe Data (use volume buttons for navigation and power button for confirmation).
  4. Confirm the reset by selecting Wipe All Data.
  5. After the process is complete, select Reboot to reboot.

The phone will turn on in the β€œas after purchase” state, and at the setup stage, you can restore data from the backup of the Mi Cloud (if it was created earlier).

⚠️ Note: Some models (e.g. Xiaomi 13 Pro) may require data entry from the Mi Account that was previously linked after a reset.This is anti-theft protection – if you do not remember the username / password, it will be impossible to unlock the phone without contacting the service.

3. Unlock through ADB (for advanced users)

If the phone is debugging on USB (USB Debugging, you can try unlocking it through ADB (Android Debug Bridge.This method is suitable for models with an unlocked bootloader, such as POCO F1 or Redmi K20 Pro.

Importantly, the way it works is if the debugging was activated before locking, and if you've never connected your phone to your computer in developer mode, it won't work.

  • πŸ–₯️ Install. ADB Fastboot Tools on the computer.
  • πŸ“± Connect your locked phone to your PC via USB-cable.
  • πŸ”§ Open the command line (Win) + R β†’ cmd and enter:
adb shell


su




rm /data/system/gesture.key




rm /data/system/password.key




rm /data/system/locksettings.db




rm /data/system/locksettings.db-wal




rm /data/system/locksettings.db-shm




reboot

After the reboot, the phone must turn on without asking for a password. If a device unauthorized error appears, then debugging over USB has not been confirmed on the phone before.

What if the ADB can’t see the device?
If the adb device command doesn’t show your phone: 1. Install drivers for Xiaomi (download from the official website). 2. Try another one. USB-cable (preferably original). 3. Switch the connection mode on your phone (if you have access to the notification curtain) to File Transfer. 4. Run the command prompt on behalf of the administrator.

4.Using Fastboot to unlock the bootloader

On new Xiaomi models (like the Redmi Note 12 Pro+ or Xiaomi 14), the bootloader is locked by default, meaning that it will need to be unlocked to reset the password via Fastboot. The process takes up to 72 hours and requires a Mi Account tied.

If you are willing to wait, follow the following steps:

  1. Turn off the phone and put it in Fastboot mode (clip Volume Down + Power).
  2. Connect the device to your computer and open the command line in the folder with ADB.
  3. Enter the command to check the connection: fastboot devices should appear serial number of your phone.
  4. Start unlocking the bootloader: fastboot oem unlock On the phone screen will appear a warning - confirm the action.
  5. Wait for an SMS or email from Xiaomi with confirmation (can take up to 3 days).
  6. Once unlocked, reset via Fastboot: fastboot erase userdata fastboot erase frp fastboot reboot

This method is suitable for experienced users, as improper actions can lead to a "brick" (complete inoperability) of the device.

πŸ’‘

If unlocking the bootloader is delayed, check the Spam folder in the mail - a letter from Xiaomi can get there.

5 Unlocking through Xiaomi Service Centers

If none of the above methods work, you have to contact the official service center, which is the most reliable, but also the longest option, and in most cases, specialists will be able to unlock the phone even without losing data (as long as this is not contrary to Xiaomi’s security policy).

What will be required for the application:

  • πŸ“„ Passport or other identity document.
  • πŸ“± Locked phone itself (with a charge of at least 20%).
  • πŸ“‹ Check or warranty card (if the phone is guaranteed).
  • πŸ”‘ Data from Mi Account if it was tied.

The cost of the service varies from 500 to 2000 rubles depending on the model and the complexity of unlocking. For new flagships (for example, Xiaomi 14 Ultra), the price may be higher. The deadline is from 1 to 5 working days.

⚠️ Please do not contact informal workshops promising to unlock the 10 There is a high risk of running into fraudsters who either can not help or damage the device. Xiaomi official service centers are in most major cities, and their list can be found on the website. mi.com/ru/service.

6. Alternative methods (for specific cases)

If the standard methods didn't work, you can try the less common ones, and they're suitable for individual models or atypical situations.

MethodSuitable modelsConditionsRisks.
Reset via EDL ModeRedmi 4X, Redmi 5A, POCO F1Qualcomm box or Mi Flash Tool requiredHigh risk of a breeze in an error
Use of Test PointXiaomi Mi 8, Mi 9, Redmi Note 7You need to take down the phone and close the contacts.Loss of warranty, risk of damage to fees
Recovery with the Mi Flash ToolAll models on Qualcomm processorsNeed a firmware for a specific modelAll data is deleted, errors are possible.
Bypassing through Safe ModePOCO X3, Redmi 9Works if the lock is caused by third-party softwareIt will not help with hardware locking

EDL Mode involves connecting your phone to your computer in emergency mode and running firmware through special tools, which is an extreme measure that you can trust to professionals, but you can try Safe Mode yourself:

  1. Turn off the phone.
  2. Press the power button, and when the Mi logo appears, hold Volume down until Safe Mode loads.
  3. Remove recently installed apps that may have caused the blockage.
  4. Restart your phone in normal mode.

πŸ’‘

If your phone is locked because of a virus or malware, Safe Mode often helps you bypass the lock without resetting your data.

Comparison of Unlocking Methods

To choose the best method, evaluate your technical skills and risks, and below is a comparative table of all methods, with an indication of the complexity and consequences.

MethodDifficultyLoss of dataTools requiredImplementation time
Mi Account⭐ (simple)❌ No.Computer or other telephone5-10 minutes
Reset via Recovery⭐⭐ (middle-of-the-road)βœ… Yes.Phone buttons15-20 minutes
ADB⭐⭐⭐ (difficult)❌ No.Computer, USB-cable, ADB30-60 minutes
Fastboot⭐⭐⭐⭐ (difficult)βœ… Yes.Computer, unlocked bootloader1-3 days (waiting for confirmation)
Service centre⭐ (user-only)❌ No (usually)Passport, check1-5 days

On Xiaomi models with a MediaTek processor (such as the Redmi 10C or POCO C40), unlocking via the Fastboot is often impossible – specialized hardware will be required.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, if you have Mi Account on your phone and Find the Device enabled, and ADB will help, but only if the USB debugging was activated before locking, otherwise the data will be lost.
What to do if you ask for an old Mi Account after a reset?
This is Factory Reset Protection (FRP) protection. If you do not remember the data from the associated account, you can unlock the phone only through a service center with proof of ownership (check or passport).
Does unlocking a call to a locked phone work?
No, this method is tired and doesn't work on modern versions of MIUI (starting with MIUI 12), which used to be possible to call the phone, open the dial and access the settings through it, but now this loophole is closed.
Can I unlock Xiaomi if it’s off and doesn’t respond to charging?
If the phone is completely discharged and not turning on, try charging it for 30 to 60 minutes first.If the charging indicator is not on, the problem may be in the hardware (for example, a faulty battery or power controller), in which case only repair will help.
How to avoid blocking in the future?
Here are some tips: πŸ” Use Smart Lock in your security settings to unlock your phone in trusted locations (such as at home). πŸ“± Attach Mi Account and enable data synchronization. πŸ”„ Regularly back up through Settings β†’ System system β†’ Backup. πŸ“ Write your password to a secure location (for example, a password manager).