How to unlock Xiaomi Mi 6 if you forget your password

The situation where the owner of Xiaomi Mi 6 can not get into the system because of a forgotten access code or pattern lock is quite common.The smartphone, released in 2017, is still a popular device due to its performance and compactness, but its MIUI software shell has strict security protocols. If you are faced with a screen lock, it is important not to panic, but to act consistently to minimize data loss.

There are several proven methods to restore access to the device, but none of them is universal for all cases. The choice of the particular method depends on whether the Mi Account was tied, whether debugging is enabled over USB and which version of the operating system is installed at the time of locking.

It should be noted that most effective methods involve the complete removal of user information. Data partition formatting is an Android security mechanism that prevents theft of confidential information by unauthorized persons.

Using a Mi Account to Unblock

The most civilized and safe way to restore access is possible only if the locked Xiaomi Mi 6 was logged in to the Mi Account. Security system allows you to remotely or locally reset the pattern lock if the device has access to the Internet. To do this, on the lock screen after several unsuccessful attempts to enter, a timer or button "Forgot password" may appear.

If this option is available, the system will prompt you to enter a username and password from your Xiaomi account. After successful authorization, the device will offer to install a new method of protection or completely remove the screen lock. This method only works when you are actively connected to Wi-Fi or mobile network, since you need to verify the data on the manufacturer's servers.

It is important to understand that Find Device must be pre-activated in the security settings. If you do not remember your account information, you can try to restore it through the official Mi Account management page from another device. However, if two-factor authentication has not been configured and the password is lost, this method becomes unavailable.

⚠️ Note: After entering the wrong Mi Account password several times, the system can temporarily block the login for 24 hours.

There are nuances to this feature in different versions of MIUI. In the newer shells, the ability to reset a password directly from the lock screen was eliminated for security reasons, in which case even having an account will not help unlock the phone without completely resetting, but will allow you to save data through the backup function before formatting.

πŸ“Š Have you used Mi Cloud services?
Yeah, all the time.
Only when you buy it
Never set up.
I remember.

Resetting settings via Recovery Mode

If you can’t log in through your account, the only option left is to force resets through the Recovery menu, which is built into the firmware of each Xiaomi smartphone and allows you to perform low-level operations with the file system. To log in to this menu, you need to turn off the device completely and pinch the button combination.

On the Mi 6, the standard combination is to simultaneously press the volume button and the power button, hold them until the Mi logo appears, then the power button can be released while keeping the volume, and you will see a menu with a text interface, which is controlled by the volume buttons, and the choice is made by the power button.

You need to find Wipe Data or Clear Data. Depending on the version of Recovery, the menu can be in English or Chinese. If you see Chinese characters, focus on the position of the buttons: usually the desired option is at the bottom of the list or marked with the trash bin icon.

β˜‘οΈ Algorithm of actions in Recovery

Done: 0 / 4

Once you select the cleaning option, the system will require confirmation, often asking for the word yes or confirm.This is done to prevent accidental deletion of data.The formatting process can take anywhere from a few seconds to a couple of minutes. Upon completion, the phone will automatically restart and you will get a clean passwordless system.

⚠️ Note: On some versions of the firmware MIUI With increased security, logging into Recovery may also require unlocking the screen or entering a password from a Mi Account).

It’s worth noting that after this reset, when you first download the phone, you’ll need to enter a password from a Google account or Mi Account that was previously synchronized with the device, which is an FRP (Factory Reset Protection) protection mechanism that you can’t get around with simple reflashing without special knowledge.

Unlocking through computer and ADB

For advanced users who have pre-installed debugging USB (USB Debugging, there's a method of unlocking through a computer that allows you to delete the files that store the pattern lock without completely resetting all the user data. However, on modern versions of Android, this rarely works, but on the Mi 6 with older versions. MIUI chance.

This method requires you to install the Android SDK Platform Tools on your PC. Once you connect your phone to your computer in debugging mode, you need to open the command prompt and enter a command to delete key files. It is important that the phone is unlocked at least once after turning on so that the computer can access the file system.

adb shell rm /data/system/gesture.key


adb shell rm /data/system/key.lock




adb shell rm /data/system/password.key

Executing these commands will delete files that store password and pattern lock hashes. Once the device is rebooted, the lock should disappear, and you can set a new pin. If the phone requires unlocking even after rebooting, then the key files are stored in a secure partition accessible only by root rights.

What if the ADB can’t see the phone?
If the computer makes a connection sound when connecting, but the device does not appear in the list ADB, Check the drivers installed. Xiaomi often requires the installation of universal Google drivers USB Driver or Qualcomm specific drivers. also make sure that the cable USB It's good and supports data transfer, not just charging. USB-Port 2.0 instead of 3.0.

The effectiveness of this method depends on the access rights that were obtained on the device earlier. If the Xiaomi Mi 6 was not obtained root rights, the system can block the attempt to delete system files even through ADB.

Use of Google Device Search Services

An alternative way that sometimes works on older versions of Android is to use Google’s Find My Device service.If the blocked Xiaomi Mi 6 had internet and geolocation enabled, and a Google account logged in, you can control the device remotely.

Go from any other device to google.com/android/find and log in with the same account. The service will try to locate the phone. The management menu has three options: Call, Lock and Clear the device.

The Lock feature allows you to set a new temporary password that replaces a forgotten pattern lock or pin. By entering this new password on your phone screen, you will gain access to the system. However, on Android 9 and higher, this feature is often limited to only remotely resetting data, not changing the password.

MethodData retentionInternet availabilityDifficulty
Mi Account.Maybe.I'll be sure.Low.
Recovery ModeNo (full reset)Not requiredMedium
ADB CommandsYes.Not requiredTall.
Google Find MyNo (most often)I'll be sure.Low.

πŸ’‘

Before performing any manipulations with Recovery, if possible, extract SIM-This will protect your SIM contacts and files on an external drive from accidental damage or formatting.

FRP blocking problem (Google Account)

After successfully resetting the settings through the Recovery menu, users often encounter an activation screen that requires you to enter a password from your Google account, which is FRP (Factory Reset Protection), which is activated if the phone was reset through a non-standard settings menu, the system β€œthinks” that the device is stolen, and blocks access to the system.

If you remember the username and password from the Google account that was synced to the phone before locking, just type them in. Problems arise when this data is also forgotten, in which case the standard methods to unlock the Xiaomi Mi 6 will not work.

To bypass FRP on the Mi 6, there are specific exploits that depend on the Android version (often Android 8.0 Oreo) and the security patch. Users exploit vulnerabilities in the browser or accessibility settings (TalkBack) to access the settings menu and delete the account. However, these methods are quickly closed with security updates.

⚠️ Note: Using third-party software to bypass FRP Only download tools from trusted forums, as attackers often disguise viruses as unlockable software.

In some cases, resetting the time and date in the recovery menu (if you have access to the engineering menu) helps, but on the Mi 6, this works unstable. The most reliable, but paid way is to contact the service center with a purchase check confirming ownership of the device.

Prevention and backup

To avoid future media and loss of important data, you need to configure backups regularly. Xiaomi smartphones have a powerful tool for creating backups. It is recommended to set up automatic synchronization of contacts, calendar and notes with Mi Cloud or Google account.

For photos and videos, it is best to use Google Photos or Mi Cloud storage. In the gallery settings, you can enable the Sync function, which will automatically upload new images to the cloud when you connect to Wi-Fi. This ensures the safety of memories even if the smartphone is completely broken.

It's also useful to periodically create a full backup system to your computer or external drive. In the "Advanced Settings" -> "Recovery and Reset" section, you can find the "Backup" item. Once you create a backup file, save it to your PC.

πŸ’‘

Regularly syncing data to the cloud is the only way to ensure that a forgotten password does not lead to the irretrievable loss of important photos and documents.

Write down your passwords from your main accounts in a secure location or use a password manager. Human memory is imperfect, and complex passwords necessary for security are most often forgotten. Having a recorded recovery code will save you from troubleshooting hours.

Can I unlock the Xiaomi Mi 6 without losing data?
Without data loss, you can unlock the device only if you previously debugging via USB and you know how to use ADB, or if the method works with a Mi Account on older versions of MIUI. In 95% of cases, with a forgotten password, you will have to perform a full reset (Wipe Data), which will delete all information from internal memory.
What if the phone asks for a password from the Mi Account after resetting?
This is standard anti-theft protection. You need to enter the username and password from the account that was linked to the phone before the reset. If you don't remember the data, try to retrieve access through i.mi.com from your computer. Without this data, it's almost impossible to unlock the device legally.
Does the password reset your fingerprint?
Yes, when you reset with Recovery (Wipe Data), all biometric data, including fingerprints and facial recognition data, are deleted, and after you reboot, you'll have to reconfigure them, because the old encryption keys will be destroyed.
Will the phone flashing help?
Flashing (installing a new version of MIUI via Fastboot) will also clean up data unless you use special scripts that don’t work on modern phones without an unlocked bootloader. In addition, FRP protection (Google account) is maintained even after full firmware, as it is tied to Google servers, not files on the phone.