How to unlock a Xiaomi smartphone if you forget your password: the full guide 2026

A forgotten password on a Xiaomi smartphone is a situation that one in five users encounter. Especially unpleasant when the device stores important data, such as photos, work correspondence or access to banking applications. Unlike the iPhone, where unlocking requires a mandatory connection to iTunes, Xiaomi Android devices (including Redmi, POCO and Mi) have several alternative ways, from official to engineering.

In this article, we’ll look at 5 proven unlocking methods, including Mi Account recovery, Recovery Mode reset, ADB use, and even hardware solutions for damaged screen devices. Importantly, the effectiveness of each method depends on the version of MIUI (12/13/14/15), the smartphone model and the availability of backups. For example, one algorithm will run on the Xiaomi 13 Pro with MIUI 15, and a completely different algorithm on the Redmi Note 8 with MIUI 12.

Before you start, answer the key question: is your smartphone tied to your Mi Account? If so, the chances of unlocking without losing data are multiplied. If not, you'll have to take drastic measures. Now let's get to the details.

1 Unlocking through Mi Account (official method)

Xiaomi’s most secure and recommended method is to use a tied Mi Account, which works on all devices with MIUI (except for Chinese firmware) and does not require technical skills, the main condition is that the smartphone must be connected to the Internet (via Wi-Fi or mobile network).

Algorithm of action:

  • πŸ”Ή On the lock screen, tap "Forgot password?" (on some models - "Forgot password?").
  • πŸ”Ή Enter the username and password from your Mi Account (the same as used in the Mi Cloud).
  • πŸ”Ή Confirm the unlock through SMS or email (if two-factor authentication is enabled).
  • πŸ”Ή Set a new one. PIN-code.

⚠️ Note: If you have not previously linked a Mi Account or do not remember the login details, this method will not work, POCO F5) After 5 failed attempts to enter a password, the option β€œForgot your password?” may temporarily disappear – in this case, wait 24 hours or use alternative methods.

πŸ“Š Your Xiaomi smartphone is tied to your Mi Account?
Yeah, and I remember the data.
Yeah, but I don't remember the password.
No, not tied.
I don't know.

If you have a Chinese firmware (e.g. Xiaomi for the Chinese market), instead of Mi Account, you may need to enter a Chinese phone number, in which case you cannot unlock through your account without the help of an official service center.

2. Recovery Mode reset (hard reset)

When unlocking through Mi Account is unavailable, a hardware reset is left, called Hard Reset, which will delete all data on the device, including photos, apps and settings, but will return access to the smartphone, and is suitable for all Xiaomi, Redmi and POCO models regardless of the version of MIUI.

Step instructions:

  1. Turn off your smartphone (press the power button for 10 seconds).
  2. Press the button combination: πŸ”˜ For most models: Volume up + Nutrition. πŸ”˜ For POCO X3, Redmi Note 10: Volume up + Loudness down + Nutrition.

Mi

Recovery Mode

"Wipe Data"

"Clear Data"

"Confirm"

"Yes"

"Reboot"

⚠️ Attention: On devices with MIUI 14/15 and the enabled "Device Protection" function after the reset may require data input from the Mi Account, which was previously associated. If you do not remember this data, the smartphone will turn into a β€œbrick” – it can be unlocked only through the official Xiaomi service with the provision of a purchase check.

β˜‘οΈ Preparation for Hard Reset

Done: 0 / 4

A critical feature for Xiaomi with a Snapdragon 8 Gen 2 processor (for example, Xiaomi 13 Ultra): after Hard Reset, a hardware lock bootloader can work, requiring unlocking through the Mi Unlock Tool.

3. Unlock through ADB (for advanced users)

If your Xiaomi has enabled debugging on USB (USB Debugging, you can try unlocking the device through ADB (Android Debug Bridge: This method saves data, but requires preliminary preparation: the smartphone should be unlocked bootloader, and on the PC – installed drivers Xiaomi and the other two. ADB Tools.

Step-by-step:

  1. Connect your smartphone to your PC through USB-cable (preferably original).
  2. Open the Command Prompt (Windows) or Terminal (macOS/Linux) in the folder with ADB.
  3. Enter the commands in turn: adb devices (should display your device) adb shell su (if root access is required) rm /data/system/gesture.key (for a pattern lock) or rm /data/system/password.key (for PIN-code)
  4. Reboot your smartphone: reboot

The unlocking process:

  1. Turn off your smartphone and put it in Fastboot mode (clip Volume Down + Power).
  2. Connect the device to your PC and start the Mi Unlock Tool.
  3. Sign in to your Mi Account.
  4. Follow the instructions of the program. The process can take up to 10 minutes.
  5. After unlocking the bootloader, run the device through the Mi Flash Tool or use TWRP to reset the password.

⚠️ Note: Xiaomi has introduced a restriction on unlocking the bootloader: after linking a new device to the account, you need to wait 7 days (on some models - up to 30 days.

What to do if Mi Unlock Tool gives you a "Couldn't unlock" error
The β€œCouldn’t unlock” error (or code 86006) means that the account is not tied to the device or has not passed 7 days since the binding. Solutions: 1. Wait for the specified deadline (check the unlock date in Mi Unlock Tool). 2. Try to link the device to another Mi Account (if the smartphone is new). 3. Contact Xiaomi with a purchase check for accelerated unlock (does not work for all regions).

5 Hardware methods (for devices with damaged screen)

If the smartphone screen is broken or does not respond to touch, but the device is turned on, you can try hardware unlock methods.They are suitable for Xiaomi with a working display (even if the sensor is not responding) and require additional equipment.

Options:

MethodEquipment requiredSuitable modelsData retention
Connecting the mouse via OTGUSB-OTG adapter + wired mouseAll models with OTG supportYes.
Use of Miracast/Wi-Fi DisplayTV or monitor with MiracastXiaomi 11/12/13, Redmi K40/K50Yes.
Connecting to PC via ScrcpyPC + USB-cable + ScrcpyAll models with USB debugging enabledYes.
Replacement of the display moduleNew screen + soldering stationAll models.Yes (unless the fee is damaged)

The easiest way is to connect. USB-mouse-wise OTG-Adapter. Many people don't know, but Android supports cursor control even on a locked screen:

  1. Buy it. OTG-adapter (stands) ~100-200 ruble).
  2. Connect the wired mouse to the smartphone.
  3. Click on the password field and enter it (if you remember).
  4. If the password is unknown, go to Settings via the notification bar (if available) and reset the lock.

For models with MIUI 14+ and damaged sensor, wireless screen transfer to PC via Scrcpy is also suitable. The utility allows you to control a smartphone from a computer, but requires the pre-enabled USB Debugging.

πŸ’‘

If the smartphone does not respond to OTG-Mouse, check if the function is enabled "USB OTG" in hidden settings. On some models (e.g, POCO X3 NFC) It is disabled by default and requires activation through the engineering menu.

6. Contact the Xiaomi Service Center

If all of these methods fail, the last option is the official Xiaomi service center, which is the only legal way to unlock the device without losing warranty, but it has its own nuances:

What will be required to unlock:

  • πŸ“„ Check or warranty card (confirmation of purchase).
  • πŸ“„ Passport of the holder (to confirm the identity).
  • πŸ“± The device itself (even if it is not switched on).
  • πŸ”‘ Data from Mi Account if the account is linked.

Cost and timing:

  • ⏳ 1-5 days – standard release period.

⚠️ Attention: Unofficial service centers often offer "unlocking through firmware" for 500-1000 rubles, but this is fraught with risk:

  • 🚫 Loss of guarantee.
  • 🚫 Installation of unstable firmware.
  • 🚫 The risk of brick (turning into a brick").

Before contacting the service, check whether your model is in the β€œlist of locked” – some devices (for example, Xiaomi Mi 6X or Redmi 5 Plus) after reset require mandatory authorization through Mi Account, and without a check they can not be unlocked.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: πŸ”Ή The device is tied to Mi Account and you remember the login details. πŸ”Ή Debugging is on. USB (USB Debugging and you can use it ADB. πŸ”Ή You have a backup in Mi Cloud (the data can be recovered after reset) in all other cases, the data will be lost.
What if you ask for an old Mi Account after Hard Reset?
This is a protection against theft (Factory Reset Protection, FRP). Solutions: Enter the data from the Mi Account that was tied before the reset. If you do not remember the password, restore it via account.xiaomi.com. If the account is not yours (for example, the device is bought with hands) – contact the service center with a check of purchase. ⚠️ Unlocking is impossible without a check – Xiaomi does not provide workarounds for the user. FRP.
How to unlock Xiaomi with a broken screen if you can’t see the image?
Options: πŸ”Ή Connect. USB-mouse-wise OTG Control the cursor (if the display is working, but the sensor is not). πŸ”Ή Use Scrcpy to display the screen on the PC (requires enabled debugging on the PC) USB). πŸ”Ή Connect your smartphone to your TV via Miracast (if the feature is enabled). πŸ”Ή In extreme cases - replace the display module (cost from 2 000 rubles).
Does the unlocking by calling the emergency number (112) work?
No, this method doesn't work on Xiaomi with MIUI 12 and later. Previously, the vulnerability allowed access to settings via an emergency call, but Xiaomi closed it in security updates. On older models (for example, Redmi 4X on MIUI 9) it could theoretically work bypassing through: Call 112 (don't dial real call!). Quickly pressing the back button to access the interface. Go to Setting β†’ Recover and reset. But on modern devices, this method is useless.
Can I unlock Xiaomi via Google Account (like on older Android)?
No, starting with MIUI 10 (and Android 9) Xiaomi has removed the ability to unlock through Google Account.Now the only official way is Mi Account: πŸ”Ή ADB (if debugging is on). πŸ”Ή Hard Reset (with data loss). πŸ”Ή Contacting the service center.