The situation when the owner of a smartphone Xiaomi or Redmi forgets the pattern key or digital pin code occurs quite often. This can happen after a system update, a long period of inactivity, or a simple typing error. Access to personal data, photos and instant messengers is blocked, which causes natural panic. However, modern shells MIUI and HyperOS provide several legal ways to restore access.

Before taking radical measures, such as a complete reset of settings, it is necessary to assess the risks of information loss. Some methods allow you to save contacts and media files, while others require you to completely wipe your device's memory. The choice of a specific method depends on whether the account has been previously configured Mi Account, whether USB debugging is enabled and what version of the operating system is installed on the gadget.

In this article we will analyze in detail all the available unlocking options, from the most gentle to the drastic. We will look at working with the manufacturer's cloud service, using recovery mode Recovery, as well as specialized software for PCs. It is important to understand that data security in Android 11 and higher has been significantly enhanced, so some old methods may no longer work.

Using the Mi Cloud service for remote unlocking

The most civilized and safest way to restore access to the device is to use the official cloud service from the manufacturer. This method will only work if a number of conditions are met: the smartphone must be turned on, connected to the Internet (via Wi-Fi or mobile network), and the “Find my device” function must be activated in the settings. If these requirements are met, you can control the lock remotely.

First, you need to go to the official website i.mi.com from any other device, be it a computer or another smartphone. You will need to log in using the same Mi Accountname that was used on the locked phone. After logging in, go to the Find Device section. The system will try to determine the location of your gadget and display it on the map.

In the device management menu you will see several options, among which we are interested in the “Lock” or “Unlock” function. In some versions of the interface, the “Erase Data” button is available, which also removes the password, but deletes all information. If the option to change the password is available, you can set a new code remotely and it will be applied on the phone automatically.

⚠️ Attention: If you have not signed into Mi Account on your device or the search function is disabled, this method will not work. Also, remote unlocking is not possible if the phone is turned off or in airplane mode.
What to do if the site does not see the device?

If the service shows that the device is offline, try sending a command to unlock or delete data. The command will be executed automatically as soon as the phone connects to the Internet. Do not close the browser page until the command is executed.

Resetting settings via Recovery mode

If the cloud service is unavailable, the only working option is to force a factory reset through the menu Recovery. This process completely erases all user data, including photos, contacts, apps and settings, returning the phone to its out-of-the-box state. The password will be removed.

To enter recovery mode, you must completely turn off your smartphone. Then hold down the Volume Up button and the Power button at the same time. Hold them until the logo Redmi or Xiaomiappears, then release the power button, but continue to hold the volume. The main recovery menu will appear on the screen, controlled by the volume buttons, and the choice is confirmed by the power button.

In the menu, select the item Wipe Data, and then confirm the action by selecting Wipe All Data. The system will ask you to confirm the operation, often requiring you to enter the word “yes” or click a confirmation button. Once the cleaning process is complete, select the option Reboot to reboot the device. The first boot after the reset may take several minutes.

☑️ Preparing to reset via Recovery

Completed: 0 / 4

It is worth noting that on modern versions of Android with data encryption enabled, after such a reset the device may ask for owner confirmation. This is protection against theft: the phone will require you to enter a password from a previously synchronized Google account or Mi account. Without this data, it will be impossible to use the phone even after a reset.

💡

Resetting via Recovery is the only way to remove the password without access to the Internet on the phone itself, but it guarantees complete loss of unsaved data.

Unlocking using the Mi Unlock Tool

For more advanced users who have access to a computer, there is an official utility Mi Flash Unlock. This tool is designed primarily to unlock the bootloader, but during this procedure a complete data wipe is performed, which effectively removes the forgotten password. However, this method has its strict limitations.

The main obstacle is the need to wait. After linking the device to the Mi account on the phone and applying for unlocking, Xiaomi servers impose a waiting timer. Typically it ranges from 72 hours to 168 hours (7 days). An attempt to bypass this restriction may lead to account blocking or increased waiting period.

The process is as follows: download and install the Mi Unlock app on your PC. Put your phone into Fastboot mode (by holding down the volume down and power buttons while the device is turned off). Connect your phone to your computer using the original USB cable. In the app, click the “Unlock” button. If the account status allows, the unlocking and cleaning process will begin.

Parameter Value / Requirement Note
Account status Linked to device You need to add an account in the phone settings in advance
Waiting period from 3 to 7 days Depends on the region and account history
Connection mode Fastboot Login through the Volume buttons (-) + Power
Data loss 100% All files will be permanently deleted
⚠️ Warning: Unlocking the bootloader will void the device warranty in some regions and reduces overall system security, making the phone more vulnerable to malware.

Using the Find My Device service from Google

An alternative to the Xiaomi branded service is the standard solution from Google - Find My Device. This method works similar to Mi Cloud, but uses the search giant's infrastructure. The effectiveness of this method directly depends on whether the device is logged into a Google account and whether geolocation is enabled.

Go to the page android.com/find and log in to your Google account. If the phone is online, you will see it on the map. There are three functions available in the side menu: “Ring”, “Block” and “Wipe device”. We are interested in the last point. Pressing the Clear button initiates a remote factory reset.

It is important to understand the difference between a lock and a reset. The “Lock” function allows you to set a new temporary password that will replace the old pattern. However, on newer versions of Android, this feature often requires prior configuration and may not work if the screen is already locked with an unknown code. Resetting is guaranteed to remove the protection, but at the cost of deleting files.

💡

If the phone is roaming or abroad, make sure that your Google account settings allow data transfer in the background, otherwise the reset command will not reach the device.

After sending the command to clear, the phone will reboot and begin the process of deleting data. Once it is completed, the device will be ready for initial setup. You will need to enter the password for the Google account that was the main one on the phone before the reset, as part of FRP protection (Factory Reset Protection).

What to do if FRP protection (Google Lock) worked

After performing a Hard Reset through buttons or services, modern Xiaomi smartphones activate the FRP protection system. This is a mechanism to prevent a stolen phone from being used after a reset. When setting up for the first time, the system will require you to enter the login and password for the Google account that was synchronized with the device before it was blocked.

If you remember your account details, the problem can be solved by simply entering your email and password. However, if you forgot them too, the situation becomes more complicated. It is impossible to officially restore access without this data. Attempts to bypass FRP using third-party apps often lead to unstable system operation or complete bricking of the device.

  • 🔑 Try to recover your Google account password through any browser on your computer, using your phone number or backup email.
  • 📞 If the phone was purchased second-hand and has someone else's account on it, contact the seller to obtain data or remove the blocking.
  • 🧾 If you have a receipt for the purchase of the original device, you can contact an authorized Xiaomi service center to remove the blocking.

You should not trust dubious videos on the Internet that promise “magic” codes to enter into an emergency call. On current versions of MIUI 13, 14 and HyperOS firmware, most of these vulnerabilities are closed. The only reliable way is to restore access to your account through the official Google procedure.

📊 Have you encountered FRP blocking after a reset?
Yes, I forgot my Google password
No, I remembered all the data
I don’t know yet, only studying
Went through the service center

Prevention of blocking and security tips

In order not to find yourself in a situation where access to the phone is impossible, you should take a number of preventive measures in advance. Regularly backing up your data to the cloud means you don't have to worry about having to reset your settings. Setting up a biometric unlock (fingerprint or face unlock) duplicates the pattern and makes it easier to log in.

Write down your pattern or PIN in a safe place, inaccessible to others, but accessible to you in case you forget. This could be a paper notepad or a password manager on your computer. It is also recommended to periodically check the status of linking your Mi account and Google account in the device settings.

⚠️ Attention: The settings interface and menu item names may vary slightly depending on the MIUI version and regional firmware (Global, China, EEA). Always check the latest menus on your device.

Using third-party lock screen apps downloaded from untrusted sources may cause conflicts with Android security. It is better to use standard protective equipment provided by the manufacturer. They are integrated at a deep system level and provide the best balance between convenience and security.

💡

Regular synchronization of contacts and photos with the cloud is the best insurance against data loss when forced to reset your password.

Frequently asked questions (FAQ)

Is it possible to reset the password on Xiaomi without data loss?

Officially - no, if you forgot the password itself and did not set up remote control via Mi Cloud in advance. All methods that involve entering the Recovery menu or using third-party software lead to the complete deletion of user data. The only chance to save data is to remember the password or use the password change function via Mi Cloud, if it is available in your firmware version.

What is a Mi account and why do you need it when unlocking?

Mi Account is a single account for the Xiaomi ecosystem. It is required to use cloud services, themes, device search and data synchronization. When you try to reset the settings or unlock the bootloader, the system checks for the presence of this account to confirm the rights of the owner of the device, which is a measure of protection against theft.

Will a reset via Recovery work if the phone does not turn on?

If the phone does not turn on due to a software error or stuck on the screensaver, logging into Recovery may work and allow you to reset. However, if the problem is hardware (dead battery, broken screen, faulty board), then a soft reset is not possible. In such cases, diagnostics are required at a service center.

How to avoid the Google account request after a reset?

It is impossible to avoid the FRP (Google Lock) request by legal means if a Google account was entered on the phone before the reset. This is protection at the level of Google servers. The only way to avoid this is to delete the account from the phone settings (Settings → Accounts → Google → Delete) before resetting the settings, if you still have access to the menu.

Will apps like ADB help to remove password?

ADB (Android Debug Bridge) commands only work if “USB Debugging” was previously enabled on the phone and permission was given to the computer. If your phone is locked and debugging is not enabled, you will not be able to connect to it via ADB to delete files with a password. Modern versions of Android block access to the file system until the screen is unlocked.