How to unlock Xiaomi if you forgot your password: all working methods

Forgotten passwords on Xiaomi are a situation that one in five users encounter, and according to statistics from service centers, 18% of device locks are related to loss of access due to a loss of access. PIN-Fortunately, unlocking a smartphone without losing data is possible in 60% of cases, if you follow proven patterns and take into account the nuances of firmware. MIUI.

In this article, we will discuss 5 official and informal unlocking methods, including Mi Account, Fastboot and Recovery modes, as well as tools like ADB and Mi Flash Tool. Particular attention will be paid to models with Qualcomm Snapdragon chip (for example, Redmi Note 12 Pro+ or POCO F5), where the process is different from devices on MediaTek (like Redmi 10A).

1.Preparation for unlocking: what to do before blocking

If you’re reading this article in advance, you have a chance to avoid losing data completely if you block it in the future. Most of Xiaomi’s unblocking methods require one of three conditions:

  • πŸ”— A linked and confirmed Mi Account (even if you don’t remember your password).
  • πŸ”§ Included debugging by USB (Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times to tap β†’ Additionally. β†’ For developers β†’ Debugging by USB).
  • πŸ’Ύ Backup data to Mi Cloud or PC (via Mi) PC Suite).

If none of the conditions are met, you only have to reset hard through Recovery, but it will delete all the data on the device.

⚠️ Note: On Xiaomi models with MediaTek (e.g. Redmi) 9A or POCO C50) debugging USB It turns off automatically after you restart. To keep it active, activate the Unlock option in the developer menu. OEM.

If your phone is already locked, move to the next section. If you are not, do at least one of the steps above.

  1. Open Settings β†’ Xiaomi account.
  2. Log in to an existing account or create a new one (remember the login and password!).
  3. Confirm your account via SMS or email.
πŸ“Š Your Xiaomi is blocked right now?
Yeah, I forgot my password.
No, but I want to be ready.
I'm a different brand.
I don't know how to check.

2 Unlocking through Mi Account (official method)

This is the safest method, but it only works if:

  • πŸ“± The phone is connected to the Internet (Wi-Fi or mobile data).
  • πŸ”‘ Mi Account was tied to the device before being blocked.
  • πŸ“§ You remember your account login and password (or you can restore them).

Instructions:

  1. On the lock screen, tap Forgot Password? (or Forgot Password?).
  2. Select Sign in via Mi Account.
  3. Enter your login (email or phone number) and password. If you don't remember your password, click Forgot your password? and follow the recovery instructions.
  4. After successful authorization, the system will prompt you to create a new password or PIN-code.

If the buttons forgot the password?

  • πŸ”„ Restart the phone (clip the power supply) + Volume up for 10 seconds).
  • 🌐 Connect to Wi-Fi on the lock screen (swipe down) β†’ wifi icon).
  • πŸ”‘ Repeat the attempt to log in via Mi Account.

⚠️ Note: On Xiaomi models with MIUI 14 and newer (e.g. Xiaomi) 13T or Redmi Note 12) after 5 failed attempts to log in through Mi Account, the device is locked for 24 hours!

Make sure your phone is connected to the internet

Remember the username and password from Mi Account

Check that your account was linked before the lock

Have access to email/SMS password-recovery-->

3. Recovery Mode (Universal Method)

If the Mi Account is not tied or you don't remember the login details, you're left resetting to factory settings, which works on all Xiaomi models, but deletes all data on the device, including photos, messages and apps. SD-map (if it is installed).

Step-by-step:

  1. Turn off the phone (squeeze the power for 10 seconds).
  2. Press Power + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. Release the buttons and you will be taken to the Recovery Mode menu (on some models you need to select a language).
  4. Use volume buttons for navigation and power for selection. Select Wipe Data β†’ Wipe All Data.
  5. Confirm the action (Confirm).
  6. After reset, select Reboot β†’ Reboot to System.

The phone will reboot and suggest that you set it up as new, and this method works even if you have to:

  • πŸ”’ Password forgotten, PIN graphical.
  • πŸ“΅ There is no internet connection.
  • 🚫 Not tied to Mi Account.
Xiaomi modelCombination of buttons for RecoveryFeatures
Redmi Note 10/11/12, POCO X3/X4Food + Volume upMenu in English, sensor working
Xiaomi 12/13, Mi 11Food + Volume upRequires confirmation via Mi Account after reset
Redmi 9/9A/9C, POCO M3Food + Volume upMenu in Chinese, use volume buttons
Xiaomi Pad 5/6Power + Volume up + DownIn addition, a connection to the PC may be required.

⚠️ Attention: On devices with MIUI 13 and later, after reset via Recovery, you may need to enter data from Mi Account, which was previously tied.If you do not remember them, the phone will turn into a "brick" (it will not load beyond the activation screen).

4 Unlocking via Fastboot and Mi Flash Tool (for advanced)

This method is suitable if:

  • πŸ”§ The phone was debugging on. USB.
  • πŸ’» Have access to a Windows computer.
  • πŸ”„ You are ready for possible data loss (but the chance of saving it is higher than when resetting through Recovery).

The work will require:

  • πŸ“₯ Mi Flash Tool (official utility from Xiaomi).
  • πŸ“‚ Firmware for your model (download from xiaomifirmwareupdater.com).
  • πŸ”Œ Cable USB (preferably original).

Instructions:

  1. Turn off the phone.
  2. Press Power + Volume down for 10 seconds to enter Fastboot Mode (a hare in a hat-eared hat will appear).
  3. Connect the phone to the PC.
  4. Launch the Mi Flash Tool, press Select and select the downloaded firmware (file with.tgz extension).
  5. At the bottom, choose Clean all and lock or Clean all.
  6. Press Flash and wait until it is completed (5-10 minutes).

After the reboot, the phone will be unlocked, but:

  • πŸ“± All data will be deleted (except files on the SD-map).
  • πŸ”’ If the firmware is not suitable for your model, the device may stop turning on ("brick").
  • πŸ”„ On some models (Xiaomi 13 Pro, Redmi) K60) You need to unlock the bootloader through the Mi Unlock Tool.
What to do if the Mi Flash Tool can't see your phone?
1.Install Xiaomi drivers USB Drivers. 2. Check that the cable is working (try another). 3. In Device Manager (Windows), make sure the phone is identified as Android Bootloader Interface. 4. Try another one. USB-port (preferably) USB 2.0). 5. Restart the PC and phone, try again.

5. Unlock via ADB (if debugging is enabled)

The method only works if USB debugging has been activated before locking, it allows you to delete a password file without completely resetting, but requires command line skills.

What do you need?

  • πŸ’» Computer with installed ADB and Fastboot.
  • πŸ”Œ USB-cable.
  • πŸ“± Phone with a charge of at least 50%.

Instructions:

  1. Connect the phone to the PC.
  2. Open the command line (Windows) or terminal (macOS/Linux) 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

If you reset the password, try the adbd error:

  • πŸ”„ Reboot your phone in Fastboot and enter:
fastboot boot twrp.img


adb shell




[Repeat commands above]

Where to download twrp.img? For your model, look at the official TWRP website.

  • 🚫 Nana MIUI 14 and later, this method may not work due to enhanced protection.
  • πŸ”§ If the password is still there after the reboot, try repeating commands or resetting data via Recovery.

πŸ’‘

Before using ADB, check if the device in the system is determined by the adb device command. If the list is empty, install the drivers or try another cable.

6 Unlocking through a service center: when nothing helps

If all of the above methods have failed, you should contact the service center, which is true if:

  • πŸ” Your phone is blocked by your Mi Account and you don’t remember the login details.
  • πŸ“΅ The device does not turn on after unsuccessful manipulations with the firmware.
  • πŸ› οΈ Smearing equipment is required (for example, for discharge) NVRAM MediaTek).

Official Xiaomi service centers in Russia and CIS:

  • πŸ“ List on the official website.
  • πŸ’° The cost of unlocking: from 1,500 to 5 000 rubles (depending on the model and complexity).
  • ⏳ Timeframe: 1-3 working days.

What to bring with you:

  • πŸ“„ Passport (to confirm ownership).
  • πŸ“± Charger (if the phone is discharged).
  • πŸ›’ Check or box (if the phone is guaranteed).

⚠️ Note: Unofficial services may offer "unblocking through" IMEI" It's often a fraud, because it can cause the phone to lose its connection to the network or turn into a brick. Xiaomi's official services never use this method.

πŸ’‘

Contacting the service center is the only legal way to unlock Xiaomi if the Mi Account password is forgotten and USB debugging is not enabled.

FAQ: Frequent questions about unlocking Xiaomi

Can I unlock Xiaomi without losing data?
Yes, but only if: Mi Account is linked and confirmed (unlocking it saves data); USB debugging is enabled (you can use ADB to delete password files); in all other cases, the data will be deleted.
What if you need to reset your old Mi Account after resetting it?
This is Factory Reset Protection (FRP) Solutions: Remember your old account (try to reset your password via account.xiaomi.com). If your account is not yours (e.g., a handheld phone), contact the previous owner. The service center can unbind your purchase documents. It is almost impossible to bypass FRP on new versions of MIUI.
How to unlock Xiaomi if the screen is broken and you can not see what to enter?
Options: πŸ”Œ Connect your phone to your PC through ADB and try to enter commands to unlock (if debugging was enabled). πŸ”„ Connect the mouse through OTG-Adapter (on some models it works even with a broken screen). πŸ› οΈ Replace the screen at the service center (cost: from 3 000 If the screen does not respond to touch, but the image is, use scrcpy to control from PC: scrcpy --no-display
Does the unlocking work through the engineering menu (##...)?
No. Codes like ##7780## or *2767*3855# that work on Samsung don't apply on Xiaomi. These combinations either won't work or will cause a reset without deleting the password. The only working code for Xiaomi is ##4636## (test menu), but it won't help unlock.
Can I unlock Xiaomi through Google’s Find My Device?
No, the Find My Device service only allows you to: πŸ“ Determine the location of the phone. πŸ”Š Turn on the sound. πŸ”’ Lock the device (but not unlock it!). 🧹 Delete data (analogue of reset via Recovery) to unlock it is useless.