How to remove the password from Xiaomi Mi 9: from simple ways to completely reset

Forgot the pattern lock or PIN-The phone is locked after failed attempts to enter, and access to data urgently? This situation is familiar to many owners of Xiaomi smartphones, especially if the device has been left unused for a long time or the password was entered in a hurry. Unlike newer models with face unlock or fingerprint, the Mi 9 (released in 2019) relies on traditional protection techniques, making it difficult to restore access.

In this article, we will discuss 5 How to remove the password from Xiaomi Mi 9 β€” From the simplest (if you remember the Mi Account) to the most radical (full reset via Recovery), each method is illustrated with screenshots (for current versions). MIUI 14/13) It's accompanied by warnings about possible risks. Importantly, some methods require prior preparation (e.g., the included ones). USB-smackdowns, so read carefully!

If you are looking for a solution for another Xiaomi model (e.g. Redmi Note 10 or POCO X3), note: instructions may differ due to changes in the firmware or hardware platform. For Mi 9 (codename cepheus) all the methods described below are relevant, but methods through ADB do not work on MIUI 12.5+ without first authorizing the device in Mi Account.

1 Unlocking through Mi Account (official method)

The safest method is if you have linked your phone to your Xiaomi account, which is suitable for cases where:

  • πŸ”‘ You remember the username/password from Mi Account (or you can restore them through the email/SMS).
  • πŸ“Ά The phone has access to a mobile network or Wi-Fi (to verify your account).
  • βš™οΈ Find the device has been activated in the settings.

Instructions:

  1. On the locked screen, tap Forgot password? (or Forgot password? on English firmware).
  2. Choose Restore through Mi Account.
  3. Enter an email or phone number linked to your account, and it will receive a confirmation code.
  4. After successful authorization, the system will prompt you to create a new password or reset the old one.

⚠️ Note: If the phone is not connected to the Internet, this method will not work, and Xiaomi may also request additional verification (for example, a tied number for the phone). SMS-code) if the account has not been used for a long time.

πŸ“Š You link your smartphone to your Mi Account?
Yeah, always.
Only on new devices.
No, I don't.
I don't know what it is.

2. Reset password through ADB (required USB-debugging)

The method for advanced users who had USB debugging enabled in advance (Settings β†’ About Phone β†’ MIUI Version β†’ 7 taps by build number β†’ For developers β†’ USB debugging). If this item is not done, the method will not work!

What you need:

  • πŸ–₯️ Computer with installed Xiaomi drivers (download from the official website).
  • πŸ”Œ USB-cable (preferably original).
  • πŸ› οΈ Utility. ADB (is part of Android SDK Platform Tools).

Step-by-step:

  1. Connect the Mi 9 to your PC and confirm your trust in the computer on your phone screen (if you have a request).
  2. Open the command prompt (Win + R β†’ enter cmd) and go to the folder with ADB:
  3. Check the connection of the device:
  4. Delete the password file:
  5. Reboot the phone:

After the reboot, the password will be reset, but all data will be saved.If the adb device command does not show the device, check the drivers or try another one. USB-port.

β˜‘οΈ Preparation for ADB-discharge

Done: 0 / 4

3. Recovery Mode reset (without data loss)

This works if the Mi 9 has custom firmware installed (like LineageOS or Pixel Experience) or unlocked the bootloader. On the MIUI stock firmware, a reset via Recovery will result in the deletion of all data!

How to log in to Recovery:

  1. Turn off the phone.
  2. Press the Power button + Volume up for 10-15 seconds at the same time.
  3. Release the buttons when the Mi logo and menu appear in English.

Further actions depend on the type of firmware:

Type of firmwareAction in RecoveryIs the data preserved?
Stock MIUISelect Wipe Data β†’ Wipe All Data❌ No (full reset)
Castomium (TWRP)Go to Advanced β†’ File Manager, delete /data/system/locksettings files.*βœ… Yes.
MIUI with unlocked loaderConnect your phone to your PC and use ADB (see Method 2)βœ… Yes.

⚠️ Note: Xiaomi’s stock Recovery doesn’t allow selectively deleting files β€” only a full reset.If you’re not sure about the type of firmware, don’t take the risk of using other methods.

πŸ’‘

Before resetting via Recovery, remove SIM-card and memory card – this will speed up the process and reduce the risk of file damage.

4. Full reset to factory settings (Hard Reset)

Extreme measure if other methods fail, all data will be deleted, including photos, contacts and apps, suitable for cases where:

  • πŸ”’ The phone was bought with hands and the previous owner did not untie the Mi Account.
  • πŸ“± The device does not respond to other unlocking methods.
  • πŸ”§ You need to access it urgently, and the data is not critical.

Instructions:

  1. Enter Recovery Mode (see Method 3).
  2. Use volume buttons for navigation and power button for selection.
  3. Choose Wipe Data β†’ Wipe All Data.
  4. Confirm the action (Confirm).
  5. After reset, select Reboot β†’ Reboot to System.

The phone will reboot to the β€œout of the box” state, and the first time it is turned on, you will need to go through the initial setting, including binding to Mi Account (if the phone was stolen, the original owner will be able to block it remotely!).

What to do if your phone asks for an old Mi Account after a reset?
If the Mi 9 was linked to a Xiaomi account, after Hard Reset, the system will request the previous owner’s data: This is protection against theft. Solutions: Contact the previous owner (if the phone is bought with hands); Provide Xiaomi with proof of purchase (check, box) through support; Use informal unlock services (risky – you can get a brick).

5. Alternative methods (for experienced users)

If the standard methods do not work, you can try:

A. Unlocking through Fastboot

Requires an unlocked bootloader and PC. Reset commands:

fastboot flashing unlock


fastboot erase userdata




fastboot erase metadata




fastboot reboot

⚠️ Warning: Incorrect use of fastboot can turn your phone into a brick, a method that is only recommended if you have previously worked with firmware.

B. Use of third-party utilities

Programs like Mi Flash Tool or SP Flash Tool allow you to flash your phone from scratch, but:

  • 🚫 Risk of damage IMEI communications module.
  • πŸ”“ Requires official firmware for Mi 9 (you can download on Xiaomi Firmware Updater).
  • πŸ›‘οΈ You need to unplug your Mi Account in advance.

πŸ’‘

Third-party unlocking utilities often contain malicious code. Use only official tools from Xiaomi or verified sources (e.g., the XDA Developers forum).

Frequent Mistakes and How to Avoid Them

When trying to remove the password, users of Xiaomi Mi 9 face typical problems:

  1. ADB Cannot see the device: Solution: Install Xiaomi drivers manually through Device Manager (select Device Manager) ADB Interface. Try another one. USB-cable.
  2. After reset, asks for an old Mi Account: Solution: See spoiler above. If the phone isn't yours, return it to the seller - unlocking through third-party services can cost more than the device itself.
  3. Phone is not included in Recovery: Solution: Try to pin Power + Volume up longer (up to 20 seconds). If it doesn't help - battery is discharged (charge the phone 10-15 minutes).

If none of these methods worked, contact the Xiaomi service center. For the Mi 9, the official unlock cost is ~1,500–3,000 rubles (depending on the region).

Can I remove the password from Xiaomi Mi 9 without losing data?
Yes, but only if: You remember the data from Mi Account (option 1). USB-Debugging (mode 2) Installed custom firmware with TWRP (method 3) On a stock firmware MIUI Without prior preparation, data storage is not possible.
What to do if you forget your password and Mi Account?
In this case, only a full reset (method 4) remains, but after the reboot, the phone will require data from the old account. Solutions: Contact the previous owner (if the phone is bought from hand); Provide Xiaomi with proof of purchase (check, box) to untether; Use paid unlock services (risky).
How to protect Xiaomi Mi 9 from accidental lock in the future?
Follow these tips: πŸ” Link your phone to your Mi Account and record the data in a safe place. πŸ“± Turn it on. USB-Debug and make a backup copy through Mi PC Suite. πŸ”„ Regularly sync your contacts and photos with your Google Account or Mi Cloud. πŸ“ Use a password manager (such as Bitwarden) to store PIN-code.
Does Xiaomi’s Unlock Tool like the Mi Account Unlock Tool work?
Most of these programs are fraud: πŸ’° They ask for payment for β€œunblocking”, but do nothing. 🦠 Install malware on your PC. πŸ”§ They ruin the firmware of the phone, turning it into a brick. The only working tools are official utilities from Xiaomi (Mi Flash Tool) or proven modifications from the community. XDA Developers.
Can I unlock the Mi 9 with service codes (##)?
No. Service codes like ##7780## or *2767*3855# don't work on Xiaomi, they're for Mediatek-based devices like Samsung or Lenovo. For the Mi 9 (Snapdragon 855), these commands are useless.