A forgotten graphical key to an app on Xiaomi can be a serious problem β especially if it comes to banking services, instant messengers or work utilities. Unlike unlocking the smartphone screen, where Mi Account often helps, deprotecting a particular application requires other approaches. Fortunately, MIUI has several legal ways to get around this lock without losing data, from simple Safe Mode to advanced ADB commands.
It is important to understand that the methods vary in complexity and risks. For example, resetting the application settings through the phone menu is suitable for most users, but working with ADB will require skills and can lead to data loss if you do not act correctly. In this article, we will discuss all the current ways for Xiaomi on MIUI 12-14, including the Redmi Note 10/11/12 models, POCO F3/F4 and Xiaomi 13/14 flagships. If you are not sure about yourself, start with the safest options.
1. Unlocking through Safe Mode (without data loss)
Safe Mode is the easiest way to temporarily disable the appβs graphical key, and in this mode, Xiaomi loads without third-party services, often bypassing the lock.
How to activate:
- π Turn off your smartphone, then hold the Power button until the logo appears. MI.
- π Once the logo appears, press and hold the Volume Down button until the system is fully loaded.
- π± In the lower left corner of the screen will appear the inscription Safe Mode β now you can open the blocked application.
In Safe Mode, the graphical key of some applications (such as WhatsApp or SberBank Online) is reset automatically, but once rebooted to normal mode, the lock can return, a method suitable for one-time access to data.
β οΈ Attention: B MIUI 14 on some models (Xiaomi 13 Pro, Redmi Note 12 Pro)+) Safe Mode may not work for hardware-encrypted applications (like Google Pay.
2. Reset application settings via MIUI settings
If Safe Mode doesnβt work, try resetting your application settings, which works for most programs other than system ones (such as Mi Wallet or Security).
Instructions:
- Open Settings β Applications β Application Management.
- Find the blocked application in the list and tap it.
- Select Warehouse β Clear data and Clear cache.
- If you have the option Reset settings β use it.
Once reset, the app will return to factory settings and the pattern lock will be deleted, but any unsaved data inside the program (such as chats in Telegram or drafts in Word) will be lost.
Make sure there are no important unsaved data
Backup via Mi Cloud (if supported)
Remember the login / password from the account in the application
Check for alternative methods of entry (SMS, email)-->
3.Use ADB to remove pattern lock
ADB (Android Debug Bridge) is a powerful tool for power users to control a smartphone through a computer, which can remove a file with a pattern lock directly from the deviceβs memory.
Before we start:
- π₯οΈ Install. ADB and Fastboot Tools on PC.
- π Turn on Debugging. USB In Settings β The phone. β Version. MIUI (Tap 7 times, then return to the Additional Settings β For developers).
- π‘ Connect Xiaomi to a PC and confirm trust in your computer on your smartphone screen.
Commands to delete the key (enter Command Prompt or Terminal):
adb shell
su
cd /data/data/[annext package]/shared_prefs
rm [name file with key].xml
exit
exitTo find out [app package], use the command:
adb shell pm list packages | grep "appendix name"β οΈ Attention: Misuse of the right ADB Do not delete files unless you are sure of their purpose. For encrypted applications (such as Mi Home), this method may not work.
How to find a file with a pattern lock?
4. Delete via Mi Account (for system applications)
If you block a system application (Mi Wallet, Security, Gallery), you can try resetting it through your Mi Account, which only works for devices associated with your Xiaomi account.
Steps:
- Go to the Mi Account website and log in.
- Select Devices β Find your smartphone β Manage your device.
- Click Reset App Settings (not available for all models).
This method is suitable for Xiaomi with MIUI Global and may not work on custom firmware or regional versions (e.g. MIUI China).
| Method | Difficulty | Loss of data | Works for |
|---|---|---|---|
| Safe Mode | β | No. | Third-party annexes |
| Resetting settings | ββ | Yes (inside the annex) | Any applications |
| ADB | βββ | Possible. | Applications without hardware encryption |
| Mi Account | ββ | No. | System applications |
| Hard Reset | ββββ | Yes (full) | All cases |
5.Extreme measure: Hard Reset (full reset)
If none of these methods work, you'll have to completely reset your settings, which will delete all the data on your device, including photos, contacts, and apps you've installed, and use this as a last resort.
How to make Hard Reset on Xiaomi:
- Turn off your smartphone.
- Press Power + Volume Up until the Mi Recovery logo appears.
- Select Wipe Data β Wipe All Data (manage volume buttons, confirmation β power button).
- After resetting, restart the device.
β οΈ Note: On models with a locked loader (Xiaomi) 12T, Redmi K50) After Hard Reset, you may need to log in to the Mi Account that's tied to the device!
π‘
Before reset, check if sync with Mi Cloud is enabled (Settings β Xiaomi Account β Mi Cloud) to help restore contacts and photos after the reboot.
6. Alternative methods (for specific applications)
Some applications have built-in access recovery mechanisms, such as:
- π¬ WhatsApp: Send the confirmation code to the linked phone number.
- π¦ Sberbank Online: Use the backup code from SMS or.
- π· Gallery: Transfer photos to PC via MTP, Then reset the application settings.
For Google applications (such as Gmail or Google Drive), you can use the Google Account Manager and reset your password/key via the web interface.
π‘
Before using alternative methods, check if the pattern lock is linked to the developer account (for example, in 1Password or KeePass), in which case recovery is possible only through their services.
Frequent Mistakes and How to Avoid Them
Many Xiaomi users make the same mistakes when trying to remove a pattern lock:
- π They don't include debugging. USB beforehand ADB β Without this command, no one will follow.
- π± Try to unlock system applications through Safe Mode, although this only works for third-party software.
- π Do not back up before resetting settings, losing important data.
- π Use unofficial firmware where methods with Mi Account do not work.
If you are experiencing adb: device unauthorized, check:
- Is access to debugging on the smartphone screen confirmed?
- Are the correct Xiaomi drivers installed on PC?
- Is the regime on? USB-Debugging in the Developer's Settings.