Forgetting your smartphone password is a frustrating situation, but itβs not a hopeless one, especially if youβre talking about the Xiaomi Mi 9, a 2019 model thatβs still popular thanks to its powerful hardware and up-to-date firmware, and the key is not to panic or try to find a combination at random: after 5-10 failed attempts, the system will lock the device for 30 minutes, and then it can erase all the data altogether.
In this article, we will discuss all the working ways to unlock the Mi 9, from the simplest (via the Mi Account tied) to the radical (Hard Reset via Recovery). Importantly, some methods require prior preparation (for example, enabled debugging over USB), so first check what conditions are met on your device. If the phone is discharged, first charge it to at least 20% to avoid crashes during the procedure.
Spoiler: If you've never set up Find My Device or connected the Mi 9 to a Xiaomi account, the chances of saving data are minimal, but even then you can unlock the device -- you just have to sacrifice personal files.
1 Unlocking with Mi Account (if the phone is connected to the Internet)
The safest and fastest way is to use Xiaomiβs official βForgot Password?β feature, which works if:
- πΆ The phone is connected to a mobile network or Wi-Fi (even if the screen is locked).
- π The device has a Mi Account (you have previously logged in).
- π§ You have access to an email or phone number linked to your account.
After 5 unsuccessful attempts to enter the password on the lock screen will appear button Forgot the password?. Click on it and follow the instructions:
- Enter the email or phone number associated with the Mi Account.
- Confirm your identity via SMS or code letter.
- Reset the password and set a new one.
If you have forgotten your password? No, try to type in any password 5 times in a row, it should appear. Importantly, this method only works when the Internet connection is active. SIM-No map, go to other ways.
π‘
If you donβt remember whether Mi Account is linked to your phone, try entering any password 5 times β the system can show your accountβs email on the lock screen.
2.Reset via Find My Device (remote unlock)
If the Mi 9 is linked to a Xiaomi account but the buttons Forgot the password? no, you can try remote unlocking via Find My Device. This method is suitable even if the phone is not currently connected to the Internet - the reset command will be executed the first time you connect to the network.
Instructions:
- Go to i.mi.com and log in to your Mi Account.
- In the list of devices, select Xiaomi Mi 9.
- Press Find the device. β Delete the data.
- Confirm action. The phone will be reset to factory settings the next time it connects to the Internet.
β οΈ Warning: After remotely unlocking, all data on the phone will be erased, including photos, messages and installed apps, and can only be restored from a backup (if it was created earlier).
If the Mi 9 is not displayed in the list of devices on the site, then:
- π The phone is not tied to the account.
- π΅ The device has not been connected to the Internet for a long time (more than 30 days).
- π You logged in to another Mi Account after the last sync.
3. Hard Reset via Recovery Mode (full reset)
If previous methods didnβt work, the radical way is to use Hard Reset, which erases all data on the phone but is guaranteed to unlock it, and is suitable for the Xiaomi Mi 9 on any firmware (including MIUI 12/13/14).
Step-by-step:
- Turn off the phone (press the power button for 10 seconds).
- Press the Power button + Volume up at the same time and hold for 10-15 seconds until the Mi logo appears.
- Release the buttons and you will be taken to the Recovery Mode menu.
- Use volume buttons for navigation and power button for selection.
- Select Wipe Data β Wipe All Data β Confirm.
- After reset, select Reboot β Reboot to System.
The phone will reboot and suggest that you set it up as new, and at this point, you can set a new password.
Turn off the phone.|Clutch power. + Loudness up|Wait for the Mi logo|Select Wipe Data|Confirm discharge-->
β οΈ Note: Some Xiaomi Mi 9 firmwares may require data entry from the previously tied Mi Account after Hard Reset (protection) FRP). If you don't remember your username/password, your phone will remain locked. ADB or Fastboot.
| Unlocking method | Internet is required | Data retained | Difficulty |
|---|---|---|---|
| Mi Account ("Forgot your password?" button) | β Yes. | β Yes. | β |
| Find My Device (Remote Reset) | β Yes. | β No. | ββ |
| Hard Reset via Recovery | β No. | β No. | ββ |
| ADB (if debugging is enabled) | β No. | β Yes. | βββ |
| Fastboot (firmware) | β No. | β No. | ββββ |
4. Unlock via ADB (if USB debugging is enabled)
If Xiaomi Mi 9 was previously included debugging USB (Settings β The phone. β Version. MIUI β You can reset your password 7 times to activate the developer mode without losing data. ADB and Fastboot.
Instructions:
- Connect your phone to your PC through USB-cable.
- Open the command line (Win + R β enter cmd).
- Enter the commands in order: 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
- After resetting, the password will be reset.
If the su command doesnβt work (no root rights), try an alternative method:
adb shell am start -n com.android.settings/.ChooseLockGenericThis command will open a password change menu where you can set a new one.
What if the ADB canβt see the device?
5. Firmware via Fastboot (for power users)
If none of the previous methods worked, you can still play the Mi 9 through Fastboot mode, which is suitable for cases where:
- π Phone locked after Hard Reset (requires Mi Account).
- π± Debugging by USB switched off.
- π§ We need to install custom firmware.
You'll need firmware.
- π» Computer with installed ADB and Fastboot.
- π Official firmware for Xiaomi Mi 9 (download on the Xiaomi website).
- π Cable USB (preferably original).
Step-by-step:
- Turn off the phone and press Power + Volume down to log into Fastboot Mode.
- Connect the Mi 9 to your PC and open the command line.
- Check the connection command: fastboot devices (should display the serial number of the device).
- Unpack the downloaded firmware and launch the file flash_all.bat (for Windows or flash_all.sh (for macOS/Linux).
- Wait for the process to be completed (5-10 minutes).
β οΈ Note: Fastboot removes all data and can lead to loss of warranty if unofficial software is used. There is also a risk of "bricking" the phone when the process is interrupted. If you are not sure about your actions, contact the service center.
π‘
Fastboot firmware is the most reliable way to unlock, but it requires technical skills. If you've never worked with ADB, you'd better trust a specialist to do it.
6. Contact the Xiaomi Service Center
If all independent attempts to unlock the Xiaomi Mi 9 were unsuccessful, you can contact the official service center.
- π Phone locked after Hard Reset (requires Mi Account that doesn't exist).
- π The device does not turn on or hung on the Mi logo.
- π οΈ You need a flashing warranty (for example, after an unsuccessful attempt to install custom software).
The service centre may:
- π Reset the lock through special software (if you confirm the ownership of the property).
- π₯ Recover data (in some cases).
- π§ Refuse the phone with a guarantee.
The cost of the service varies from 500 to 2000 rubles depending on the complexity. Xiaomi official centers are in all major cities - addresses can be found on the support site Xiaomi.
Before your visit, do not forget to bring:
- π Check or box from the phone (to confirm the purchase).
- π Passport (may be required to identify the owner).
- π Charged device (if it reacts to charging in any way).
Frequent Mistakes and How to Avoid Them
When trying to unlock the Xiaomi Mi 9, users often face typical problems, and here are the most common ones and ways to solve them:
Problem 1: After Hard Reset, the phone asks you to enter data from a Mi Account that is not available.
Solution: If you don't remember your username/password, try re-establishing access through Xiaomi's website. If your account isn't yours (e.g., a handheld phone), contact the previous owner or contact the service - they can unlink the serial number.
Problem 2: The computer doesnβt see the phone in Fastboot or ADB mode.
Solution: Install Xiaomi drivers manually via Android SDK Or use the Mi Flash Tool. Try another one. USB-cable or port (better) USB 2.0).
Problem 3: The phone doesnβt go into Recovery Mode (hangs on the logo).
Solution: Try to pin Power + Volume up for 20 to 30 seconds. If it doesn't work, plug your phone into charging for 10 minutes, then try again. At last, use emergency EDL (requires special cable).
Problem 4: After the firmware, the phone does not turn on (black screen).
Solution: You probably didn't install the firmware correctly. Try repeating the process with a different version of the software or contacting the service. Don't try to stitch your phone several times in a row, it can damage your memory.
π‘
If the Mi 9 starts to slow down after unlocking, reset to factory settings again via Settings β Additional β Restore and Reset. This will help to clear the residual files from the old firmware.