How to Reset Your Password on Xiaomi Phone: All the Working Techniques of 2026

Why Xiaomi Phone is Locked and What to Do

Forgotten password, pattern lock or PIN-The code on Xiaomi’s smartphone is a situation that one in five users encounter, and according to service centers, 68% of locks occur due to a change in password to a more complex one that owners do not write down. Another 22 percent is blocked after a failed input attempt (such as when a child was playing with a phone), and the remaining 10 percent is due to software failures after updates or resets.

Fortunately, you can unlock Xiaomi even without losing data β€” if you follow the instructions. In this article, we will discuss all the current ways to reset your password in the user. 2026 year, including official methods through Mi Account, hidden features Recovery Mode, and advanced techniques for power users (ADB, We will also focus on the nuances for models with MIUI 14/15 android phones 13/14.

Important: If you see on the screen the words "Device locked. Try later in 24 hours," it means that the system has activated password protection, in which case most unlock methods will not be available until the timer expires - you will have to wait or use a hardware reset (with loss of data).

Method 1: Unlocking with Mi Account (official method)

The most reliable and recommended way for Xiaomi is to use a tied Mi Account.It works on all models, including the Redmi Note 12, POCO X5, Xiaomi 13 and older devices (provided that the account was added before blocking).

Instructions:

  1. On the lock screen, tap β€œForgot password?” (or β€œForgot password?” on English firmware).
  2. Select β€œRestore with Mi Account”.
  3. Enter the email or phone number associated with the account.
  4. Confirm the entrance through SMS-account code.
  5. Follow the system’s prompts to create a new unlock password.

⚠️ Note: If you do not remember the data from Mi Account, restore it through the official website account.xiaomi.com. Use the function "Forgot your password?" and follow the instructions. Do not use third-party services to restore your account – this can lead to data theft or permanent locking of your device.

Advantages of the method:

  • πŸ”„ Stores all data on the phone (photos, messages, applications).
  • πŸ›‘οΈ It works on all versions. MIUI (including MIUI 15).
  • ⚑ Quickly - takes no more than 5 minutes.
πŸ“Š What kind of smartphone you Xiaomi?
Redmi (Note, K-series)
POCO (X, F-series)
Xiaomi (Numerical, T-series)
Black Shark
Other

Method 2: Reset password through Recovery Mode (without data loss)

If the Mi Account is not tied or you don’t remember the data from it, you can try resetting the password through Recovery Mode, which is suitable for most Xiaomi models on MIUI 12-15, but requires pre-activation of debugging over USB (if not, the method will not work).

Step-by-step:

  1. Turn off the phone with a long press of the power button.
  2. Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select the language (usually English or Chinese).
  4. Go to Wipe & Reset β†’ Wipe All Data (on some models, the path may be different: Advanced β†’ Wipe Data).
  5. Confirm the action and wait for the reboot.

⚠️ Attention: On phones with MIUI 14+ Android 13/14 This method may not work because of the increased security, so it will require you to enter your Mi Account password even in Recovery. 3 (Fastboot).

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 4

Compatibility table with Xiaomi models:

ModelMIUI 12–13MIUI 14+You need a Mi Account?
Redmi Note 10/11βœ… Yes.❌ No (only with an account)❌ No.
POCO X3/X4βœ… Yes.⚠️ Partially.βœ… Yes.
Xiaomi 12/13βœ… Yes.❌ No.βœ… Yes.
Black Shark 5βœ… Yes.βœ… Yes.❌ No.

Method 3: Unlocking via Fastboot (for advanced users)

If the previous methods didn't work, you can try resetting your password through Fastboot mode, USB-Note: wrong actions in Fastboot can lead to a device "brick" (completely inoperable), so follow the instructions carefully.

What you need:

  • πŸ–₯️ Windows computer 10/11 macOS.
  • πŸ”Œ Original. USB-cable (poor cables may interrupt the connection).
  • πŸ› οΈ Mi Flash Tool (download from the official website).
  • πŸ“± Firmware for your model (for example, fastboot-ROM for Redmi Note 12).

Instructions:

  1. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  2. Connect the device to your PC and start the Mi Flash Tool.
  3. In the program, click Select and select the downloaded firmware.
  4. Press Refresh – your device should appear in the list.
  5. Select Clean All mode and press Flash.
  6. Wait for the process to be completed (5-10 minutes) and the phone to restart.

⚠️ Note: After Fastboot is installed, all data on the phone will be deleted, including photos, contacts and apps. If the device has been enabled to sync with Google Account or Mi Cloud, some data can be restored after unlocking.

What to do if the Mi Flash Tool can't see your phone?
1. Check if Xiaomi drivers are installed (download from the official website). 2. Try another one. USB-port (preferably) USB Disable the antivirus, it can block the utility. 4. Reinstall the Mi Flash Tool in Windows 8.5 compatibility mode. If the phone is still not determined, try using the XiaoMiTool utility. V2 (Unofficial but verified by many users).

Method 4: Use ADB (only for unlocked bootloader)

The ADB method is only suitable for phones with an unlocked bootloader and USB debugging enabled. If you haven't activated these settings in advance, it won't work, but if debugging has been enabled, the chances of unlocking the phone without losing data are ~80%.

Instructions:

  1. Connect your phone to your PC via USB.
  2. Open the command line (Win + R β†’ cmd) and type:
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

  1. After resetting, the password will be reset.

⚠️ Attention: On phones with MIUI 14+ Android 13/14 This method may not work because of changes in the structure of the system files:

adb shell am start -n com.android.settings/.ChooseLockGeneric

If the commands fail and the phone is still locked, only a hardware reset remains (see Method 5).

πŸ’‘

Before using ADB, check if your phone is identified in the list of devices by the adb device command. If the list is empty, the drivers are not installed or debugging is not activated.

Method 5: Hard Reset – a last resort

If none of the previous methods worked, you'll have to completely reset your settings through Hard Reset, which is guaranteed to unlock your phone, but delete all the data without any recovery. Use it as a last resort!

How to make a Hard Reset:

  1. Turn off the phone.
  2. Press Volume Up + Power and hold until the Mi logo appears.
  3. From the Recovery menu, select Wipe Data β†’ Wipe All Data.
  4. Confirm the action and wait for the process to be completed.
  5. The phone will reboot in factory condition.

⚠️ Note: On some models (Xiaomi 13 Ultra, Redmi) K60) After Hard Reset, you may need to enter data from Mi Account, which was associated with the device. If you do not remember the username / password, the phone will turn into a β€œbrick” – it can only be unlocked through the official Xiaomi service (cost of service). ~3-5 thousand rubles).

πŸ’‘

Hard Reset is the last chance to unlock your phone yourself. If the device requires a Mi Account after the reset and you don’t remember it, contact the service center with proof of purchase (check, box).

Frequent Mistakes and How to Avoid Them

When trying to reset a password on Xiaomi, users often make critical mistakes that can make things worse.

  • πŸ”‹ Battery discharge: If the phone turns off during reset via Recovery or Fastboot, it could damage the firmware.Always charge the device to at least 50% before manipulation.
  • πŸ”Œ Using a non-original cable. Cheap. USB-cables often interrupt the connection, which causes the firmware process to stop.
  • πŸ–₯️ Incompatible firmware version: Install firmware from another model or region (e.g. Global) ROM You can get a "brick" on the Chinese version of the phone!
  • πŸ”‘ Attempting to bypass Mi Account through third-party services: Scammers offer to "unblock" the account for money, but in practice this leads to data theft or permanent locking of the device!

If you are not sure of your actions, it is better to contact the official service center Xiaomi.The cost of unlocking there starts from 1,500 rubles, but you are guaranteed to get a working phone without the risk of damaging it.

Can I unlock Xiaomi without losing data?
Yes, if you have a Mi Account tied or USB debugging enabled, in these cases you can reset your password through official methods (see Method 1 and Method 4) without deleting files, and if the account is not tied and debugging is disabled, the data will be lost.
What if the phone asks for an old password after reset?
This means that the reset was incorrect (e.g., via Wipe Cache instead of Wipe Data). Repeat the procedure by selecting a full reset (Wipe All Data). If the problem persists, run the phone through Fastboot (see Method 3).
How to unlock Xiaomi if you forget your password and Mi Account?
In this case, there are two options: Contact the Xiaomi service center with proof of purchase (check, box, warranty card). Perform Hard Reset (see Method 5), but after the reboot the phone may require data from the Mi Account that was previously tied. If you do not remember them, the device will remain locked.
Does unlocking work through services like the Mi Unlock Tool?
No, most of these services are fraudulent. They either don't work or they steal your Mi Account. The only official tool to unlock the bootloader is Xiaomi's Mi Unlock Tool, but it won't help reset the lock screen password.
Can I recover data after a Hard Reset?
If your phone has been enabled to sync with Google Account or Mi Cloud, some of the data (contacts, photos, notes) can be restored after unlocking. To do this: Sign in to the same Google or Mi Account after reset. In your phone settings, select "Recover Data." Confirm the recovery from the backup. If the sync was not configured, data cannot be restored.