How to unlock Xiaomi phone: a step-by-step guide

The situation when Xiaomi smartphone stops letting the owner into the system is one of the most stressful for the user. Losing access to the device can happen for various reasons: you may forget the pattern lock, digital pin code or password from the Mi Account after resetting. Modern security systems MIUI and HyperOS are designed to protect personal data from outsiders, which sometimes creates problems even for legitimate owners.

Restoring control of the gadget requires a clear understanding of what type of lock is installed. The methods of bypassing the protection for the lock screen and for the Xiaomi account vary significantly in complexity and tools used. In this article, we will discuss in detail all legal ways to restore access, from standard Google functions to advanced firmware methods.

Before you start taking action, you need to evaluate the criticality of the data stored on the device. Most of the methods described below involve completely deleting information, so resetting through Recovery will not return your photos and contacts if they were not synced with the cloud in advance. However, if the goal is to return the device to work, following the instructions will help solve the problem.

Determination of the type of lock and preparation

The first step is always to diagnose the problem accurately, because it depends on the choice of tool to solve it. The lock can be software related to the login screen, or hardware and software tied to the manufacturer's servers. If the screen is asking for a password from the Mi Account after the reset, this is Find Device protection, which can not be circumvented by simple reprogramming.

If the device simply doesn't accept the graphics pattern or code, it's easier to do that, but it requires a backup or a Google account. It's important to understand that Android has built-in password protection mechanisms, so after a few failed attempts, the phone can temporarily block input.

Before any manipulations, you need to make sure that the battery is sufficiently charged; interrupting the process of unlocking or firmware due to battery discharge can lead to irreversible consequences for system files; and you will need a stable Internet connection, preferably via Wi-Fi, to communicate with the activation servers.

πŸ“Š What type of lock you have right now?
Forgot the pattern lock
Forgot my Mi Account password.
Phone says "Device locked"
I don't know what to do.

Prepare a Windows computer, as most of the tools for working with Xiaomi work best in this environment. USB-cable that supports data transfer, not just charging, and cheap cables often cause connection errors when trying to enter recovery modes.

Using the Find Device feature from Xiaomi

The most civilized way to access your phone or at least save data is to use the official Find Device service, which must be pre-activated in the Mi Account settings on the device itself, and if you remember your account login and password but can't unlock the screen, this method can be a lifesaver.

To log in, go to the official i.mi.com website from any other device and log in to your Mi Account. Once you have successfully logged in, the system will prompt you to select your device from the list of available gadgets associated with this account. If the phone is connected to the Internet, you will see its location and the set of available activities.

  • πŸ“ Device search: allows you to see the current location of the smartphone on the map in real time.
  • πŸ”Š Sound: Turns on the maximum volume of the signal even if the phone is silent.
  • πŸ”’ Lock: allows you to remotely set a new password on the screen if the old one is forgotten.
  • πŸ—‘οΈ Cleansing: completely erases all data from the device, removing the screen lock, but leaving the account binding.

Using the remote cleaning feature is an effective way to reset a forgotten screen password, but remember Factory Reset Protection. Once cleaned, the phone will require you to enter a password from a Google or Mi Account that was synced earlier. This is a standard Android security measure to prevent the use of stolen devices.

What if it's offline?
If the device is not connected to the Internet, a cleanup or lock command will be sent to the queue, which will be executed automatically as soon as the smartphone is online, even if by that time it will be several days.

Importantly, the feature only works when the phone is on data or Wi-Fi. If the gadget is in airplane mode or just off, remote commands will not pass, in which case you will have to resort to more radical methods of resetting through hardware buttons.

Resetting settings through Recovery mode

Recovery is a special diagnostic interface built into the firmware of the smartphone that allows you to perform low-level operations, which is where you can perform a full reset (Wipe Data), which will remove the forgotten password of the screen, this method is universal for most models of Redmi, POCO and Mi.

To enter this mode, you need to turn off your phone completely. Then press the volume button and the power button at the same time. Hold them until the Mi logo or the recovery menu appears on the screen. Some models may require you to connect the charger before turning on.

β˜‘οΈ Reset algorithm in Recovery

Done: 0 / 4

In the Recovery menu, the navigation is done with volume buttons (up/down), and the choice is confirmed by the power button. You need to find the Wipe Data item and select Wipe All Data. The system will alert you to the irreversibility of the process and require confirmation, often by selecting Confirm or entering a digital code if it was installed earlier.

⚠️ Warning: Once reset via Recovery, the phone will be locked with the activation screen. If the device has enabled the "Find Device" function, you will need to enter the username and password from the Mi Account that was synchronized before the reset. Without this data, you will not be able to turn on the phone.

The cleaning process can take anywhere from a few seconds to a couple of minutes, depending on the amount of information accumulated and the memory speed. Once completed, the phone will automatically restart, and you will see the screen of the initial setting, as when you first turn on the new device, all user data, including photos and contacts, will be irretrievably lost.

Unlocking the Google Find My Device

An alternative way that might work if a Google account is activated on a phone is Find My Device, a service similar to Xiaomi’s, but using the search giant’s infrastructure, and its effectiveness depends on how actively the device synced with Google’s servers before losing access.

Go to android.com/find from your computer or other smartphone and log in to the Google account that was used on the locked phone. If the device is online, you can see it on the map. From the side menu, select the option to Clean the device (Erase Device).

This command will force all data from internal memory, including files, apps and, most importantly, the lock screen, but as with the Mi Account, FRP (Factory Reset Protection) protection will work, and the first setup after the reset will require the phone to enter a password from the Google account that was the main one on the device.

MethodData retentionWe need the Internet.Difficulty
Find Device (Xiaomi)No (when cleaned)Yes.Low.
Recovery ModeNo.No (for entry)Medium
Google Find My DeviceNo.Yes.Low.
Fastboot + Mi Flash ModeNo.No (for firmware)Tall.

Using Google services is often more effective for unlocking the screen if you don’t remember the Mi Account password but remember Google data. However, if the phone was reset to factory settings beforehand, this method may not work, as activating the cleanup requires an active connection to the server.

Firmware via Fastboot and Mi Flash

If standard methods fail or the system is damaged so that the phone goes into an endless restart (bootloop), the only way out is complete flashing. ADB/Fastboot.

To enter Fastboot mode on the phone turned off, press the volume down button and the power button at the same time. A hare in a hat-eared hat repairing an android should appear on the screen, and the inscription should read: FASTBOOT. Connect the device to the computer through USB-cable.

πŸ’‘

Make sure your PC has ADB and Fastboot drivers installed. Without them, your computer won’t see your phone in this mode, and Mi Flash will show you an empty list of devices.

Download the official firmware for your model from miui.com. Note that Mi Flash often requires a Fastboot ROM (.tgz archive) rather than a Recovery (.zip). Unpack the archive to the root of the C disk so that the path does not contain Cyrillic or spaces.

1. Launch the Mi Flash Tool on behalf of the administrator.




2. Press the Refresh button to allow the program to find the device.




3. Choose the path to the folder with unpacked firmware.




4. at the bottom, select "Clean all" mode (Clean all)).




5. Press Flash and wait until the process is over.

The choice of Clean all mode is critical, as it completely erases data sections and removes the screen lock. However, if the phone was enabled binding to the Mi Account, after the firmware it will remain, because this method does not remove the activation lock, but only reinstalls the system. Clean all and lock mode can not be used if the bootloader is unlocked, otherwise you can get a brick.

Unlocking the activation of Mi Account

The biggest problem is when, after a reset, the phone requires you to enter a password from a Mi Account that you don't remember, which is protection against theft, and it's almost impossible to circumvent it legally without access to the account, and the only official way is to restore access through i.mi.com.

If you don't remember your password, use the recovery feature on the login page by providing your linked phone number or email. If your phone number is lost and your email is unavailable, you'll have to contact Xiaomi's customer service with a receipt to prove your ownership of the device.

⚠️ Warning: Don't believe programs that promise to unblock Mi accounts in 5 minutes; at best, they're useless, at worst, they contain viruses; bypassing activation locks is only possible through server-side unblocking with a check or through vulnerabilities that quickly close.

There is also a paid service to unlock through service centers, but it requires the physical presence of the device and documents. Software methods like Xiaomi Account Unlocker are often a scam. Remember that the security of user data is a priority for the manufacturer, so workarounds are constantly closed.

In some rare cases, if the phone didn't have Find Device enabled before reset, it might not be blocked, but on current versions of MIUI 12/13/14 and HyperOS, this feature is often enabled by default when you log in.

Prevention and maintenance of access

To avoid the problem of lost access in the future, you need to configure the device correctly in advance. Regular backup of data to the Google Drive or Mi Cloud will make it easy to recover information after any reset. This takes a minimum of time, but saves you from losing important contacts and photos.

Write your Mi Account and password to a secure location, like a paper notebook or a password manager on a PC. Using complex passwords is good, but only if you can remember or restore them. It's also helpful to add an alternative email or phone number to recover.

  • πŸ“ Data Recording: Keep logins and passwords separate from your phone.
  • ☁️ Sync: Enable autoload photos in Google Photos.
  • πŸ” Two-factor authentication: Secures your account from hacking, but requires backup codes.
  • 🧾 Check: Keep a photo of your phone purchase check in the cloud.

Check regularly if the fingerprint or face unlock function is activated and set a backup. PIN-Biometrics are convenient, but once the device is restarted, it still requires you to enter a digital code.

Following these simple rules will make you feel confident about using your smartphone, and even if your device is lost or locked, you can quickly regain control of it without wasting precious data and time searching for difficult workarounds.

What to do if the phone says "Device locked"?
This message means you have to activate Find Device protection, you have to enter the password from the Mi Account that was synced on this device, and if you don't remember it, you can restore access through i.mi.com. Without this, you can't legally unlock your phone.
Can I unlock Xiaomi without losing data?
Officially, no, if you've forgotten your screen password. Password reset always involves resetting data for security. The only chance is if you've previously enabled USB debugging and have access to ADB, but on modern versions of Android, it's also blocked without screen validation.
Will battery drain reset the password?
No, full discharge and subsequent charging do not affect the saved passwords and encryption keys. It is a myth. Data is stored in non-volatile memory and stored even after the battery is removed (if it is removable).
Will the re-flashing help with Recovery?
With the standard Recovery menu, you can only do Wipe Data, which will delete the password, but require an account. Full Flash ROM through Recovery is impossible, you need Fastboot and PC mode.