How to unlock Xiaomi phone without deleting data: the complete guide

A situation where access to a smartphone is limited due to a forgotten pattern lock, PIN-The code or password is one of the most stressful for any user. POCO Often faced with aggressive security policies MIUI or HyperOS, which by default offers a full reset (Wipe Data) when you mistype multiple times, which means losing all photos, correspondence and contacts if you do not have a fresh backup.

However, there are proven ways to bypass screen locking without having to fully format internal memory. The effectiveness of the method depends on the version of Android, the model of your device, and whether certain debugging or synchronization functions were pre-enabled. In this article, we will discuss all the current options, from the regular Mi Cloud tools to more complex technical manipulations.

It should be understood that modern security systems are designed to prevent unauthorized access, so there is no magic button. However, if you are the legitimate owner of the device and remember data from your Mi Account or Google account, the chances of returning access to the gadget without losing information are extremely high.

⚠️ Note: Attempting to unlock someone else’s devices without the owner’s consent is illegal.All of the methods described below are solely designed to restore access to your personal property in the event of loss of credentials.

Use the “Find Device” function via Mi Cloud

The most reliable and standard way to unlock the screen without deleting data is only available to users who have pre-assigned the device to Mi Account and enabled Find Device, a method that works at the company server level and allows you to remotely control the screen locker. If your locked phone is active Internet (Wi-Fi or mobile data), the chances of success are maximum.

To start, you need to go to the official website of the cloud service from any other device, whether it is a computer or a friend's smartphone, you will need to enter the username and password from the Mi Account that was used on the blocked gadget, and after successful authorization, the system will prompt you to select your device from the list of available ones.

☑️ Checking before unlocking

Done: 0 / 1

In the device management menu, find the Unlock option, which will send a command to the smartphone to force the pattern lock, digital code, or password to be removed, and it is important to note that this method does not work equally stable on all firmware versions, but on global versions of MIUI it remains the main tool for data rescue.

⚠️ Note: If the device was not enabled the Internet or the “Find Device” function was deactivated, remote unlocking via Mi Cloud is not possible.

The success of the operation depends on several critical factors that should be considered:

  • 📱 The device must have an active Internet channel to receive commands from the server.
  • ☁️ The “Find Device” function must be enabled in the Mi Account settings before blocking.
  • 🔋 The phone must be on and have a battery charge to execute the command.
  • 🔐 You must remember the password from your Mi Account, otherwise you will not be able to log into the cloud.
📊 Have you unlocked your phone through the Mi Cloud?
Yes, the first time: Yes, but it took a few tries: No, the function wasn't on: No, the phone was offline

Unlocking through Google’s Find Device service

An alternative, but less guaranteed, way is to use Google’s built-in services. Unlike the Xiaomi ecosystem, Google’s services have stricter restrictions in recent Android versions, but on devices with a pre-Android 9-10 version, this method has often proved to be a life-saving one.

To use this method, go to Google Find My Device and log in to the Gmail account that is the main one on the locked phone. The system will try to locate the device. If the phone is connected, the "Secure Device" option may appear in the control menu.

By selecting this option, you can set a new temporary password that will replace the forgotten pattern lock or the old one. PIN-Code. Once you change the lock screen, you'll have a field to enter a new password, and you'll be able to access the system. However, on current versions of Android 11, 12, 13 and 14, Google often removes the ability to change the password for security purposes, leaving only the reset function, so this method should be considered as an additional feature, not a guaranteed solution.

Why did Google remove the password change feature?
Since Android 10, Google’s security policy has changed, with the company believing that the ability to remotely change a password creates a vulnerability that allows attackers to lock a victim’s device and demand a ransom, so only Call, Lock (with a message on the screen) and Clear Device are now available.

USB Debugging Method and ADB Command

This method is suitable for advanced users and requires prior preparation. USB (USB Debugging) and the computer was given permission to debug, you can delete files that store access keys through the command line. This is a complex but effective method that does not require data resetting.

To implement you will need a PC, USB-cable and installed drivers ADB. Connect your phone to your computer. If you have a request on your phone that says, "Let me debug?" and you can't press OK because you're locked, it won't work. But if you've already done that, open the command prompt (cmd) in the folder with the screen. ADB and enter the following command to delete the key file:

adb shell rm /data/system/gesture.key

Depending on the type of lock:

adb shell rm /data/system/password.key

Once the command is completed, the device needs to be restarted. On some models, after the reboot, the system can still ask for a password, but any set of characters will work, since the verification file is deleted. On other devices, the lock will disappear completely. It is worth noting that on new versions of HyperOS, access to system folders without root rights can be limited even with debugging enabled.

⚠️ Attention: Do not use commands `adb shell rm` Deleting system files can lead to unstable operating system or cyclic reboot (bootloop).

Using Safe Mode to Remove Third-Party Blockers

Often, users are faced with a situation where the phone is blocked not by standard system tools, but by a virus or malicious application that simulates a lock screen. In such cases, a standard reset is not necessary. Safe Mode allows you to download Android only with system applications, ignoring all third-party software.

To enter safe mode on most Xiaomi models, you need to press the power button, and when the turn off menu appears, hold your finger on the “turn off” icon on the screen for a long time. The system will suggest going to Safe Mode. If you have the login screen itself locked, try the volume button combination when you turn on (depending on the model), although this works less often on modern touch interfaces.

Once in Safe Mode, you’ll see the sign in the corner of the screen. Now go to Settings → Apps and find a suspicious app that may have caused the lock (often “cleaners”, “antiviruses” or apps with names like “System Service”). Delete it, then restart the phone as normal. The lock should disappear.

💡

If you can't determine which application is causing the lock, sort the list of applications by installation date. Often viruses are installed along with the last programs downloaded.

Comparison of Xiaomi Unlocking Methods

To make it easier for you to choose your strategy, we have organized the basic methods into a table that will help you quickly assess your chances and the conditions for each method, and remember that there is no one-size-fits-all solution for all models from Redmi Note to Xiaomi Ultra.

MethodConditions requiredData retentionDifficulty
Mi Cloud (Find the device)Internet, enabled search function, Mi AccountYes (100%)Low.
Google Find My DeviceInternet, Google account, old version of AndroidYes (partially)Low.
ADB (USB Debugging)Included debugging previously allowed by PCYes (100%)Tall.
Safe ModeWorking Touch Screen (Partially)Yes (only if the virus)Medium
Hard ResetAccess to Recovery MenuNo (complete removal)Low.

As you can see from the table, if you didn't have USB debugging enabled or Mi search enabled, there are few options left, and in such cases, a full reset is often the only way out, but before you do that, you should check the latest method, which sometimes allows you to bypass the lock screen on older devices.

💡

The highest chance of success without data loss is given only by the pre-configured Mi Cloud. If the function was turned off, the probability of saving data tends to zero.

What to do if nothing works: Hard Reset

If none of the sparing methods worked and access to the phone is vital, you will have to resort to a full reset (Hard Reset), which is guaranteed to remove the lock screen, but completely clear the internal memory of the device, photos, contacts (if not synchronized) and applications will be deleted.

Turn off the phone completely to perform the reset. Then press the button combination to log in to Recovery Mode. On most Xiaomi, this is the Volume Up + Power button. Hold them until the Mi logo appears. On the Recovery menu (which may be in Chinese or English), select Wipe Data, then Wipe All Data, and confirm the action.

Once the process is complete, the phone will reboot, and when it first turns on, it will ask you to enter the password from the Mi Account or Google account that was previously linked to the device, which is FRP lock, and if you don't remember those passwords, it will be virtually impossible to unlock the phone officially without going to the service center with a check for a purchase.

Can I bypass FRP (Google Lock) after resetting?
There are paid services and sophisticated technical methods to bypass FRP, but they often require disassembling the phone, using special boxes (programmers) or vulnerabilities in specific versions of Android.

Frequently Asked Questions (FAQ)

Will the phone reset itself after 10 incorrect password attempts?
No, the standard Android and MIUI security system does not automatically reset data after a certain number of errors. The phone can only temporarily block the input ability (for 30 seconds, 5 minutes, an hour), Reset only occurs on the explicit user command via Recovery or remotely through the cloud.
Will the phone be able to be reflashed without losing data?
99% of the time, no. Installing new firmware on top of the old one without cleaning (Clean Install) is usually impossible if the system is locked, and Update does not remove the lock screen, since the password hash file remains in a secure partition that is not affected when the software is updated.
Can I unlock Xiaomi with my fingerprint if I forget my password?
No. Biometrics (fingerprint, face) are just a handy key to the master password. If the master password is forgotten, biometrics will not help restore access or change it. The system requires periodic input of the master code for security purposes.
Will the photos be saved in the Mi Cloud after unlocking?
If you have the Gallery sync enabled, all photos that have been taken to the cloud before the locking will be saved, and you can see them by logging into your i.mi.com account, but photos taken while the phone was locked and had no Wi-Fi access will not be taken to the cloud and will be lost when reset.