How to remove desktop protection on Xiaomi phone: all ways to unlock

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:

  1. Connect the phone to your PC and open the command line (Win + R β†’ enter cmd).
  2. Check the connection of the device command: Adb devices should appear serial number phone.
  3. 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
  4. 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?
If the adb device command returns an empty list, check: 1. Are Xiaomi drivers installed (you can download from the official website). 2. Is the mode enabled? USB Debugging in the developer settings (Settings) β†’ The phone. β†’ Version. MIUI (press 7 times) β†’ Additionally. β†’ For developers. 3. Try another one. USB-cable.

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:

  1. Turn off the phone.
  2. 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!

πŸ“Š What Unlocking Method Have You Tried?
Through the Mi Account.
ADB
Recovery
Fastboot
I haven't tried it yet.

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:

  1. Turn off the phone and press Volume Down + Power to log in to Fastboot.
  2. Connect your phone to your PC and check the connection with the command: fastboot devices
  3. Unlock the bootloader (if it is locked): fastboot oem unlock On the phone, confirm unlock.
  4. 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 phoneUnlocking commandDo I need to unlock the Bootloader?
Xiaomi 12/13 seriesfastboot flashing unlockYes.
Redmi Note 11/12fastboot oem unlockYes.
POCO F4/F5fastboot flashing unlock_criticalYes.
Xiaomi Mi A2/A3 (Android One)fastboot flashing unlockNo (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:

  1. Go to the Xiaomi Service Locator website.
  2. Choose a country and a city.
  3. 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.

  1. Press the power button before the off menu appears.
  2. Hold your finger on β€œSwitch off” until you are prompted to switch to Safe Mode.
  3. 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 + Nutrition

Then 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.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, if you have USB debugging enabled (ADB) or your phone is tied to Mi Account, in which case you can delete the key file without resetting the settings, and if debugging is disabled and you don't have access to your account, the data will be lost.
What if your phone needs an old Mi Account after resetting via Recovery?
This is Factory Reset Protection (FRP), which is anti-theft protection. If your phone was yours, enter the details from your linked account. If the used phone and the previous owner didn't untie your account, contact them or contact the service center with the purchase documents.
How to unlock Xiaomi if you forget your password and Mi Account?
You only have to reset through Fastboot or Recovery, but the data will be erased, and if the phone has backed up to Mi Cloud, some of the information (contacts, notes) can be restored after unlocking.
Does ADB unlocking work on new Xiaomi models (2023–2026)?
On MIUI 14+ and HyperOS models, the ADB method may not work because the keys are stored in encrypted form, and only resetting via Recovery or Fastboot will help.
How much does it cost to unlock in the Xiaomi service center?
Cost depends on the model: Redmi 9/10/Note 11: 1 000–1 500 β‚½. Xiaomi 11/12 series: 2 000–3 000 β‚½. POCO F4/F5: 1 500–2 500 β‚½. Flagships (Xiaomi) 13 Ultra, MIX Fold): 3 000–5 000 β‚½. Prices are relevant for Russia 2026 year.