How to remove graphical password from Xiaomi phone: full methods of unlocking

The situation of the owner forgetting the pattern lock is one of the most common problems in the Android ecosystem, and Xiaomi smartphones are no exception. Modern security systems MIUI and HyperOS are designed to maximize the protection of user personal data from unauthorized access, which is why simply taking and disabling protection without proof of ownership of the device will not work β€” this is a basic principle of security.

However, there are legal ways to restore access to the gadget if you forget the complex pattern. Depending on the version of the operating system, the presence of a Mi Account and the debugging settings included, the methods can vary significantly, in some cases you can do without losing data, in others you will have to resort to a complete reset of the device before factory settings.

In this detailed guide, we will break down all the current ways to remove graphical passwords from Xiaomi, Redmi and POCO phones. We will look at official methods through cloud service, use of safe mode and radical measures to clean up memory. It is important to understand that every step requires care, as an error can lead to a device lock or loss of important information.

⚠️ Warning: Attempting to hack into someone else's devices or bypass security without the owner's knowledge is illegal and this instruction is intended solely to restore access to your personal gadgets in case you forget your password.

Using a Mi Account to Unblock

The most civilized and secure way to lock is for those users who have previously linked their smartphone to a Mi Account. If the device has a Find Device feature on it, the system allows you to remotely or directly on the lock screen to reset the pattern lock, which works on most models released in recent years.

This method requires that the phone be connected to the Internet (Wi-Fi or mobile network). After five failed attempts to enter the pattern lock, a countdown timer and a button "Forgot password" or "Forgot the pattern lock" usually appear on the lock screen.

In the window that opens, you need to enter your Mi Account login and password, and once you have successfully verified it will prompt you to unlock your device, and this process will not delete your data, photos, or contacts, which makes this the preferred method, but if the phone's Internet connection is disabled or the account is not linked, this option will not work.

  • πŸ”‘ Make sure your smartphone is connected to Wi-Fi or mobile network before entering data.
  • πŸ“± Enter data from the Mi Account that was the main one on the device.
  • ⏳ After unlocking, it is recommended to immediately change the pattern lock to a more memorable one.
  • ☁️ Check the synchronization status in the "Settings" menu" β†’"Mi Account after login.

πŸ’‘

If you remember the password from your Mi Account, but the system does not accept it, try to restore access to your account through your computer on the official i.mi.com website first, and then try to unlock it again on your phone.

It is worth noting that newer versions of HyperOS firmware and recent MIUI 14 updates have tightened security policies, and in some cases, the system may require not only a password from the account, but also a confirmation code sent via SMS to the associated number, an additional measure of protection that cannot be circumvented without access to the owner's SIM card.

Resetting settings via Recovery Mode

If you can’t log in, the only guaranteed way is to completely reset your device to the factory settings (Hard Reset), which removes the pattern lock along with all the user’s data: photos, contacts, apps and files, so it should only be used as a last resort when other options are exhausted.

To enter Recovery Mode recovery mode, Xiaomi smartphones use a combination of physical buttons. Usually you need to turn off the device and press the volume button along with the power button, hold them until the Mi logo or the Recovery menu appears. Some models may require a charger connection.

In the Recovery menu, you can control the volume buttons (up/down), and the power button confirms the choice. You need to find Wipe Data or Clear Data. Once you select this item, the system will request confirmation, often requiring you to type in the word "yes" or select Confirm. The cleaning process takes from a few seconds to a couple of minutes.

β˜‘οΈ Preparing for resetting through Recovery

Done: 0 / 5

⚠️ Warning: After resetting through Recovery on modern devices will work protection FRP (Factory Reset Protection: The phone will require you to enter a Google account or Mi Account that was synced to the device before the reset. Without that data, the phone will become a brick".

Once the cleaning procedure is complete, select Reboot or Reboot to System. The phone will reboot and start as new, requiring initial setup, and the pattern lock will be completely deleted as the entire user data section is erased.

Unlocking through Safe Mode

This method is less well known but sometimes effective, especially if the lock was caused by a third-party application or a launcher malfunction.Safe Mode loads the Android operating system with system applications only, disabling all third-party software. If the pattern lock was installed by some locker application, it will not work in safe mode.

To enter Safe Mode on Xiaomi, you usually need to press the off button on the lock screen (if you have access) or use a button combination when booting. On some models, you just need to turn off the menu button until you prompt to go to Safe Mode. On others, you need to press the volume button immediately after the Mi logo appears.

If you manage to get to the desktop in safe mode (usually in the corner of the screen there is a corresponding inscription), immediately go to the settings. You need to find the section with the lock screen or application management, you can either disable the password requirement or delete the application that caused the lock.

  • πŸ›‘οΈ Safe mode does not delete your personal data and files.
  • πŸ“² In this mode, third-party widgets and design themes are not available.
  • πŸ”„ To get out of safe mode, it is enough to simply restart the phone in the usual way.
  • πŸ” If the password is left, it means that it is installed systemically, and this method will not help.

It is important to understand that on modern versions of MIUI, entering safe mode is often also protected by a graphical key or biometrics. If the system requests unlock immediately after downloading Safe Mode, then this method, alas, will not work, and you will have to use a reset.

Why is the safe regime not working?
On Android 10 and above devices, as well as on MIUI 12+ shells, login (even in Safe Mode) is strictly controlled by the Keyguard system service. This is done to prevent data theft: even if an attacker tries to load the phone into safe mode, he does not bypass the lock screen without knowing the password or biometrics.

Use of debugging by USB and ADB

For advanced users who have had pre-enabled debugging USB (USB Debugging, there is a technical way to delete a file that stores access keys. This method does not require data reset, but only works if the debugging function was activated before blocking and the computer was given access permissions.

The method involves connecting your smartphone to your PC and using the Android Debug Bridge (ADB) toolkit, and you can send a command to delete gesture.key or password.key system files, which are responsible for storing the hash of the pattern lock, and after deleting the file and rebooting, the phone will not ask for a password.

adb shell rm /data/system/gesture.key


adb shell rm /data/system/locksettings.db




adb shell rm /data/system/locksettings.db-wal




adb shell rm /data/system/locksettings.db-shm

Executing these commands requires the Xiaomi driver installed and the SDK platform installed on your computer. If you connect your phone to request debugging permission and you can't press "Allow" because the screen is locked, it won't work. This is a critical limitation that makes it only applicable in a narrow range of cases.

πŸ’‘

The ADB method is effective only if the USB debugging was enabled and the computer was already authorized to work with the device.

Also, it is worth considering that on devices with data encryption (which is the standard for Android 7.0 and above), deleting these files may not work without entering a password on the first download after reset.

Comparison of methods and possible risks

The choice of unlocking method depends on the specific situation: the presence of an account, settings and software version included. To make it easier for you to navigate, we have prepared a comparative method table that will help you assess the risks and conditions for each option.

MethodData retentionConditions requiredRisks.
Mi Account.Yes (full)Internet, account passwordLow if you remember the password
Recovery ModeNo (complete removal)Physical access to buttonsFRP (Google/Mi Account)
Safe regimeYes.Third-party software failureIt often doesn’t work for new MIUIs.
ADB teamYes.USB debugging enabledComplexity, risk of errors in the code

The biggest risk is a reset via Recovery, because it activates theft protection. If you don't remember the password from a Google account that was synced to your phone, unlocking the device after the reset will be extremely difficult, even by official methods, in which cases you need to contact the service center with purchase checks.

It is also worth mentioning the risk of damage to system files when using the system. ADB-Incorrectly deleting system keys can lead to a cyclic bootloop, where the phone is constantly hanging on the logo, in which case only flashing the device through the computer will help.

πŸ“Š Have you ever been blocked by a pattern lock?
Yes, and the data was saved.
Yeah, I had to do a reset.
No, but I'm afraid of it.
I'm only using biometrics.

Prevention of blocking and expert advice

To avoid such situations in the future, mobile security experts recommend using biometric protection methods in conjunction with simple security. PIN-Facial unlocking or fingerprinting on Xiaomi works quickly and conveniently, and the pattern lock can be used as a backup method that you will definitely not forget.

Check your Mi Account sync status regularly, make sure Find Device is active, not only will it unlock your phone, but it will also allow you to remotely erase data or locate your gadget in case it is lost or stolen, and it is also useful to back up important data in the cloud or on your computer periodically.

If you install complex graphic keys, write them down in a secure location, or use password managers. Human memory is unreliable, and a complex pattern invented a month ago can become an insurmountable barrier. Simple patterns (like an "L" or a square) are easier to remember, but easier to pick up, so strike a balance between convenience and security.

What if your phone says β€œToo many attempts to enter a pattern lock”?
This is the system's security mechanism. You'll have to wait for a specified time (30 seconds to 30 minutes) before the system allows you to enter the key again. The interruption of the wait (turning off the phone) often resets the timer, but not always. It's better to wait until the time ends and enter the correct key or use the "Forgot password" button.
Can I unlock Xiaomi without losing data if I don’t remember my account?
Officially, no. Android security is designed to encrypt data with a key attached to the unlock password, without a password or an account, you can't access data, and third-party services that promise to unlock without losing data for money are 99 percent fraud.
Will Recovery Reset Work if Find Device is enabled?
Yes, the Recovery reset will be done and the pattern lock will be deleted, but once the phone is rebooted, it will require you to enter a password from the Mi Account or Google account that was on the device before the reset, which is FRP protection that can't be circumvented by a simple reset.