How to unlock Xiaomi Mi 9: from password to Mi Account

Did you forget the Xiaomi Mi 9 password or did the phone lock down after failed typing attempts? The situation is unpleasant, but solvable. This smartphone, released in 2019, is still popular thanks to the powerful Snapdragon 855 processor and the phone is still popular. AMOLED-But his security system is a mix of MIUI, Google FRP Mi Accounts โ€“ can turn unlocking into a real quest.

In this article, we will analyze all the current ways to unlock the Mi 9, from simple (reset via Recovery) to complex (working with Fastboot and other devices). ADB). Important: Methods vary depending on the type of lock โ€“ it can be forgotten PIN-code, pattern lock, Xiaomi account binding, or even locking after firmware. MIUI 14 and newer, where the manufacturer has tightened protection.

โš ๏ธ Warning: Some methods (such as Fastboot reset) can result in a loss of warranty if the phone is tied to an official Xiaomi service center.

1. Determine the type of lock on Xiaomi Mi 9

Before you act, you need to understand what exactly locks the phone, and this depends on the choice of method:

  • ๐Ÿ”’ Forgotten PIN/Password/pattern lock โ€“ a screen lock that you have set yourself.
  • ๐Ÿ“ฑ Mi Account (Xiaomi account) โ€“ the phone requires a username and password from the Xiaomi account after a reset or firmware.
  • ๐Ÿ”„ FRP (Factory Reset Protection โ€“ Google locks after resetting (relevant for Android 5.1 devices)+).
  • ๐Ÿ› ๏ธ Locking after failed firmware โ€“ the phone doesnโ€™t boot or hangs on the Mi logo.

To diagnose the problem:

  1. Try entering any password/key 5 times โ€“ if the message โ€œDevice locked. try again in 30 secondsโ€ appears, this is a local lock screen.
  2. If the phone requires โ€œLogin to Xiaomi Accountโ€ after the reboot, it is Mi Account Lock.
  3. If you ask for data from your previous Google account after resetting, it is FRP.
๐Ÿ“Š What type of lock your Xiaomi Mi 9 has?
Forgotten password/pattern lock
Mi Account (requires Xiaomi login)
FRP (Google Blocking)
It does not load after the firmware
Another option

2 Unlocking through Mi Unlock Tool (official method)

If the phone is tied to a Xiaomi account and requires data entry after a reset, the only legal way is to use the Mi Unlock Tool.This method works even if you don't remember the password from the screen, but you should definitely know the username and password from the Mi Account.

โš ๏ธ Note: Xiaomi has tightened its unlock policy since 2023.New devices now require confirmation via the SMS If the number is lost, it will be extremely difficult to restore access.

Step-by-step:

  1. Download the Mi Unlock Tool (official website).
  2. Run the utility on a Windows 7/10/11 PC (on macOS/Linux does not work).
  3. Log in to your Mi Account in the tool.
  4. Turn off the Xiaomi Mi 9 and press Power + Volume down to log into the Fastboot.
  5. Connect your phone to your PC via the original USB Type-C cable.
  6. In Mi Unlock Tool, click Unlock and wait for completion (usually 5-10 minutes).
Step.Possible errorsDecision
Connection to PC"Couldn't connect to device"Install Qualcomm drivers or use another USB-port
Account login"Account not bound to device"Link your account to your phone in advance in Mi Account โ†’ Mi Cloud settings
Unlocking"Unlock failed. Try again after 72 hours"Wait 3 days (Xiaomi limit for new accounts)

Download the latest version of the Mi Unlock Tool|Check the link of Xiaomi account to the phone|Disable antivirus on PC|Use the original USB-cable|Charge your phone at least 50 times%-->

3. Recovery Mode reset (unless the Mi Account is tied)

If you just forgot your screen password and didnโ€™t link your phone to your Xiaomi account, the quickest way is to reset through the standard Recovery menu.This method deletes all data, but doesnโ€™t require a PC or special knowledge.

Instructions:

  1. Turn off the Xiaomi Mi 9.
  2. Press Power + Volume up at the same time for 10-15 seconds until the Mi logo and Recovery menu appear.
  3. Use volume buttons for navigation and power button for selection.
  4. Select "Wipe Data" โ†’ "Wipe All Data".
  5. Confirm the action and wait for the reboot.

โš ๏ธ Note: If the phone requires data from Mi Account after the reset, then the account was previously linked. In this case, proceed to the method with Mi Unlock Tool (section 2).

What happens if the Recovery Mode does not open?
If after holding Power + Volume up the phone vibrates, but the menu does not appear, try: 1. Connect the charger and try again. 2. Use the combination Power + Volume up + Volume down (rarely triggered on the Mi 9). 3. If the screen remains black, it may be damaged firmware (needs Fastboot).

4. Unlock through ADB (without data loss)

If you have previously enabled USB debugging in the developer settings, you can try to delete the password file via ADB. This method saves data, but only works if:

  • ๐Ÿ”Œ The phone is connected to the PC and is recognized in ADB.
  • ๐Ÿ“ฑ Debugging is on. USB (Settings โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times tap to activate the developer mode).
  • ๐Ÿ–ฅ๏ธ Drivers are installed on the PC ADB and Fastboot.

Commands to unlock:

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 the password is still valid after rebooting, try an alternative method:

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

๐Ÿ’ก

If the su command doesnโ€™t work, you donโ€™t have root permissions on your phone, in which case you can try rooting through Magisk first (but itโ€™s risky for inexperienced users).

FRP (Google Factory Reset Protection)

If after resetting the Xiaomi Mi 9 requires data from the previous Google account, you will need to bypass FRP. This protection mechanism appears on all Android devices after the reset, if you previously added a Google account.

Method 1: Wi-Fi settings (for MIUI 12-14)

  1. On the welcome screen, select a language and connect to Wi-Fi.
  2. Go back and tap on the email field, and the keyboard will appear.
  3. Press and hold @, select "Keyboard Settings".
  4. Go to "Additional settings" โ†’ "Reference".
  5. Tap any link to open the browser, and download FRP-tool.

Method 2: via Fastboot (requires PC)

If the first method does not work, use the Mi FRP Tool:

fastboot oem frp-unlock


fastboot reboot

๐Ÿ’ก

FRP bypass on newer versions of MIUI (14+) has become more difficult because of security patches: If the phone was updated after 2023, the odds of success are below 50%.

6 Unlocking after a failed firmware (brick)

If the Xiaomi Mi 9 doesnโ€™t turn on or hangs on the Mi logo after firmware is flashed, itโ€™s called a โ€œbrickโ€ and in most cases, the phone can be restored via Fastboot or EDL Mode.

Method 1: Firmware with the Mi Flash Tool

  1. Download the official firmware for Mi 9 (select the Fastboot version).
  2. Unpack the archive in a folder without Cyrillic characters.
  3. Start the Mi Flash Tool, select the folder with the firmware.
  4. Connect your phone in Fastboot mode (Power + Volume Down).
  5. Press Refresh, then Flash (select Clear All for full flashing).

Method 2: EDL Mode (for severe damage)

If Fastboot doesnโ€™t recognize the device, youโ€™ll need an authorized Xiaomi account to sign in to the EDL:

fastboot oem edl

Use the Mi Flash Tool with the "Flash All Except Storage" option.

โš ๏ธ Attention: Firmware through EDL Without official permission, Xiaomi may be blocked. IMEI (This method is recommended only for experienced users.

7. Alternative methods and risks

If none of these methods work, radical measures remain:

  • ๐Ÿ”ง Replacement of motherboard is expensive (from 5 000) โ‚ฝ), But it's guaranteed to unblock all locks, which is fine if the phone is important for the job.
  • ๐Ÿ“ž Contacting Xiaomi Service Center โ€“ officially only if you have a check and account information. Cost: 1,500-3000 โ‚ฝ.
  • ๐Ÿ’ป Paid online services (e.g. XiaomiTool) โ€“ fraud risk is high, but some services do remotely unlock for 500โ€“1000 โ‚ฝ.

Risks of informal methods:

  • ๐Ÿšจ Loss of loss IMEI (The phone will become a brick without communication).
  • ๐Ÿ”’ Blocking Xiaomi Account for Suspicious Activity.
  • ๐Ÿ’ธ Additional repair costs after unsuccessful manipulations.

๐Ÿ’ก

Before contacting the service, check whether your Mi 9 is not subject to an extended warranty. In 2026, Xiaomi will extend the lock warranty for devices purchased in official stores (for example, Mi Store or Messenger).

FAQ: Frequent questions about unlocking Xiaomi Mi 9

Can I unlock the Mi 9 without losing data?
Yes, but only if USB debugging was enabled and ADB is available, in which case you can delete password files (Section 4).
How much does it cost to officially unlock at Xiaomi Service Center?
Cost depends on the type of lock: Reset screen password: ~1 500 โ‚ฝ. Unlocking the Mi Account: ~2 500 โ‚ฝ (Proof of ownership required) Firmware recovery: from 3,000 โ‚ฝ. Prices are relevant for Moscow and St. Petersburg for 2026.
What if Mi Unlock Tool says "Wait 360 hours"?
This is Xiaomiโ€™s standard restriction for new accounts, which cannot be avoided โ€” you have to wait 15 days. To avoid this situation in the future, link your phone to your Xiaomi account in advance and confirm your phone number.
Can I unlock the Mi 9 through the Engineering Menu?
No. The engineering menu (#4636##) doesn't have options for resetting your password or bypassing your Mi Account. All of these "instructions" on the Internet are frauds.
Will the eSIM work after unlocking via Fastboot?
Yes, eSIM remains active because it is tied to the IMEI module, not to the firmware, but if you used the EDL Mode without authorization, the eSIM may be blocked.