Forgot the password from Xiaomi and can not unlock your phone? Or bought a used device with someone else's pattern lock? The situation is familiar to many - the lock screen turns into an insurmountable barrier if you do not know how to properly remove protection. In this article, we will discuss all the current methods of unlocking Xiaomi, Redmi and POCO smartphones, from simple (via Mi Account) to radical (complete reset via Fastboot).
It is important to understand that the method of unlocking depends on the version of the MIUI, the phone model and the type of protection (PIN, pattern lock, fingerprint). For example, on new models with a MIUI 14+ and a Snapdragon 8 Gen 2 processor, the method may not work through ADB, which was successfully used on the old Redmi Note 5. We took these nuances into account and collected only working solutions for 2026.
We warn you in advance: some methods lead to data loss (photos, contacts, messages). If the phone is synchronized with Mi Cloud, some information can be restored after unlocking. But it is better to assess the risks in advance - you may need to contact the Xiaomi service center if the phone stores critical data.
1 Unlocking through Mi Account (official method)
The safest method that works on most Xiaomi models is if the phone is tied to a Mi Account. PIN-code or pattern lock, but remember the data from the account. The method does not require resetting and stores all the data on the device.
How it works: MIUI allows you to reset screen protection through account verification, the main condition is that the phone must be connected to the Internet (via Wi-Fi or mobile network). If there is no Internet, try connecting to the access point from another device.
- πΉ Enter the wrong password/key 5 times in a row until the message βForgot the password?β or βUnlock via Mi Accountβ appears".
- π± Click on the link and enter email/A phone linked to a Mi Account.
- π Confirm the entrance through SMS account-password.
- π² After successful authorization, the system will offer to create a new PIN-code.
β οΈ Note: If two-factor authentication is enabled on the phone (2FA), You may need to confirm it through the Mi Security app on another device, and you won't be able to unlock it through your Mi Account without access.
π‘
If you donβt remember the password from Mi Account, try to restore it through the official account.xiaomi.com. Use the backup email or phone number provided during registration.
2. reset the pattern lock via ADB (without loss of data)
The method is suitable for devices with enabled debugging USB (USB If you have previously activated this mode in the developer settings, you can delete the key file through the ADB It's completely reset. MIUI 12-14, but may not be supported on new HyperOS models.
You'll need:
- π₯οΈ Computer with installed Xiaomi drivers and tool ADB (You can download from the official Android website).
- π USB-cable (preferably original).
- π± Phone with a charge of at least 30% (to avoid shutdown during the process).
Step-by-step:
- Connect the phone to your PC and open the command line (Win + R β enter cmd).
- Check the connection of the device command: Adb devices should appear serial number phone.
- Enter the command to delete the key file: adb shell rm /data/system/gesture.key For PIN-Use the following code: adb shell rm /data/system/password.key
- Reboot your phone: adb reboot
After the reboot, the screen protection will be reset, and if the method does not work, then your Xiaomi model uses a different key storage mechanism (for example, in /data/system/locksettings.db).
What if the ADB canβt see the device?
3. Unlock through Recovery Mode (with data loss)
If previous methods didnβt work, you can use Recovery mode to reset your phone to factory settings, which removes all data from the device, including photos, apps and settings, but is guaranteed to remove any screen protection, suitable for all Xiaomi, Redmi and POCO models.
Instructions:
- Turn off the phone.
- Press the button combination to enter Recovery: For most models: Volume up + Power. For POCO F5 and the new Redmi Note 12: Volume up + Volume down + Power.
Recovery
Wipe Data β Wipe All Data
Factory Reset
Confirm the reset and wait for the process to be completed.
Reboot
β οΈ Note: Some models (e.g. Xiaomi 13 Pro) may require a reset via Recovery, if previously associated with Mi Account, this is Factory Reset Protection!
4. Unlock via Fastboot (for advanced users)
It works if the phone doesnβt boot or other methods donβt work, and requires an unlocked bootloader β if itβs locked, youβll have to unlock it first through the official Mi Unlock Tool (a process that takes up to 72 hours).
The advantage of this method is that you can flash clean firmware without screen protection, and the disadvantage is that all data is deleted, and there is a risk of bricking the device if you do not do it correctly.
What you need:
- π₯οΈ PC with installation ADB and Fastboot.
- π Firmware for your model (download from the official website or Xiaomi Firmware Updater).
- π Cable USB (preferably original).
Step-by-step:
- Turn off the phone and press Volume Down + Power to log in to Fastboot.
- Connect your phone to your PC and check the connection with the command: fastboot devices
- Unlock the bootloader (if it is locked): fastboot oem unlock On the phone, confirm unlock.
- Firmware (example for Redmi Note 10): fastboot flash boot.img fastboot flash recovery.img fastboot flash system system.img fastboot erase userdata fastboot reboot
| Model phone | Unlocking command | Do I need to unlock the Bootloader? |
|---|---|---|
| Xiaomi 12/13 series | fastboot flashing unlock | Yes. |
| Redmi Note 11/12 | fastboot oem unlock | Yes. |
| POCO F4/F5 | fastboot flashing unlock_critical | Yes. |
| Xiaomi Mi A2/A3 (Android One) | fastboot flashing unlock | No (using the standard Android mechanism) |
π‘
Unlocking through Fastboot is the most reliable way, but it requires technical skills. If you are not sure about your actions, you should contact the service center.
5 Unlocking through Xiaomi Service Center
If you don't succeed, you have to go to the official service center, which is a paid service, but it guarantees the safety of the device and unlock without the risk of damage, and the cost depends on the model and the region:
- π° Xiaomi/Redmi budget-line: 1 000β2 500 β½.
- π° Flagship models (Xiaomi 13 Ultra, MIX Fold 3): 3 000β5 000 β½.
- π A document confirming possession (checks, box, warranty card) will be required).
How to find a service center:
- Go to the Xiaomi Service Locator website.
- Choose a country and a city.
- Check the reviews about the center (some unofficial services may refuse to unlock without documents).
β οΈ Attention: In informal services can offer "bypass" protection through firmware with substitution IMEI. This is illegal and leads to loss of warranty and possible network problems.
6. Alternative methods (for specific cases)
If the standard methods didn't work, you can try lesser-known solutions, which are suitable for rare situations, for example, when the phone is locked after a failed update or because of a MIUI malfunction.
6.1 Unlocking through Safe Mode (Safe Mode)
On some models (Redmi 9, POCO X3) you can boot into Safe Mode and turn off screen protection through settings.
- Press the power button before the off menu appears.
- Hold your finger on βSwitch offβ until you are prompted to switch to Safe Mode.
- In Safe Mode, go to Settings β Passwords and Security β Lock the screen and remove protection.
6.2 Use of the Mi Flash Unlock tool
Xiaomi's official tool for unlocking the bootloader, but it can also be adapted to reset screen protection, and can be downloaded from the official website, which takes up to 3 days to verify your account.
Download and install Mi Flash Unlock|Sign in to Mi Account on PC|Connect your phone to Fastboot mode|Confirm the unlocking through SMS|Wait for the process to be completed (up to 72 hours)-->
6.3. bypass EDL-The mode (only for experienced users)
EDL (Emergency Download Mode is a firmware emergency mode that allows you to restore your phone even when there are serious crashes. EDL On the phone off, press it:
Volume up + Volume down + NutritionThen you can flash clean firmware through the Mi Flash Tool, and it's a risky method, because if you make a mistake, the phone can turn into a brick.