How to Disable a Locked Xiaomi Phone: The Complete Guide

When your beloved Xiaomi suddenly stops responding to commands or requires a forgotten password, it can take anyone by surprise: the screen goes out, the device vibrates, but you can’t log in, and it creates a feeling of complete helplessness. Most often the problem lies in the security mechanisms of the operating system MIUI or HyperOS, which block access when suspicious activity or multiple input of incorrect data.

There are many reasons why a smartphone can be locked, from the banal forgetfulness of the owner to software failures after a failed update. It is important to understand that modern methods of data protection, such as FRP (Factory Reset Protection) and binding to a Mi Account, are designed for security, but sometimes become an obstacle for the legitimate owner. In this article, we will discuss all possible lock scenarios and provide working algorithms for actions.

Before you start taking drastic measures, you need to pinpoint the type of lock you're facing, whether it's a pattern lock, a digital PIN, a Google account password, or a specific bootloader lock, and diagnosing the problem correctly will save you time and nerves, because the solutions for each case are radically different.

Types of locks on Xiaomi devices

The first step to restoring access is to classify the problem, and users often confuse different types of protections in order to apply inappropriate reset methods, and there are several main types of locks, and each has its own system behavior.

The most common is a lock screen, which is activated by the user to protect personal data, if you forget the pattern lock or password, the system will suggest you enter it again or use an alternative method if it was configured in advance, but after a certain number of failed attempts, the device may temporarily lock or require you to log in to your account.

The second type is Mi Account lock, which occurs when the device has enabled Find Device. Once you reset the settings to the factory, the phone will require you to enter a username and password from an account that was synced earlier, a powerful anti-theft tool that is almost impossible to get around without the original data.

⚠️ Note: If a device is found or purchased by hand and it requests someone else's Mi Account, it is impossible to unlock it legally without the previous owner.

The third option is Locked Bootloader, which, while it doesn't block login directly, it does not allow custom firmware or recovery, which is often necessary to deep-recover from critical errors, and the bootloader status can be checked by holding both volume and power buttons.

πŸ“Š What kind of lock you have encountered?
Forgot the screen password.
Forgot my Mi Account.
Phone found/buyed by used
Post-firmware locking

Resetting settings via Recovery Mode

The most effective way to retrieve access to your device if you forget your screen password is to perform a full reset via Recovery Mode, which deletes all user information, including forgotten keys, but keeps the operating system running.

To enter Recovery mode, you need to turn off your smartphone completely. Then press the volume button and the power button at the same time. Hold them until the Mi logo or recovery menu appears. The navigation in this menu is done with volume buttons, and the choice is confirmed by the power button.

In the menu that opens, select English (if available) or use the standard Chinese menu based on the location of items. You will need Wipe Data. After selecting, confirm the action by pressing Wipe All Data and then Confirm. The process will take a few minutes, after which the phone will reboot as new.

β˜‘οΈ Checklist before reset

Done: 0 / 4

It’s worth noting that on newer versions of MIUI, after resetting via Recovery, the system may require proof of identity, such as entering a password from a screen that was previously set, or logging into a Google account synchronized with the device, an additional security measure to prevent data theft.

πŸ’‘

If, after resetting, the phone requires a password from an old screen you forgot, try entering a password from your Google account.In some firmware versions, this works as an alternative confirmation method.

Bypassing the blocking of the Mi Account (Mi Account Lock)

The most difficult thing is that if you reset your phone but you don't log out of your beforehand account, you'll be able to protect FRP for the Xiaomi ecosystem, and when you turn on, you'll need to enter the password for the Mi Account that was linked to that serial number.

The official solution is to restore access through i.mi.com. If you have access to a phone number or backup email, you can reset your password. Once you change your password, you need to wait a while (usually 15 minutes to 24 hours) before trying to enter new data on your phone.

There are technical methods of bypassing the device in Fastboot mode using authorized service center accounts, but this way requires specialized hardware and software such as the Xiaomi Flash Tool and an account with the rights of the service center employee.

MethodRequired dataData securityDifficulty
Resetting password on the siteAccess to telephone/mailYes (unless a reset has been made)Low.
Hard Reset + EntryPassword from Mi AccountNo (complete removal)Low.
Service firmwareAuthorized accountNo.Tall.
Bypassing ADB (older versions)PC, cable, ADB knowledgePartially.Medium

It is important to understand that the IMEI of the device is strictly tied to the account on the servers of the company. Just reflash the phone with the usual global version will not work - the lock will remain, since the verification takes place on the server side when you first connect to the network.

Google and Find My Device Services

If the locked phone has been enabled with internet and geolocation, you can try remotely unlocking or resetting the device via Google Find My Device, a technique that works if you remember the password from the Google account linked to the smartphone.

Go to the service site from any other device (computer or other phone) and log in to the same Google account. From the list of devices, select your blocked Xiaomi. You will have three options: Protect the device, Call and Clear the device.

Selecting the "Erase Device" option initiates a complete data reset command. Once this command is executed, the phone will return to factory settings. The screen password will be deleted, but as mentioned earlier, you may need to log in to your Google account to confirm ownership (FRP Google).

⚠️ Note: Remote reset via Google only works if the device is online.If the phone is off or has no access to the network, the command will only be executed after its next Internet connection.

This method is also useful if the phone doesn't respond to touch, but the system works. You can set a new password remotely, although it may not be suitable for unlocking the screen if the system is getting stuck. However, it is one of the few remote tools that work to reset a forgotten key.

What if Google Find My Device doesn’t see your phone?
If the device doesn't appear on the list, check if location access and data transfers were enabled at the time of locking, and make sure you use the same Google account that was the primary one on the device. If the phone is offline for more than 30 days, it may disappear from the list of recent connections.

Fastboot mode and flashing the device

When software failures result in a cyclic bootloop or inability to boot the system, Fastboot mode comes to the rescue. In this mode, the phone waits for commands from the computer for low-level interaction with memory.

To enter Fastboot mode on the phone turned off, press the volume button and connect USB-And then you'll see a picture of a rabbit fixing an android on the screen, and it says, FASTBOOT. To exit this mode, it is usually enough to press the power button on 10-15 seconds.

To flash back, you'll need the Mi Flash Tool and the.tgz firmware itself. It's important to download the firmware for your model (the model code can be found on the back cover or box, for example, the M2101K6G).

  • πŸ“‚ Unpack the firmware archive in the root of the C disk so that the path is short and without Cyrillic.
  • πŸ’» Run the Mi Flash Tool on behalf of the administrator and press the Refresh button so that the program sees the phone.
  • βš™οΈ Select β€œClean all” to remove locks and old data, or β€œClean all and lock” to lock the bootloader completely.
  • ▢️ Press the Flash button and wait until the process is over. The phone will automatically reboot.

Using Fastboot mode allows you to bypass many of the software errors that caused the lock, but if the lock was at the account level (Mi Account Lock), simply flashing through Fastboot without authorization will not remove the password request on the first activation.

πŸ’‘

Fastboot is a deep system recovery tool, but not a universal account locker. It is effective against software failures, but powerless against Mi Account server binding without special access rights.

Unlocking through ADB teams

For advanced users, there is an Android Debug Bridge (ADB) tool that allows you to control your device from a computer if your phone has previously enabled USB Debugging. If this item was activated before locking, the chances of recovery are high.

Connect your phone to your PC, install ADB drivers, and open the command line. Type a command to check the connection:

adb devices

If the device appears in the list, you can try to delete files that store the graphic keys.

adb shell rm /data/system/gesture.key


adb shell rm /data/system/password.key

Once the commands are executed, the device needs to be restarted. On newer versions of Android and MIUI shells, this method often doesn’t work because of the increased protection of the /data/system partition, which is closed even with debugging rights. However, on older models or custom firmware, this may work.

You can also try to type in text or press virtual buttons through ADB, which sometimes helps bypass the hung lock screen if the problem is a software interface conflict. For example, the command to emulate the home button looks like an adb shell input keyevent 3.

Frequently Asked Questions (FAQ)

Can I unlock Xiaomi without losing data?
Officially, no, if you've forgotten your screen password. The only way to save data is to remember your password or use your fingerprint/face if it's configured and working. Third-party programs that promise to save data are 99 percent fraud or viruses.
What if the phone says "Device locked" after flashing?
This means that Mi Account protection worked, you need to enter the username and password from the account that was on the phone before the flashing, and if you don't remember them, you can only access it through mi.com or by contacting the service center with a check for a purchase.
How long do I have to wait after resetting my account password?
Once you change your password from your Google account or Mi Account on your site, you need to wait 15 minutes to 24 hours before entering new data on your phone, a security measure to prevent unauthorized access.
Will the Chinese version of the Global version help?
Changing the firmware region (Cross-flash) does not remove the blocking of the Mi Account, since the binding is via the IMEI on the server, and this operation can lead to problems with communication (Band 20) and NFC.
Is it possible to remove the lock through service programs like UnlockTool?
There are paid service center software packages that can bypass some types of locks (Bypass), but they often stop working after updating Xiaomi servers, and their use requires deep technical knowledge and carries the risk of turning the phone into a β€œbrick”.