How to Reset Your Xiaomi Phone Password If You Forgot: The Complete Guide

When you pick up your Xiaomi and find yourself unable to log in, many users are familiar with the situation: a forgotten pattern lock, a digital code, or a complex alphabetic password can be a serious barrier to accessing important data and applications. Often the reason for blocking is accidental taps in your pocket or simply human forgetfulness after a long period of using another device.

Fortunately, MIUI and Android hardware offer several proven ways to address this problem, depending on your smartphone model, firmware version, and pre-binding accounts, the effectiveness of the methods can vary, and we will look at the most effective options, ranging from standard recovery features to more radical measures.

It is important to understand that most unlocking methods involve the complete removal of user data. Recovery menu resets guaranteed to delete all photos, contacts and applications if backup to the cloud was not performed. So before starting any manipulations, it is worth weighing the risks and trying to remember the combination again, using the hints if they were configured.

Using Mi Cloud to Remotely Unlock

The most civilized and secure way to restore access to the device is to use the Mi Cloud service, which only works if the locked phone has logged in to the Mi Account and enabled the Find Device function, and it is also critical that the smartphone is connected to the Internet via a mobile network or Wi-Fi.

To do this, you'll need any other gadget that's connected to the network, go to the company's official cloud service website, enter your credentials, wait for the sync, and if the device is online, you'll see it on the map and have access to management.

In the management interface, select the option to lock or clear data. The "Block" function allows you to set a new temporary password that will replace the forgotten one. If this option is not available, use the "Erase" command, which will delete all data and remove protection.

  • πŸ” Account login must be done in advance before blocking.
  • πŸ“‘ The device must have an active connection to the Internet.
  • ☁️ The β€œFind the Device” function must be activated in the settings.
  • πŸ“± Access to another computer or smartphone is required.

πŸ’‘

If your phone is not connected to Wi-Fi, try sending an SMS with #miui#unlock# (on older versions of MIUI) to activate the data transfer.

Once the command is executed on the server, the phone will receive the signal and perform the desired action, which can take from a few seconds to a couple of minutes depending on the quality of the connection, and if the smartphone was turned off, the command will be executed immediately after it is turned on and the network appears.

Resetting settings via Recovery menu

If cloud services don’t help or have not been set up, the Recovery Mode system recovery menu comes to the rescue, which loads independently of the operating system and allows you to perform low-level operations, including formatting the partition with user data.

To enter this mode, you need to turn off your smartphone completely. Then press the button combination: usually a volume button and a power button. Hold them until the Mi logo appears, then release the power button, while continuing to keep the volume.

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 4

In the menu, the navigation is done with volume buttons (up/down), and the choice is confirmed by the power button. You need to find Wipe Data or Clear Data. In some versions of firmware, you first need to select the interface language.

⚠️ Note: Once you select the Wipe All Data option, you will be prompted to confirm the action several times. There is no return path, the process will start automatically after the final confirmation.

The cleaning process takes 10 to 30 seconds, and when completed, the system will prompt you to return to the main menu (Back to Main Menu) and select Reboot. The first start after a reset may take longer than usual, as the system creates new configuration files.

Xiaomi modelButton combinationFeatures of the entrance
Redmi Note 9/10Volume + and NutritionWe need to hold it to vibration.
Xiaomi Mi 11/12Volume + and NutritionConnection required USB-cable
POCO X3/X4Volume + and NutritionStandard entrance without features
Xiaomi Mi 9/10Volume + and NutritionSometimes a PC connection is required
What to do if the Recovery menu does not open?
If the standard combination doesn’t work, try connecting the phone turned off to your computer via a computer. USB-And then you press the buttons, and on some models, it's a prerequisite for you to go into recovery mode.

Unblocking through Google Account

On devices with Android version below 5.0 (which is rare for modern Xiaomi) or on some specific firmware, there was a method of resetting through a Google account, the essence was five times incorrectly entering the password, after which the β€œForgot the password?” button appeared.

Modern versions of Android Security have almost completely eliminated this option for security reasons.However, if your phone hasn't been rebooted after locking, sometimes the system may offer to unlock through a fingerprint or Face ID, even if you've forgotten the digital code.

Try entering the wrong password several times. If a wait timer appears, this means that the protection is active. In rare cases, if the device is debugging over USB and special rights are set, you can try to delete key files via ADB, but this requires pre-setting.

  • πŸ•’ The lock timer increases with each error.
  • πŸ‘† Biometrics can work without entering a password.
  • πŸ”Œ Method ADB requires the debugging in advance.
  • 🚫 On the new versions MIUI The method is not working through Google.

It's not a basic method, but rather a complete picture, because in today's security environment, it's almost useless to the average user without specific programming skills.

Use of the Smart Lock function

Smart Lock is a handy tool that allows you to keep your device unlocked under certain conditions, and if you set this up in advance, you can get into your phone by fulfilling one of the predefined conditions without even entering a password.

For example, you can set up unlocking when the phone is near a trusted Bluetooth device (earphones, watches or car). Just turn on the Bluetooth gadget and bring it to the smartphone – the screen must unlock.

πŸ“Š Do you use biometrics to unlock?
Fingerprint.
Facial recognition
Just a password.
Mixed type

Another option is Safe Places, and if your phone remembers your home address or your place of work through GPS, it can automatically unlock when you're in that geo-fence, and check if you're in pocket or body mode, which can also make it easier to access.

⚠️ Warning: Smart Lock reduces overall security, an attacker who gains access to your trusted Bluetooth device could potentially unlock your phone.

If none of the conditions are met, this method won't help. However, if you have a Mi Band or Amazfit smartwatch connected to your phone, try plugging it in. Sometimes it's the only way to save the situation without losing data.

Reset via computer and ADB (for advanced)

For users who have previously enabled debugging mode USB (USB Debugging) in the Developer menu, there is a technical way to delete the lock files. This method requires a computer, installed drivers. ADB Basic knowledge of working with the command line.

Connect the locked phone to the PC through quality USB-Open the command line on your computer in the tool folder. ADB. Enter the command to check the connection: adb devices. If the phone displays a message about debugging permission and you have time to confirm it, the device will appear in the list.

adb shell rm /data/system/gesture.key


adb shell rm /data/system/locksettings.db




adb shell rm /data/system/locksettings.db-wal




adb shell rm /data/system/locksettings.db-shm

After these commands are executed, the files that store the password and pattern lock hashes will be deleted. Reboot the device. The password should disappear, but the data will remain intact. This method does not work if the phone requires you to enter a password immediately after you turn on (before the system boots).

πŸ’‘

The ADB method is only effective if USB debugging was enabled before locking and the computer was previously authorized as a trusted one.

If the adb device command shows the device as unauthorized, you can’t unlock it without resetting the data, in which case you only have to return to the factory settings through Recovery, described above.

Prevention of blocking and data retention

To avoid the problem of loss of access in the future, it is important to regularly carry out preventive measures, first of all, this concerns the setting of backup. Xiaomi smartphones have a built-in tool for creating backups on the backup of the smartphone. SD-map.

Go to settings, find About Phone or Advanced Settings, and select Reservation and Restore. Set up automatic copy creation once a week to save your contacts, SMS, call history, and app settings.

  • πŸ“… Set up your autoback once a week.
  • ☁️ Use Mi Cloud or Google Drive.
  • πŸ’Ύ Duplicate important photos on your computer.
  • πŸ“ Write complex passwords in a notebook.

It is also recommended to link the phone to a Google and Mi Account. This will not only help to find the device in case of theft, but also allow you to quickly restore contacts and settings on the new gadget.

⚠️ Note: Backups made to the memory card can be read by other devices. If the phone is lost, the finder can access your data through the card.

Regularly checking your accounts is also a good idea, so make sure you remember the password from the email that your phone is attached to, which is a key element in restoring access to the digital world.

Frequently Asked Questions (FAQ)

Will the phone drop after the flash?
Yes, flashing a device (installing a new version of MIUI) almost always means cleaning a data partition completely, similar to resetting a device with Recovery, and you can only flash a phone without losing data with special tools and superuser rights, which is difficult for the average user.
Can I unlock my phone without losing my photo?
Without losing a photo, unlocking a modern Xiaomi smartphone if you forget your password and don't configure the Mi Cloud is almost impossible. The data encryption system is tied to the lock password. The only chance is logging in via Mi Cloud (remotely) or using Smart Lock if they were configured in advance.
What to do if the phone asks for a Mi Account after a reset?
This is Mi Account Lock, and when you reset your settings, your phone will require you to enter the username and password from the account that was on it before the reset, and if you don't remember that, you can't legally unlock the device, you'll need to contact the service center with a check to buy it.
Will the reset work if the phone is turned off?
Recovery itself is only possible on a phone that is turned off. However, if you try to unlock it remotely through a site, the phone must be turned on and connected to the Internet. If the phone is turned off, the remote command will be executed as soon as it turns on and goes online.