Forgot the password from the phone Xiaomi: what to do

When you pick up your Xiaomi or Redmi and suddenly realize you can’t remember a digital code or a pattern lock, it causes panic.This is a common problem that many smartphone owners face, especially after a long weekend or a change in the rhythm of life.

Fortunately, the MIUI operating system and the newer HyperOS have several mechanisms for restoring access. A full reset via Recovery Mode is the only guaranteed way to unlock if you don’t remember either the Mi Account code or password. However, before resorting to drastic measures, it’s worth checking out more gentle options that can save your photos and contacts.

In this guide, we will take a look at all the current solutions in 2026, look at cloud services, computer usage, and standard system recovery tools, and act consistently to avoid complicating things and locking them down.

Using Mi Accounts to Remotely Unblock

If you have signed in to Mi Account and enabled Find Device, you have a great chance to restore access without losing data.This method only works if your smartphone is connected to the Internet via a mobile network or Wi-Fi. You will need any other device (a friend's computer, tablet or phone) with access to the network.

You need to go to the official website of the Xiaomi cloud service, and by entering your credentials, you will have access to the management of the smartphone remotely. In the device management menu, you should select the option “Unlock”. The system will send a command to the smartphone, and the lock screen will be temporarily removed or replaced.

This doesn't work if your phone is turned off or in flight mode, and it's also important that you activate the search function in advance in your security settings, and if you just changed your account password, the system may require you to wait 24 hours before you execute the unlock command for security reasons.

  • 🔐 Make sure the internet is on on the blocked phone.
  • ☁️ Go to i.mi.com from another device.
  • 📱 Select your device from the list in the Find Device menu».
  • 🚫 Click the “Unblock” button and wait for confirmation.

After successful unlocking, it is strongly recommended that you immediately change the lock password to a more memorable one or adjust biometric protection.Using a fingerprint or face unlock significantly reduces the risk of a recurrence of the situation in the future.

💡

Turn on Find Device right now if it's disabled. It's the only insurance against losing access to data without resetting.

Resetting settings via Recovery Mode

When remote unlocking is not possible, the only option is to force the factory reset, which will completely delete all user data: photos, contacts, messages and installed apps, and the phone will return to the state it was in when you bought it in the store.

To enter Recovery Mode, you need to turn off your smartphone completely. Then you need to press a certain combination of buttons. On most Xiaomi and Redmi models, this is simultaneous clamping of the volume button and the power button. Hold them until the Mi logo appears, after which the power button can be released, while continuing to keep the volume.

☑️ Preparing for resetting through Recovery

Done: 0 / 4

In the Recovery menu, you can navigate with volume buttons (up/down), and the power button confirms the choice. You need to find Wipe Data or Clear Data. After you select, confirm the action by selecting Wipe All Data. The process will take a few minutes, after which the phone will restart.

⚠️ Warning: After resetting, Android security will require you to enter a password from a Google account that was synced to the phone earlier (FRP). If you don’t remember the Google password, unlocking your phone will be extremely difficult.

Modern versions of HyperOS may have a slightly modified recovery menu interface, but the logic of the action remains the same: If the touch screen in Recovery mode does not work (which is normal for some versions), use physical buttons to navigate.

📊 What is most important to you in the smartphone?
Safeguarding personal photos
System speed
Camera quality
Autonomous time

Unlocking through Google’s Find My Device service

An alternative to Xiaomi’s branded service is Google’s standard device search and management feature, which is relevant if the phone has a Google account activated and geolocation enabled, similar to the Mi cloud, but using the search giant’s infrastructure.

You need to go to android.com/find from any browser. Sign in to the Google account that was used on the locked smartphone. If the device is online, you will see its location and action menu. Select the "Erase Device" option.

This command initiates a complete reset. Unlike the Mi Account, Google often doesn't offer the option to simply "unlock" but immediately goes to formatting, which is due to the strengthening of security policies in recent versions of Android.

MethodData retentionWe need the Internet.Difficulty
Mi AccountMaybe.Yes.Low.
Recovery ModeNo.No.Medium
Google Find MyNo.Yes.Low.
Service centreDepends.No.Tall.

If the phone is not connected to the network, the command will be executed as soon as it appears in the coverage area, the notification will be sent to the email associated with the account, which is a useful feature that allows you to remotely erase data in the event of loss of the gadget.

Use of USB and ADB debugging (for advanced ones)

This method is only suitable for those users who have pre-installed the USB debugging mode in the Developer Menu and installed ADB drivers on their computer, and if these were not done before locking, this method will not work.

Connect your phone to your PC through USB-Open the command line on your computer in the folder with the installed ADB. Enter a command to reboot to Safe Mode or delete files that store lock keys. However, on modern versions of Android, deleting the system files gesture.key or password.key often requires superuser rights (Root), which are not available by default.

adb shell rm /data/system/gesture.key


adb shell rm /data/system/password.key

Trying to execute these commands without root rights will result in a “Permission denied” error, so for the average user, this method is more theoretical than practical. However, on older versions of MIUI firmware, it sometimes allowed you to reset the pattern lock without losing data.

Why is ADB not working on new Android?
Starting with Android 6.0 and up, the /data partition is encrypted by default. Without unlocking the screen, access to the file system via ADB is closed even if debugging is enabled. This is done to protect data when a device is stolen.

There are also specialized utilities from third-party developers that promise to unlock through ADB. Be extremely careful: using untested software can lead to the installation of viruses or the final breakdown of the phone's software.

What to do if your phone requires an account after a reset

After you run Hard Reset through Recovery Mode, the first time you download it, the system will run FRP (Factory Reset Protection) security check. The welcome screen will ask you to enter a password from the Google account that was synced to the device before the reset.

This is a critical security issue: If you forget your Google account password, use the Google site re-access procedure from another device, and you will need to verify your identity through a backup email or phone number.

Entering the wrong password several times can temporarily block the ability to sign in. Don't try to guess the combinations endlessly. Better restore access to the account officially. If the account was deleted from the phone before reset (via Settings -> Accounts -> Delete), then FRP verification is not required.

⚠️ Warning: When buying a used Xiaomi phone, always check if the previous owner’s account is deleted. If you drop it, it will turn into a brick attached to someone else’s account, and it will be legally impossible to unlock it.

Sometimes there is a time sync error that makes it impossible to log in to your account, so if the interface allows, try setting the correct date and time manually in the appropriate welcome screen menu.

💡

FRP protection is an insurmountable barrier for thieves, but can be a challenge for forgetful owners.Always remember your Google account details.

Prevention and backup

To prevent a “forget password” situation from becoming a disaster, it is important to back up regularly. Xiaomi smartphones have a built-in “Mi Backup” app that allows you to save settings, messages, call logs and application data to a memory card or to the cloud.

Set up automatic sync of contacts and photos with Google Photos and Google Contacts. This will take a couple of minutes, but save thousands of your memories if you need to reset. It is also useful to write complex passwords in a paper notebook or use a password manager that does not require access to the main screen (for example, through a master password).

Check your Mi Account status regularly, make sure that the phone number and email you have on your profile are up to date and accessible, making it easier to restore access to cloud services at a critical time.

  • 📸 Set up autoload photos in Google Photos or Cloud Mi.
  • 📝 Write it down. PIN-SIM card code and password from the screen to a safe place.
  • 🔄 Once a month, make a full backup to your PC or flash drive.
  • 🔒 Use biometrics (fingerprint/face) as your primary, not your only, method of protection.

Adhering to these simple digital hygiene rules will make you feel confident. Even if you forget the code, having a fresh backup will turn a nasty reset procedure into a minor inconvenience, not a data loss tragedy.

Frequently Asked Questions (FAQ)

Can I unlock Xiaomi without losing data?
Yes, this is only possible in one case: if the phone has enabled Mi Account with the function "Find the device" and the phone is connected to the Internet, through i.mi.com you can remotely unblock, in all other cases (forgot the password from the account, offline phone), the data will not be saved due to encryption.
What if the phone says “Device locked”?
This means that the theft protection is working, you need to enter the username and password from the Mi Account or Google account that was on the device, and if you do not remember them, you will need to contact the official Xiaomi service center with a check of purchase to confirm ownership.
Will the phone reset if you enter the password incorrectly 5 times?
After 5-10 failed attempts, the phone will temporarily block the input for 30 seconds, then for 5 minutes, then for an hour. Full lock with a requirement for a Google/Mi Account usually occurs after many attempts or forced reset buttons.
Will the phone be able to remove the lock?
No. FRP (Google Lock/Mi Lock) protection is embedded in the server part and is tied to a unique device identifier. Flashing or replacing system files will not remove the requirement to enter an account, since verification occurs when you first start after a reset.