Forgot the password from WhatsApp, Gallery or banking app on Xiaomi smartphone?The situation is familiar to many: you set up security "just in case" and after a month you can't remember the combination. Fortunately, MIUI has several legal ways to unblock without losing data - from simply resetting the app's settings to advanced methods through ADB.
In this article, we will discuss 5 proven methods running on Xiaomi Redmi, POCO and Mi with MIUI 12-14 versions (including HyperOS). Importantly, not all methods are universal - some require root rights or PC connection. Let's start with the safest and end with "heavy artillery" for experienced users.
We warn you right away: if we are talking about banking applications (for example, Sberbank Online or Tinkoff), it is better to use the official procedure for restoring access through support, self-activity can lead to the blocking of an account on suspicion of hacking.
1. Reset application settings (without data loss)
The easiest way is to reset the settings of a particular application through the MIUI menu.This will delete the saved passwords, but will not affect personal files (photos, messages, etc.), The method works for most programs except system ones (for example, com.miui.gallery).
Instructions:
- π± Open the Settings. β Annexes β Application management.
- π Find a blocked application (such as WhatsApp) and tap it.
- π Select Warehouse and Cache β Delete data (or Reset settings).
- β οΈ Confirm the action. The app goes back to factory state, and the password is removed.
β οΈ Note: For some applications (e.g. Telegram), the data reset will result in the account being logged out, in which case you will need to re-authorize the account. SMS email.
Make sure you have a backup of your app data (if important)
Remember the login / password from the account (for messengers and social networks)
Check if your account is linked to a phone number (for banking applications)
Disable two-factor authentication (if enabled)
-->
If after reset, the app asks for a password, try entering standard combinations:
- π’ 0000 or 1234 β default PIN-codes.
- π Date of birth (for example, 1985 or 2512).
- π± The Last 4 Figures IMEI Your Xiaomi (you can find out in *#06#).
2. Use of Safe Mode (Safe Mode)
Safe Mode is an Android diagnostic mode that disables all third-party apps, and it will help if the password is not set by the system, but by a third-party blocking program (for example, AppLock or Smart AppLock).
How to start:
- Press the power button on the phone turned off.
- Hold your finger on the option to turn off (or reboot) until the prompt to go to Safe Mode appears.
- Confirm the transition. After the reboot, the bottom left corner of the screen will show the word Safe Mode.
In this mode:
- π Try to open a blocked application β if the password is set by a third-party utility, access will be unlocked.
- ποΈ Remove the blocker program through Settings β Annexes.
- π Restart your phone in normal mode.
β οΈ Warning: Safe Mode doesn't have widgets, live wallpaper, or some system features. If you have a password left after you quit, move on to the next way.
Xiaomi (Redmi/POCO/Mi)
Samsung
Huawei/Honor
Realme/Oppo/Vivo
Another brand
-->
Bypassing the lock via ADB (for power users)
If previous methods have failed, Android Debug Bridge (ADB) is a PC debugging tool that requires USB debugging enabled (if activated previously) and is suitable for unlocking system applications (such as Gallery or Notes).
Step-by-step:
- π₯οΈ Install. ADB Tools on the computer (Windows/macOS/Linux).
- π± On the phone, turn on the debugging. USB In Settings β The phone. β Version. MIUI (Tap 7 times, then return to the additional β For developers).
- π Connect Xiaomi to the PC by USB (Select the File Transfer Mode).
- π Open the command line (or Terminal) and enter:
adb shell pm clear com.miui.gallery # For Gallery
adb shell pm clear com.android.contacts # For Contacts
adb shell pm clear com.whatsapp # For WhatsAppReplace com.miui.gallery with your applicationβs batch name (you can find out through adb shell pm list packages | grep βnameβ).
β οΈ Note: pm clear commands will delete all application data, including settings and cache. For banking programs, this may result in account locking!
How to find out the batch name of the application without ADB?
4. Reset password through Mi Account (for system applications)
If you block a Xiaomi system application (such as Notes, Calculator or Browser), you can use a tied Mi Account. This method only works for devices with active synchronization.
Instructions:
- π Go to account.xiaomi.com and log in.
- π§ In the Devices section, select your smartphone.
- π Press Find the device. β Unlock the screen (if the option is available).
- π± On the phone will appear a notification with a suggestion to reset the password of the application.
If you donβt have the option to unlock the screen, try:
- Untie the device from the account and re-tire it.
- Update MIUI to the latest version (in some firmware, the function is hidden).
| Annex | Unlocking method | Whether data resetting is required | It works without a PC. |
|---|---|---|---|
| gallery | ADB or resetting settings | Yes. | No. |
| Resetting settings | Yes. | Yes. | |
| Sberbank Online | Appeal of support | No. | Yes. |
| Xiaomi notes | Mi or ADB account | Partially. | Yes (via account) |
| AppLock | Safe Mode or Deletion | No. | Yes. |
5. Delete the key file via TWRP (for hardened devices)
If your Xiaomi has custom TWRP recovery installed, you can manually delete the password file.The method is suitable for advanced users and requires root rights.
How to do this:
- π οΈ Download the phone to TWRP (clamp down on power. + Loudness up).
- π Go to Advanced. β File Manager.
- π Find the file. /data/data/name-packet/shared_prefs/.
- ποΈ Delete files with the.xml extension that contain the lock or password name.
- π Reset the device.
β οΈ Note: Incorrectly deleting files in /data/data/ It can lead to crash of the application or loss of data. TWRP (Backup β Select Data).
π‘
Before working with TWRP, check if MTP is enabled in the recovery settings (Mount section) to allow you to copy important files to your PC before deleting them.
6.Extreme measure: reset to factory settings
If none of these methods work, then you have to reset your phone completely, and you delete all the data, including photos, messages and apps, and you only use it as a last resort.
How to reset Xiaomi:
- π Go to Settings. β The phone. β Resetting settings.
- ποΈ Choose to erase all data (or delete everything in HyperOS).
- π Enter the password from Mi Account (if requested).
- β³ Wait for the process to be completed (5-10 minutes).
Once reset, the phone will look like new, so you can recover the data.
- π² Use a backup of Mi Cloud (if it was created).
- π₯οΈ Connect to your PC and recover files via Xiaomi PC Suite.
- π For instant messengers (for example, Viber) use the recovery function by phone number.
Important: On devices with HyperOS (new Xiaomi 14, Redmi Note 13 models) after reset, you may need to re-assign your Mi Account to unlock the bootloader. Make sure you remember your login and password!
π‘
Resetting to factory settings is the last chance.Be sure to extract before the procedure SIM-card and memory card (if the data on them is important), as they can also be formatted.