How to Remove Your Password from Xiaomi Mi 9: 5 Verified Ways (Including Bypassing Mi Account)

Forgot the pattern lock or PIN-You can't always unlock your phone without losing data, depending on whether Mi Account and Find Device features were enabled. In this article, we will discuss all the current ways to delete the password on the Mi 9, including official methods from Xiaomi and workarounds for experienced users.

Itโ€™s important to understand that modern Xiaomi smartphones (including the Mi 9 based on Snapdragon 855) use hardware encryption, which means that when reset via Recovery, all user files (photos, messages, contacts) will be irretrievably deleted unless there was a prior backup. However, in some cases, you can bypass the lock without losing data - read about this in the section about the data. ADB-team.

Before you start unlocking, check:

  • ๐Ÿ”„ Do you have access to a Mi Account linked to your phone?
  • ๐Ÿ“ฑ Is the Debugging on the Device On-Play USB (necessary ADB-method)?
  • ๐Ÿ”Œ Is the phone at least 50% charged (to avoid shutting down during the process)?
๐Ÿ“Š You have already tried to unlock the Xiaomi Mi 9?
Yeah, but it didn't work.
No, it's my first time.
I tried it with Mi Account.
Used third-party software

1 Unlocking through Mi Account (official method)

If the Xiaomi Mi 9 had a Mi Account attached, this is the easiest and safest way to unblock it, and works even after a hard reset, since the Xiaomi account is tied to the deviceโ€™s hardware identifier.

Instructions:

  1. On the lock screen, enter any password 5 times in a row until the message โ€œForgot the password?โ€ appears.
  2. Slip on this label and select "Unblock via Mi Account".
  3. Enter your username (email or phone number) and password from your Xiaomi account.
  4. Confirm unlocking via SMS or email (if two-factor authentication is enabled).

โš ๏ธ Note: If you bought your phone with your hands, the previous owner might not have untie your Mi Account, and you'll need their help to remove the device from the list of those tied in your account.

๐Ÿ’ก

If you don't remember the Mi Account password, restore it through Xiaomi's official website. Use a linked email or phone number. Don't use third-party services to "hack" accounts - this is fraud!

2.Reset to factory settings via Recovery

If you don't have access to the Mi Account, you only have to reset hard, which will delete all the data on the phone, including the lock password, but return the device to its original settings. On the Xiaomi Mi 9, the reset is done via the Recovery menu.

Step-by-step:

  1. Turn off the phone with a long press of the power button.
  2. Press the Power button + Volume up simultaneously and hold for 10-15 seconds until the Mi logo appears.
  3. From the Recovery menu, select the language (usually English by default).
  4. Go to Wipe Data โ†’ Wipe All Data and confirm the action.
  5. After the reset is complete, select Reboot โ†’ Reboot to System.

โš ๏ธ Note: Some Mi 9 firmware may require you to enter data from the Mi Account that was previously linked (Factory Reset Protection feature) after a reset!

Unlocking methodYou need a Mi Account?Are the data stored?Difficulty
Through the Mi Account.Yes.Yes.โญ
Reset via RecoveryNo (but may be required after resetting)No.โญโญ
ADB-teamNo.Yes (if debugging was included)โญโญโญ
Fastboot (unlocking the bootloader)No.No.โญโญโญโญ

3. Delete password through ADB (without data loss)

If Xiaomi Mi 9 was enabled Debugging by USB, You can delete the password without resetting data using ADB-This method requires a computer and installed Xiaomi drivers.

What you need:

  • ๐Ÿ–ฅ๏ธ Computer with Windows/macOS/Linux
  • ๐Ÿ”Œ USB-cable (original or quality)
  • ๐Ÿ“ฆ Established ADB and Fastboot
  • ๐Ÿ”ง Included debugging by USB on the phone (before locking!)

Instructions:

  1. Connect the Mi 9 to your computer via USB.
  2. Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with ADB.
  3. Enter the command to check the connection: adb devices If the device is displayed, go further.
  4. Delete the password file: adb shell rm /data/system/gesture.key adb shell rm /data/system/password.key adb shell rm /data/system/locksettings.db adb shell rm /data/system/locksettings.db-wal adb shell rm /data/system/locksettings.db-shm
  5. Reboot your phone: adb reboot

Once you reset, the password will be reset. If the lock screen is still active, try entering any key or making an unlock gesture.

What if the ADB canโ€™t see the device?
1. Make sure that the debugging is USB enabled (on a locked phone this can not be done - the method works only if the debugging was activated by the ARANE). 2. Check the drivers: install the Mi PC Suite. 3. Try another one. USB-4. On Windows, run the command line on behalf of the administrator.

4. Unlock the bootloader and firmware (for experienced)

If previous methods have failed, the last option is to unlock the bootloader and flash the phone through Fastboot, which is suitable for the Xiaomi Mi 9 with the Mi Account blocked or if you are ready to lose all data.

โš ๏ธ Warning: Unlocking the bootloader erases all data on the device, including internal memory (userdata), and this method requires official permission from Xiaomi (associating the account to the device). Unblocking is possible only through โ€œgrayโ€ schemes without permission, which violates the terms of use of Mi Account.

Instructions:

  1. Get permission to unlock through the official Xiaomi tool (you will need a tied Mi Account).
  2. Download Fastboot firmware for Mi 9 (e.g., from Xiaomifirmwareupdater.com).
  3. Put the phone in Fastboot mode: turn it off, then press Power + Volume down.
  4. Connect to your PC and execute commands: fastboot oem unlock fastboot flash all [name file firmware].tgz fastboot reboot

โ˜‘๏ธ Preparation for unlocking the loader

Done: 0 / 5

5. bypassing Mi Account after reset (the method for advanced)

If, after resetting via Recovery, the Xiaomi Mi 9 requires data entry from Mi Account, which you do not know, you can try to bypass this protection.

Roundabout options:

  • ๐Ÿ”ง Method 1: Switching custom recovery (TWRP) and delete Mi Account files manually. Requires an unlocked bootloader.
  • ๐Ÿ“ฑ Method 2: Use vulnerabilities in older versions MIUI (for example, through EDL-mode and special scripts. Relevant for firmware older than 2021.
  • ๐Ÿ’ป Method 3: Contact Xiaomi Service Center with proof of purchase (check, sales contract).

โš ๏ธ Note: Using unofficial Mi Account bypass methods may result in a lock IMEI Xiaomi is actively fighting against such methods, regularly closing vulnerabilities in new versions. MIUI.

๐Ÿ’ก

If you are not sure about your skills, you should contact Xiaomi Service Center. Mistakes when bypassing Mi Account can turn your phone into a brick.

6. Alternative ways and useful tips

If none of these methods worked, consider these options:

1. Contact the service center

Xiaomiโ€™s official service centers can unlock the phone if you have:

  • ๐Ÿ“„ Documents confirming the purchase (guarantee ticket, check).
  • ๐Ÿ”‘ Access to the box with IMEI (must coincide with IMEI phone).
  • ๐Ÿ“ž Phone numbers linked to Mi Account (to confirm ownership).

2.A check at the flea market

If you bought the Mi 9 with your hands and the seller did not untie your account, try to contact him. Through the personal account Mi Account, the previous owner can remove the device from the list of attached gadgets - this will remove the lock.

3. Use of backup copy

If you created a backup via Mi Cloud or locally on your PC (for example, through Mi PC Suite) before blocking, you can recover some of the data after unlocking:

  • ๐Ÿ“ Contacts and messages (if synchronized with Mi Account).
  • ๐Ÿ“ท Photo and video (if backup is created manually).
  • ๐ŸŽฎ Game saving (if you used Google Account or Mi Account).

1. Backup to Mi Cloud (Settings โ†’ Mi Account โ†’ Mi Cloud โ†’ Backup).

2. Two-factor authentication for Mi Account.

3.Write it down. PIN-a code or pattern lock to a secure location (for example, a password manager).-->

FAQ: Frequent questions about unlocking Xiaomi Mi 9

Can I unlock the Mi 9 without losing data if USB debugging has been disabled?
No. Without USB debugging enabled (Settings โ†’ Developer โ†’ USB debugging), the only official way to unlock is through Mi Account. All other methods (ADB, Fastboot) require debugging pre-activation or lead to data loss.
What to do if the Mi 9 asks for the old Mi Account password after resetting?
This is a feature of Factory Reset Protection (FRP). Solutions: Enter data from the associated Mi Account. Contact the previous owner to untie the device in his account. Provide proof of purchase to the Xiaomi service center (for official unlocking). Third-party FRP bypass programs often contain viruses or do not work on new versions of MIUI.
How do I know if my Mi 9 is unlocked?
Turn off the phone, then press Power + Volume down to enter the Fastboot. If the bottom of the screen says "Unlocked" - the bootloader is unlocked. If "Locked" - locked. You can also check the command: fastboot oem device-info Look for the lines Device unlocked: true/false.
Can I unlock the Mi 9 through Google Account (like Samsung)?
No. Unlike pure Android phones (like Samsung or Google Pixel), Xiaomi smartphones don't support unlocking through Google Account. The only official way is Mi Account.
How much does it cost to officially unlock at Xiaomi Service Center?
Cost depends on the region and the reason for blocking: If you have a check / warranty, unlocking can be free. Without documents - from 1,500 to 5 000 rubles (depending on the complexity). If you block IMEI (for example, after a failed bypass of Mi Account) - recovery can cost 10,000+ rubles or be impossible.