The forgotten pattern lock on Xiaomi Redmi is a situation that one in five users face. The main problem is that most standard unlock methods (such as resetting via Recovery) lead to complete loss of data - photos, contacts, messages. However, there are legal ways to bypass the lock without formatting internal memory if you have previously activated certain functions or have access to a computer.
In this article, we will discuss 5 working methods for the Redmi Note 10/11/12, Redmi 9/10, POCO X3/X4 and other devices based on MIUI 12-14. Importantly, the effectiveness of methods depends on the firmware version, the presence of Mi Account and the status of OEM Unlock. Some methods require preliminary preparation (for example, enabled debugging over USB), so if you read this BEFORE blocking, immediately activate all options from the Prevention section.
1 Unlocking through Mi Account (official method)
The safest method is if your Xiaomi Redmi has a Mi Account attached (even if you donβt remember the password). Xiaomi provides an official tool for resetting the pattern lock via the web interface, but with limitations:
- π± The device must be connected to the Internet (Wi-Fi or mobile network).
- π On the smartphone should be activated synchronization with Mi Cloud (checked in Settings) β Xiaomi account β Mi Cloud).
- β³ After 5 failed attempts to enter the key, the button βForgot the passwordβ will appear?Β».
Step-by-step:
- On the lock screen, click βForgot your password?β (appears after several incorrect attempts).
- Enter the username and password from Mi Account. If you do not remember, restore it via account.xiaomi.com.
- Confirm unlocking via SMS or email (depending on your account security settings).
- Install a new pattern lock or PIN-code.
β οΈ Note: If the device has enabled the option βFind the deviceβ (Settings) β Xiaomi account β Find the device, after unlocking, additional confirmation may be required through SMS.
2. Use Safe Mode (if the key is recently installed)
Safe Mode allows you to temporarily disable third-party applications, including those responsible for locking the screen.
- π The pattern lock was installed less than 24 hours ago.
- π² There is no factory reset via Recovery on the device.
- π§ You can physically interact with your phone (power and volume buttons).
How to activate Safe Mode:
- Turn off Redmi with a long press of the power button.
- Hold the volume button and turn on the phone without letting it go until the MI logo appears.
- Release the button when the βSafe Modeβ appears at the bottom of the screen.
In this mode:
- Go to Settings β Passwords and Security β Screen Lock.
- Enter the old one. PIN-If you do not, reset the key via Mi Account (see Section 1).
- Restart your phone in normal mode.
π‘
If Safe Mode is not activated, try the Power button + Volume Up combination β on some Redmi models (like the Note 8 Pro) this works.
3. Unlock through ADB (pre-setting required)
The method is for advanced users who have enabled USB debugging beforehand (Settings β About Phone β MIUI Version β 7 times press to activate Developer Mode, then Settings β Additional β Developers β USB debugging). If this option is not activated, the method will not work.
Tools required:
- π₯οΈ Computer with Windows/Linux/macOS.
- π USB-cable (original, do not damage the connector!).
- π¦ Established ADB and Fastboot.
Instructions:
- Connect Redmi to your computer and confirm your trust in the device (if you request it).
- Open the command prompt (Windows) or terminal (Linux/macOS) and type:
adb shell
su
rm /data/system/gesture.key
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rebootAfter the reboot, the pattern lock will be reset. If the adbd cannot run as root error appears, then the bootloader is not unlocked on the device (see section 5).
Install ADB on PC| Enable USB debugging on Redmi| Connect the original cable | Check trust in the device | Download drivers for Xiaomi-->
4. bypass the key through Google password reset (for older versions of MIUI)
This method worked on Xiaomi Redmi with MIUI 9-11 Android 8-9, But in the newer versions, Xiaomi has disabled it for security reasons, but on some devices (e.g., Redmi). 5/6/7) It might work.
Conditions:
- π§ Google account is linked to the phone.
- π Internet access (Wi-Fi or mobile network).
- π On the lock screen there is a button "Forgot your password?" (not to be confused with Mi Account!).
How to reset:
- On the lock screen, enter the wrong key 5 times until βForgot your password?β appears.
- Select βRestore via Googleβ (if the option is available).
- Enter the login and password from the Google account that was linked to the device.
- Install a new pattern lock.
β οΈ Attention: MIUI 12+ If you don't have a "Restore through Google" button, you can go to other ways.
Why Xiaomi has removed the reset via Google?
5. Unlock bootloader and firmware (extreme case)
If none of these methods work, you just unlock the bootloader and flash the device through Fastboot, which erases all data but returns access to the phone, and is suitable for Redmi Note 10 Pro, POCO F3 and others with Qualcomm chipsets.
What will be required:
- π₯οΈ Computer with Mi Unlock Tool installed.
- π Original. USB-cable (C or microUSB type, depending on the model).
- π Mi Account linked to the device (required!).
- β³ 72 hours waiting (unless the bootloader is unlocked).
Step-by-step process:
- Turn off your phone and press the power + volume button to log into Fastboot Mode.
- Connect Redmi to your PC and start the Mi Unlock Tool.
- Sign in to your Mi Account (should match your phone account!).
- Click Unlock and wait until the process is complete (may take up to 3 days if the device is new).
- After unlocking, run your phone through the Mi Flash Tool with the official firmware (you can download it on new.c.mi.com).
| Model Redmi | Waiting time to unlock | Is a Mi Account Required? |
|---|---|---|
| Redmi Note 10/11 | 72 hours (unless previously unlocked) | Yes. |
| Redmi 9/9A/9C | 24 hours. | Yes. |
| POCO X3/X4 | 168 hours (7 days) | Yes. |
| Redmi 8/8A | Instantly (if unlocked previously) | No. |
Important: Once the firmware is fully cleared, to avoid data loss in the future, set up automatic backup in Settings β Xiaomi Account β Mi Cloud β Backup.
π‘
Unlocking the bootloader is the only way to get back access to the Xiaomi Redmi if the pattern lock is forgotten and other methods have failed.However, this leads to complete data loss and requires a wait of up to 7 days.
6.Prevention: How to avoid blocking in the future
To avoid the problem of a forgotten pattern lock, follow 5 simple steps right now:
- π Set up a backup. PIN-code β Passwords and security β Screen locking β Reserve password.
- βοΈ Activate Mi Cloud and enable backup (Settings) β Xiaomi account β Mi Cloud β Backup).
- π₯οΈ Put the debugging on. USB (Settings β The phone. β Version. MIUI β 7 times press β return to β For developers β Debugging by USB).
- π Write down the pattern lock in a secure location (e.g., Google Keep with encryption).
- π Check regularly if your Mi Account is linked to your device (Settings) β Xiaomi account).
What not to do:
- β Donβt set complex keys that are hard to remember (e.g. zigzags through all 9 dots).
- β Donβt turn off sync with Mi Cloud β itβs the only way to recover data after a reset.
- β Do not use unofficial firmware (custom) ROM), If you are not sure about their safety, they can block access to the Mi Account.