Forgot the password on Xiaomi: how to unlock the phone and return access

The situation when the owner of Xiaomi forgets the pattern lock or digital pin code is quite common. The lock screen is a reliable barrier that protects personal data from prying eyes, but it becomes an insurmountable obstacle for the owner. The modern Android operating system, on which the MIUI shell runs, is designed to make unauthorized access as difficult as possible, which often leads to the need for a complete reset of the device.

Restoring access depends on several critical factors: the operating system version, the presence of a Mi Account and the enabled feature Find Device. It is important to understand that in most cases, if you forget a complex password, you will not be able to save photos and contacts on the phone without prior synchronization.

Before you start taking action, you need to assess the scale of the problem and prepare tools. There are several ways to get around the lock, ranging from mild methods through cloud services to hard reset through the Recovery engineering menu. The specific path depends on which security settings were activated on your smartphone before the lock.

Preparation for the procedure of unlocking the device

The first step before any security manipulation is to check for backups. If you've used Google or Xiaomi Cloud, most of your data is already stored, and you can check this by logging in from another device via your browser. If you don't sync, you can lose your internal memory once you reset.

You also need to make sure that the battery is sufficiently charged: Reset and reboot processes require stable power supply. If the device runs out at the time of system partition formatting, this can lead to software errors and the need to flash through the computer. The optimal charge level is considered to be above 50%.

☑️ Preparation for unlocking

Done: 0 / 4

You should also prepare a computer with Internet access. While many operations can be performed directly on your smartphone, having a PC at hand will allow you to quickly access account recovery services or download the necessary utilities if standard methods do not work.

⚠️ Note: All of the following methods related to resetting result in the complete deletion of user data.Photos, contacts and applications will be erased if they are not synced to the cloud.

Using a Mi Account to Reset a Password

The most civilized and safe way to unlock Xiaomi if you forget your password is to use the remote management function through the Mi Cloud site. This method only works if the locked phone has logged in to the Mi Account and activated the "Find the device" option.

To start, go to i.mi.com from any available device (computer or other phone) and enter your credentials. If the system requires a confirmation code that must come to a locked phone, this method is unfortunately not suitable, since you can not access messages. If the login is successful, select the menu item "Find device".

In the interface that opens, select a model of your smartphone from the list of connected gadgets. Among the actions available is the Unlock button or the Wipe Device button. Pressing this button will send a command to the phone, which will forcefully reset the pattern lock and digital pin code, and then the device will reboot, and you can install new protection.

What to do if Mi Cloud says "Device Offline"?
This means that the phone has no Internet access, so remote reset is not possible until the device is connected to the network. If the phone is at home, try connecting to the same Wi-Fi network from another device, sometimes the router can cache the connection, but most often you will need a method with Recovery Mode.

It is important to note that after this unlock, the security system may require re-entering the password from the Mi Account on the first download, a standard anti-theft procedure known as FRP lock (Factory Reset Protection). Without knowing the account data, you will not be able to use the phone, so make sure to remember your logins and passwords.

Resetting with Recovery Mode (Hard Reset)

If you can't access cloud services, the only option is to use Recovery Mode, which is built into the software of every Android smartphone and allows you to perform low-level operations, such as factory resets.

The login procedure may vary slightly depending on the model, but the classic algorithm for most Xiaomi and Redmi is this: First, you need to turn the device off completely. Then press both the volume button and the power button at the same time. Hold them until the Mi logo appears, after which the power button can be released, continuing to hold the volume.

When the Recovery menu appears on the screen (usually black with orange or blue elements), the volume buttons (up/down) control the selection and the power button confirms the choice. You need to find the Wipe Data or Wipe & Reset item. After selecting this item, the system can request a confirmation or enter a confirmation code if additional protection is enabled.

💡

If the Recovery menu does not appear when you press the buttons, try connecting the phone turned off to the charged computer through a standard button. USB-cable and then press the buttons.

Once you select the reset point, the system will alert you to the loss of data again. Confirm the action by selecting Wipe All Data or Confirm. The formatting process will take from a few seconds to a couple of minutes. Once complete, select Reboot or Reboot to System. The phone will reboot as new, with no passwords or user information.

Action in RecoveryFunctionRisk of data loss
RebootA normal reboot.No.
Wipe DataResetting user dataComplete (100%)
Connect with MIAssistantConnecting to a PC for firmwareDepends on the action.
Safe ModeStarting with Basic DriversNo.

⚠️ Attention: On new versions MIUI (particularly MIUI 12, 13, 14 and HyperOS) when you try to reset through Recovery, you may need to enter a password from your Mi Account, which is designed to protect against theft. If you don't remember your account password, it will be extremely difficult to unlock your phone using official methods.

📊 Have you experienced a Mi Account lockdown after a reset?
Yeah, I remember the password.
Yeah, I forgot my password.
No, there was no account.
I don't know what it is.

Unlocking through Google’s Find My Device service

The method works similarly to the Mi Cloud, but requires that the device has an active Google account and enabled geolocation. In recent years, Google has abolished the function of direct resetting the screen password through the web interface for new versions of Android for security purposes, but the ability to remotely clean the device (Wipe Device) is retained.

To use this method, go to android.com/find and log in to the same Google account that was used on the locked phone. The system will try to locate the device. If the phone is online, select the "Erase Device" option from the control menu.

This action initiates a complete reset, similar to Hard Reset, but remotely. Once the procedure is complete, the phone will return to factory status. When you first set up, you will need to enter your Google account to confirm the owner's rights (FRP protection), which is effective if the buttons on the phone do not respond or the screen is broken, but there is a connection to the network.

It's worth noting that the reset command will only be executed when the phone can connect to the server. If the device is in flight mode or without a SIM card, the command will queue up and execute the first time the network appears, so if you reset your password but the phone is not responding, check the status of the device on the site later.

Using Fastboot and PC for Advanced Users

For users with technical knowledge, there is a method of unlocking via Fastboot mode and computer, a method often used if the standard Recovery menu is damaged or locked. Fastboot is a protocol that allows you to interact with the phone's memory directly from the PC.

To get into this mode, when the phone is turned off, press the volume button and connect it. USB-The screen should show a hare in a hat-eared, repairing the android, and the inscription FASTBOOT. Drivers will be required to work ADB/Fastboot Mi Flash Tool or similar command line tools.

fastboot erase userdata


fastboot erase cache

Executing these commands in the console will clear the partitions with user data and cache. However, modern versions of MIUI often block the execution of cleaning commands via Fastboot if the bootloader is locked. Unlocking the bootloader requires a preliminary application to Xiaomi and waiting (7 to 30 days), which in the situation “here and now” will not help.

💡

The Fastboot method is only effective when the bootloader is unlocked. On standard phones with BL blocked, data erasure commands may not be executed.

However, trying to get into this mode is useful for diagnosis: If the phone doesn’t respond to the volume and power buttons, but it’s included in the Fastboot, then the hardware is intact and the problem is purely software. In some cases (rarely) cleaning the cache through the Fastboot could help with software failures of the screen locker, but on current versions of Android it’s more of a way to clean it completely.

What to do if FRP (Google Lock) is working

After a successful reset, you may encounter an activation screen where the system will require you to enter a Google account that was synced to the device earlier. This is FRP (Factory Reset Protection) mechanism, which is designed to make the stolen phone useless to the attacker after the reset.

If you remember Google's login and password, just type them in. If you forget that, it gets complicated. Google doesn't officially provide tools to bypass that protection without your account data. But there are workarounds that depend on the Android version and the security patch.

  • 🔑 Trying to restore access to your Google account from another device is the most reliable option.
  • 📱 TalkBack: On some older versions of Android, you can call your browser and reset your account through the special features menu, but this method has long been closed.
  • 💻 Firmware via Mi Flash in Clean All mode (requires an unlocked bootloader) completely removes the account binding, but it is a complicated procedure.

It's important to understand that buying handsets without FRP is a risk, and if the previous owner hasn't untie the device from their account, you'll get a brick. If you have your own phone, the way out is to remember the data or go through the account recovery process through Google Support.

⚠️ Please note: Do not trust services that offer "unblocking" FRP 5 minutes remotely. Often they are scammers, or they exploit vulnerabilities that will be closed in the next security update, which can lead to unstable operation of the phone.

Prevention and backup

To avoid the “forgetting password” situation from being taken by surprise in the future, you need to set up your security system correctly. First of all, make sure that the device is synchronized. Go to Settings → Mi Account → Xiaomi Cloud and activate saving contacts, messages, notes and galleries.

Alternative unlocking methods are also recommended. Biometrics (fingerprint, facial recognition) are convenient, but it does not replace the entire pattern lock. Periodically enter a digital password so you don't forget it. You can write a complex pin code to a safe place (for example, in a paper notebook or password manager on a PC), but do not store it in the notes of the phone itself.

Check your device’s association status regularly. Go to the Mi Account settings on the site and make sure your current phone is displayed on the trusted device list, ensuring that you can use the remote control feature in an emergency.

💡

Use the Smart Lock feature in Android security settings, which lets you keep your phone unlocked when it’s at home (connected to your home Wi-Fi) or next to your smartwatch.

Remember, data security is a balance between usability and security: passwords that are too simple are easy to pick up, and passwords that are too complex are easy to forget, and the best way to do that is to use a medium-complexity pattern combined with the mandatory synchronization of important data in the cloud.

Frequently Asked Questions (FAQ)

Can I unlock Xiaomi without losing data?
Officially, no, unless you forgot your password and enabled USB debugging in advance. Third-party programs that promise to save data are 99% fraud or viruses, as modern Android encryption protocols do not allow you to bypass the lock screen without authorization.
What if the phone says "Device locked" after resetting?
This is FRP protection. You need to type in the Google account that was on your phone before the reset, if there were multiple accounts, any of them will do, and if you don't remember the data, you have to restore access through Google Support.
How long does it take to reset through Recovery?
The process of formatting itself takes from 1 before 5 The first load after the reset can last up to 10-15 minutes as the system optimizes applications and checks files.
Will a phone call help to unlock?
On very old versions of Android (up to 5.0), there was a bug that allowed you to get into the settings through the call menu. On modern Xiaomi with MIUI 10 and above, this method does not work, since the call interface is isolated from the security system.
Do I need the internet to reset my password?
For the Mi Cloud or Google Find My Device method, you don’t need to use the Internet for Hard Reset buttons, but you will need it immediately after the reboot to verify the owner’s account (FRP).