How to Remove Xiaomi Password Without Losing Data

A situation where you pick up your smartphone and realize that you have forgotten your pattern lock or PIN-And it's a code that can throw away any owner of a machine, and for users of the Xiaomi ecosystem, this is especially important because it's a security system. MIUI Unlike some competitors, the Chinese manufacturer often blocks the ability to simply reset settings through recovery without confirming an account, making it difficult to restore access.

The big question that comes up at this point is, can you unlock a device while saving all the photos, contacts and correspondence? Unfortunately, today's Android data encryption protocols are designed so that your password is the key to decrypting it. However, there are a number of methods that allow you to bypass the lock or restore access to the system without having to fully format the memory, and the effectiveness of each method depends on the version of the operating system, the USB debugging settings, and the status of the Mi Account.

In this article, we will take a look at all the legal and technical options available at the moment, how to use Google and Xiaomi cloud services, what hidden engineering menu features can help, and in which cases data loss is physically impossible to do. Carefully study each step, as an incorrect action can lead to a complete lock of the device over IMEI.

Use the “Find Device” function from Google

The first and easiest way to try is to use Google’s built-in service, which works at the Android operating system level and allows you to remotely control a blocked gadget if you log in to a Google account and have the Internet enabled. The method is effective for older versions of Android, but even on new firmware sometimes gives you the chance to change the way you lock.

First, you need to go from your computer or other smartphone to the official Google Find My Device website. Log in to the account that was the main one on the locked device. The system will automatically try to determine the location of your Xiaomi and offer several options: Call, Lock and Clear the device.

We're interested in the lock option, because it allows you to set a new temporary password, and by entering a new code, you can unlock your phone and change the security settings in the menu. 9 and above, and in the shells MIUI 12-14, Google is often denied the right to remove installed by the user PIN-code directly, limited to a complete reset.

  • 🔑 Make sure your phone is on mobile internet or Wi-Fi.
  • 🔑 Login to Google account must be done in advance.
  • 🔑 The “Find Device” function must be active in the security settings.
  • 🔑 The method may not work if the phone is rebooted and not unlocked for the first time after switching on.

⚠️ Note: If you select the “Clean Device” option from the Google menu, all data will be permanently deleted. Use only the password change function if your goal is to save information.

📊 Have you ever had a screen lock?
Yeah, I forgot my password.
No, I'm using FaceID.
I use simple codes.
I have a button phone.

Unlocking through Mi Cloud (Find Device)

Xiaomi smartphone owners have the unique advantage of deep integration with their own cloud service Mi Cloud. If the device has signed in to a Mi Account and enabled the device search function, you get access to a powerful remote management tool, which is often more effective than Google tools, since it has higher access rights to the MIUI security system.

The process begins with a visit to the i.mi.com website. Sign in using your phone number or email linked to your Mi Account. Once you have successfully logged in, select Find Device, the map will display your smartphone location, and the control menu will display the Unlock option.

By clicking on the unlock button, the system will require proof of identity, often sending a confirmation code to the phone number that is tied. Once you pass the check, the lock screen on your smartphone will be removed and you will have full access to the system. It is important to note that this method only works if the phone is connected to the network.

💡

Periodically check the status of the Mi Account in the settings, so that at a critical moment you do not encounter the requirement of two-factor authorization on the lost SIM card.

There's an important caveat: once you remotely unlock it through Mi Cloud, the phone may need to re-enter the Mi Account password the next time you connect to the Internet, which is a standard anti-theft procedure known as Mi Account Lock, so remember your account data, as it will become the new key to the device.

ParameterGoogle Find My DeviceMi Cloud Find Device
Required accountGoogle AccountMi Account
Priority in MIUILow/MediocreHigh-pitched
Ability to remove passwordPartial (depending on the Android version)High (with the function included)
Network requirementI'll be sure.I'll be sure.

Debugging method by USB and ADB commands

For advanced users who have foreseen the possibility of access problems, there is a technical method of unlocking through a computer, which requires that the smartphone be pre-enabled function “Debugging by the computer”. USB» (USB Debugging) in the Developer Menu, if this option was activated before blocking, your chances of success are greatly increased.

You will need a computer running Windows, macOS or Linux, as well as an installed set of Platform Tools (ADB). Connect your smartphone to your PC through quality USB-If the drivers are installed correctly and debugging is allowed, the computer will be able to send commands to the device even when the screen is locked.

Open the command prompt or terminal in the ADB folder and type a command to delete the file that stores the access keys. In older versions of Android, this allowed you to completely unblock. In modern versions of MIUI, this method does not always work, since the system partition can be protected from writing, but it is worth trying.

adb shell rm /data/system/gesture.key


adb shell rm /data/system/password.key




adb shell rm /data/system/locksettings.db

Once you have the commands, you have to reboot the device, and on some models, you can log in without entering your password, and then you have to immediately set a new lock code. If you connect your phone to request debugging permission ("Always allow from this computer"), and you can't press OK on the screen, it won't work.

What if the ADB can’t see the device?
Make sure the correct driver is installed. ADB Interface. Try another one. USB-cable or port. Also check if the phone is "Charge Only" in the connection notification. USB.

It’s worth noting that on devices with disk encryption enabled, deleting key files can cause the phone to boot up or require a reset.So using ADB is only effective on devices without full user data encryption or on very old versions of Android.

Recovery Mode Reset: Risks and Reality

Often, users who are desperate to remember a password turn to Recovery Mode, a special diagnostic mode built into every Xiaomi smartphone, which can be logged in by holding down a combination of power buttons and volume up when the device is off, but this is a major trap for those who want to save data.

The Recovery menu offers the option “Wipe Data” (Wipe Data) and many hope that there is a hidden combination or secret way to reset only the password, leaving files intact. Alas, the modern security architecture of Android is built on the principle of “no password, no access to data”. The encryption key is tied to yours PIN-code-key.

If you reset through Recovery, the phone will go back to factory settings, all photos, contacts and apps will be deleted, and even more so, once turned on, the device will require you to enter a password from a Google account or Mi Account that was previously synchronized, which is Factory Reset Protection (FRP).

  • 🛑 Complete deletion of all user data.
  • 🛑 Remembering data from Google and Mi accounts.
  • 🛑 Possibility of activating the block by IMEI, if the phone was wanted.
  • 🛑 Long process of initial system reconfiguration.

⚠️ Warning: Do not attempt to interrupt the reset process by removing the battery (if it is not removable) or turning off the phone.This can damage the file system and turn the smartphone into a brick».

☑️ Preparation for hard discharge

Done: 0 / 4

Bypassing the lock through Safe Mode

Sometimes the reason you can't unlock your phone is not a forgotten password, but a conflicting application that intercepts screen control or blocks input, and in such cases, Safe Mode can help, which only runs system applications and all third-party software is disabled.

To enter Safe Mode on Xiaomi, you usually need to press the off button and then hold the "off" option on the screen for a long time until a suggestion to reboot in Safe Mode appears.An alternative method is to press the volume down button while loading the MIUI logo.

If the phone boots successfully in Safe Mode and the screen unlocks (or allows you to enter a password), then the problem was in a third-party app.You should immediately remove newly installed programs, especially those that have the rights to draw over other windows or control the lock screen.

This method does not remove the password if it is installed by system means, but it helps in situations where the lock is caused by a virus or a launcher failure. After removing the problem application, restart the phone in normal mode. If the password is still required, then it is set at the system level, and the safe mode is powerless.

💡

Safe Mode is a diagnostic tool, not a hacking tool, and it helps to resolve software conflicts that prevent password entry, but it doesn't remove the lock itself.

Specialized software and service centers

There are many programs on the Internet that promise to “remove Xiaomi password without losing data” in one click, most of which are either fraudulent or are automated scripts for the same ADB and Fastboot methods that we have already discussed. Using untested software carries high risks of infecting a computer or installing malware on a phone.

However, there are professional tools used in service centers, such as boxed solutions (Box) or paid remote unlock services, that can access bootloader vulnerabilities or use FRP bypass techniques. But even these, 95% of the time, cannot save data on modern devices with encryption enabled.

If the data on the phone is critical (such as work documents or unique photos) and the password cannot be remembered, the most sensible step is to contact the official Xiaomi service center. If you have documents confirming the purchase (check, boxes with IMEI), specialists can offer a solution. Although they often perform a reset, they have access to diagnostic logs that can tell you the reason for the lock.

Remember, there is no magic pill, and the security of your data is based on the fact that without a key, you can't access content, so the best strategy is prevention: setting up biometrics, remembering passwords, and regularly backing up to the cloud.

Can I unlock Xiaomi if I have forgotten both my password and my account?
Unfortunately, this is almost impossible without data loss, because the security system is designed so that even with physical access to memory, you can't retrieve information without the encryption keys attached to the account, and the only way to do that is to try to restore access to your account through Google or Xiaomi support.
Will unlocking through Find Device work if your phone is without a SIM card?
Yes, it is possible, but only if the phone is connected to a Wi-Fi network. If the Wi-Fi has not been configured before and the phone cannot connect to a known network, the remote command will not reach the device.
Will changing your password through Mi Cloud delete all photos?
No, the Unlock feature in the Mi Cloud is designed to remove the lock without deleting user data. However, Wipe Data will delete all information irrevocably.
What is FRP Lock and How to Avoid It?
FRP (Factory Reset Protection) is a reset protection, and then the phone will require you to enter the Google account that was on it before the reset. To avoid problems, always remember your login and password from Google and Mi accounts, or untie the device from the account before selling or resetting.