The forgotten pattern lock on Xiaomi Redmi is a situation that even experienced users face. PIN-It is harder to remember a pattern, especially if you rarely change it or trust to unlock your fingerprint. Fortunately, the manufacturer has provided several official and alternative ways to restore access β from a simple reset via Mi Account to complex manipulations in the Fastboot mode.
It's important to understand that not all methods guarantee data safety. For example, a hard Recovery reset will remove all information from the device, including photos, contacts and messages. However, if the phone was enabled sync with Google or Mi Cloud, some data can be restored after unlocking. In this article, we will discuss 7 working methods, from the most secure to radical, and also explain how to avoid such problems in the future.
Before you start, check:
- π Battery level (minimum 30%, otherwise the phone may turn off during the process).
- πΆ A stable Internet connection (for methods with account binding).
- π§ Access to a computer (required for some methods).
If the phone is sending a message βToo many pattern attemptsβ, wait 30 seconds for the system to offer alternative unlock options (for example, through the use of a new system). PIN-backup code or Mi Account).
1 Unlocking through Mi Account (official method)
The most reliable and recommended method Xiaomi uses is a tied Mi Account, which works if:
- π± The phone is connected to the Internet (Wi-Fi or mobile network).
- π Remember the username and password from Mi Account.
- π Synchronization is enabled on the device (even if you have not previously used it).
Instructions:
- After 5 unsuccessful attempts to enter the pattern lock, the button βForgot password?β or βForgot pattern?β will appear.
- Select the option "Sign in with Mi Account".
- Enter the email or phone number associated with the account, and then the password.
- Confirm your login via SMS or email (if two-factor authentication is enabled).
- Create a new pattern lock or PIN-code.
β οΈ Note: If you haven't previously tied a Mi Account or don't remember the login details, this won't work.
π‘
If you do not remember the password from Mi Account, restore it to the official website account.xiaomi.com via email or phone number.Do not use third-party services - this can lead to data leakage!
2 Unblocking through Google Account (for Android 4.4 and below)
This method only works on older Redmi models (e.g. Redmi 1S, Redmi 2) with Android 4.4 KitKat or lower.
How to unlock:
- After several unsuccessful attempts to enter the pattern, the option βForgot the pattern lock?β will appear.
- Click on it and select βLogin through Google Accountβ.
- Enter the email and password from Google that was linked to the phone.
- Create a new graphical password.
If that didn't work, you've got a newer version of Android on your device. Go to other methods.
Why did Google remove this feature?
3. Reset the pattern lock via Recovery (with loss of data)
If previous methods didnβt work, youβll need to use Recovery mode, which will remove all data from your phone, including photos, apps and settings, but will return access to the device, which is suitable for all Redmi models (from Redmi 3 to Redmi Note 12).
Instructions:
- Turn off the phone with a long press on the power button.
- Press the key combination to enter Recovery: π Redmi 4/5/6/7/8/9 Series: Volume up + Nutrition. π Redmi Note 3/4/5/6/7/8/9/10/11: Loudness up + Nutrition (on some models - Volume down) + Nutrition). π Redmi K20/K30/K40/K50: Loudness up + Food (hold on) 10β15 seconds).
Mi
Recovery
Use volume buttons for navigation and power button to select the item.
Wipe Data
Wipe All Data
Factory Reset
Confirm
Reboot
Reboot to System
β οΈ Note: If the phone has enabled data encryption (in the security settings) β Encryption, after reset via Recovery, the device may require the entry of the old pattern lock, in which case you will have to use the Fastboot method (see next section).
Make sure your phone is at least 50 times charged%|Download drivers for your Redmi model (if you need a PC connection)|Backup your important data (if your phone has previously synced to Mi Cloud)|Remember the data from Mi Account (required to set up after resetting)-->
4. Unlock via Fastboot (for advanced users)
The method via Fastboot is suitable if:
- π§ The phone's debugging on. USB (Settings β The phone. β Version. MIUI β 7 times to activate the developer mode).
- π» Access to a computer with drivers installed ADB/Fastboot.
- π You are ready for possible data loss (depending on the team).
Step-by-step:
- Turn off the phone and put it in Fastboot mode: Volume down + Power Hold until the screensaver with a rabbit in a hat-eared (Fastboot logo) appears.
- Connect your phone to your computer through USB-cable.
- Download and install Platform Tools (includes fastboot and adb).
- Open the command prompt (Win + R β enter cmd) and check the connection: fastboot devices If the phone is recognized, you will see its serial number.
- Run the command to reset the pattern lock (without loss of data): fastboot erase gesture.key or (for new models): fastboot erase locksettings
- Reboot the device: fastboot reboot
If the commands didnβt work, try a full reset (remove all data):
fastboot erase userdata
fastboot rebootβ οΈ Note: Some Redmi models (e.g. Redmi Note 10 Pro) may require re-assignment of Mi Account after fastboot erase gesture.key. If the phone gives an error "This device is locked", it means that the Mi Cloud Lock protection is activated - you will need official unlock through the service center.
5. Use of service codes (hidden functions)
Some Redmi models have service codes that allow you to reset your graphical password without losing data.
Instructions:
- Open the phone application (calls).
- Type one of the codes: Code Description of Models running ##7780### Reset (without deleting data) Redmi 3/4/5, Redmi Note 3/4 *2767*3855# Complete reset (removes all) Redmi 1S/2/2 Prime ##3646633## Engineering menu (may contain reset option) Most models on MediaTek
- If the code works, follow the instructions on the screen.
β οΈ Attention: Code *2767*3855# It'll do a full reset without confirmation, don't enter it unless you're ready to lose data.
6. Unlock via ADB (if USB debugging is enabled)
If the phone has previously been activated debugging over USB (Settings β For developers β Debugging over USB), you can delete the file with the pattern lock via ADB.
Instructions:
- Connect your phone to your computer via USB.
- Open the command line and check the connection: Adb devices If the device is displayed, go further.
- Enter the commands alternately: adb shell su rm /data/system/gesture.key reboot If root access is requested but not available, try the alternative command: adb shell rm /data/system/locksettings.db
- Reboot the phone.
After the reboot, the pattern lock will be reset, but some settings (such as saved Wi-Fi networks) may disappear.
π‘
The ADB method only works if the USB debugging was enabled before the phone locks, and if you activate it now, the computer won't be able to connect to the locked device!
7. Contact the Xiaomi Service Center
If none of the methods worked, the last option is to contact the official service center Xiaomi.
- π The phone is tied to Mi Account, but you don't remember the login details.
- π‘οΈ Mi Cloud Lock is activated (this device is locked").
- π± The device does not respond to standard unlock methods.
What will be required to unlock:
- π Document confirming the purchase (check, warranty card).
- π Passport or other identification document.
- π³ Payment for the service (cost varies from 500 to 2000 rubles depending on the model).
The service center can unlock the phone in two ways:
- Software reset β through special software (saves data if the phone is not encrypted).
- Flashing β Complete reinstallation of MIUI (deletes all data).
β οΈ Attention: Don't go to informal workshops! Fraudsters can steal data from your phone or install malware. Xiaomi's official service centers in Russia can be found on the website mi.com/ru/service.
How to avoid blocking in the future
To avoid the problem of a forgotten pattern lock, follow these simple tips:
- π Use it. PIN-code instead of a graphical password, it is easier to remember.
- π± Set up unlocking by fingerprint or facial recognition (in Settings) β Screen locking).
- βοΈ Enable synchronization with Mi Cloud (Settings) β Xiaomi account β Mi Cloud β this will help to recover data after resetting.
- π Write down the backup. PIN-code in a secure location (for example, in a notebook or password manager).
- π Regularly update the firmware in new versions MIUI Improvement of access restoration mechanisms.
You can also configure Smart Lock, a feature that automatically unlocks your phone in secure environments (such as at home or when connecting to a trusted device via Bluetooth). β Screen locking β Smart Lock.
π‘
If you often forget passwords, install an account management app (like Bitwarden or KeePassDX) and save a backup. PIN-code.