How to unlock Xiaomi Redmi if you forget the screen lock password without losing data

The situation when the owner of the Xiaomi smartphone forgets the password, PIN-The code, or pattern lock, is one of the world's most stressful mobile devices. MIUI, They are designed to protect the userโ€™s personal data from prying eyes as much as possible. Thatโ€™s why standard reset methods often involve completely deleting information, which becomes a disaster if the device has not been set up automatic backup.

But itโ€™s too early to despair, as there are proven ways to access or bypass a device while keeping important photos, contacts, and correspondence. The success of an operation depends on the version of the operating system, whether you have a Mi Account, and how you pre-set up certain features. In this article, weโ€™ll go through the technical details of each method so you can choose the most suitable one for your case.

Before you start taking action, you need to clearly understand what type of lock you are faced with, as this determines the next algorithm of actions. Modern models of Redmi Note and Xiaomi Mi can use biometrics, complex passwords or standard graphics keys, and each of them has its own vulnerabilities.

Itโ€™s important to be aware that not all methods are lossless, especially on newer versions of Android, where encryption has increased significantly, but itโ€™s worth trying using the time-tested tools and system loopholes that weโ€™ll talk about later.

Using the Find Device feature from Xiaomi

The most reliable and standard way to unlock the device is to use the cloud service Find Device, which is built into the shell MIUI by default. To successfully apply this method, you need to log in to Mi Account on the locked smartphone, turn on the Internet (Wi-Fi or mobile data) and activate the search function of the device itself in the security settings.

If all the conditions are met, you will need access to another device with Internet access to go to the official website of the service. Once you log in under the same account as on the locked phone, the system will offer several options, including removing the lock screen.

  • ๐Ÿ”‘ Open your browser on your PC and go to i.mi.com.
  • ๐Ÿ”‘ Enter the login and password from your Mi Account.
  • ๐Ÿ”‘ Select a locked device from the list of available gadgets.
  • ๐Ÿ”‘ Click the Unlock Device button in the control menu.

โš ๏ธ Note: After using this feature, the screen lock will be removed, but the data may remain, however, in some versions. MIUI The system will require re-authorization in your Google or Mi Account when you first download it.

It is worth noting that this method does not work on all versions of the firmware, since security policies are constantly updated. If the unlock button is inactive or the service says that the device is offline, try sending a command remotely and waiting for the phone to connect to the network.

๐Ÿ“Š Have you ever had a screen lock on Xiaomi?
Yeah, I forgot my password.
No, I'm using a print.
Blocked by the virus
Never blocked.

The method of bypassing through Google Account

On devices with Android version below 7.0, the classic method of resetting a password through a Google account often works. PIN-code until the system offers an alternative method of entry.

After five unsuccessful attempts, a countdown timer and a button โ€œForgot the pattern lock?โ€ or โ€œForgottenโ€ will appear on the screen. PIN-By clicking on it, you can log in using the Google account that was previously linked to the device.

This is especially true for older Redmi models, which are still used as second phones or given to children. On modern versions of Android, the feature is often hidden or removed entirely by developers for security reasons.

What if the โ€œForgot Passwordโ€ button does not appear?
If after many attempts to enter the wrong code, the restore button does not appear, then the manufacturer of your version of the MIUI firmware has disabled this option, in which case enter the wrong code until the timer appears for 30 seconds, and quickly press the screen when the timer is unlocked, sometimes this helps to call the restore menu.

Unlocking through debugging via USB and ADB

For more advanced users who have pre-installed USB debugging in the developer menu, there is a powerful command line tool called ADB (Android Debug Bridge), which allows you to interact with the system at a deep level and delete files responsible for storing lock keys.

To implement this method, you will need a computer with installed drivers. ADB and USB-When you connect your phone to your PC, you need to enter a special command that will delete the gesture.key or password.key file from the system directory.

adb shell rm /data/system/gesture.key


adb shell rm /data/system/password.key

Once you've done the command, you need to reboot the device, and it's important to understand that this method only works if the phone has been paired with a computer and permission to debug has been issued, and without this step, the computer will simply charge the device without access to the file system.

  • ๐Ÿ’ป Connect your smartphone to your computer via the original cable.
  • ๐Ÿ’ป Open the command line in the folder with installed ADB.
  • ๐Ÿ’ป Enter the adb device command to check the connection.
  • ๐Ÿ’ป If the device is displayed, execute the command to remove the keys.

โš ๏ธ Attention: Misuse of commands ADB It can cause system instability or loss of access to certain functions, so check the syntax of input commands carefully.

๐Ÿ’ก

Use only original or certified USB cables, as cheap analogues often donโ€™t provide a stable connection for data transfer, limited to charging only.

Comparison of Unlocking Methods

The best way to choose depends on the specific situation, the model of the device and the presets, and to make it easier for you to navigate, we have prepared a comparison table that will help you estimate the chances of success for each method.

MethodConditions requiredRisk of data lossDifficulty
Find DeviceInternet, Mi AccountLow.Low.
Google AccountAndroid < 7.0, Google accountNo.Low.
ADB CommandDebugging by USB, PCNo.Tall.
Safe ModeThird-party lock-in appNo.Medium

As you can see from the table, having pre-training greatly increases the chances of keeping information, and if none of the gentle methods are suitable, there is a last option that is guaranteed to remove the lockdown, but will require victims.

๐Ÿ’ก

The most effective and safe method for modern Xiaomi devices is to use the cloud service Find Device, provided an active Internet connection.

Recovery Mode (Hard Reset)

If none of these methods worked, and data access is critical, or the data has already been synced to the cloud, you'll have to resort to a full reset, which will return the phone to factory status by removing all user files, apps and settings.

To enter Recovery Mode recovery mode on most Xiaomi and Redmi smartphones, you need to turn off the device and press the combination of power and volume buttons. In the open menu, the volume button selects the Wipe Data item, and the power button confirms the action.

  • ๐Ÿ”„ Turn off the smartphone completely.
  • ๐Ÿ”„ Press the power button and volume button"+" simultaneously.
  • ๐Ÿ”„ Wait for the Mi logo to appear and release the power button.
  • ๐Ÿ”„ Select a language and go to the Wipe Data menu -> Wipe All Data.

Once the cleaning process is complete, the phone will reboot and you will see the screen of the initial setup, where you will need to enter the password from the Google account or Mi Account that was tied to the device before the reset, which is a protection against theft (FRP Lock).

โš ๏ธ Note: After resetting your settings via Recovery, the device may require proof of ownership of a Google account that was previously synced.Make sure you remember the login details or the phone will remain locked.

โ˜‘๏ธ Preparation for Hard Reset

Done: 0 / 4

Frequently Asked Questions (FAQ)

Can you unlock Xiaomi without losing data if the internet is not on?
Without an active internet connection, unlocking a modern Xiaomi smartphone without data loss is almost impossible, as server authorization to verify the ownerโ€™s rights will not pass. The only exception is older models with security vulnerabilities or using ADB if debugging was enabled in advance.
What if the phone says "Device locked" after resetting?
This is FRP (Factory Reset Protection) protection, and you need to enter the login and password from the Google account that was last synced to your phone before the reset, and if you forget that, you have to restore access through Google's site on another device.
Will the Find Device method work if the phone is turned off?
No, the unlock command will be sent to the server and executed only when the device is turned on and connected to the Internet. Until then, the status of the device will be โ€œWaiting for connectionโ€.
Is it safe to use third-party software to unlock?
Using untested software carries high risks, such programs can contain viruses, steal your personal data or permanently damage the phone's software, turning it into a "brick."