How to remove a password from the Xiaomi gallery: a complete guide with a guarantee of results

The forgotten password from the gallery on Xiaomiโ€™s smartphone is a problem that thousands of users face every day. The situation is complicated by the fact that the manufacturer actively protects personal data: standard password reset methods are often blocked by the MIUI system, and bypass attempts can lead to the loss of all photos. In this article, we will discuss 5 working ways to remove passwords from the gallery, including official and alternative solutions โ€“ from recovery through the Mi Account to the use of ADB engineering teams.

It's important to understand that the methods are different in complexity and risk. For example, resetting through Settings โ†’ Passwords and security is suitable for most models (Redmi Note 10 Pro, POCO X3, Mi 11), but requires a tied account. At the same time, bypassing through Safe Mode or ADB can work even without the Internet, but it will require technical skills. We will describe each option in detail, specify the models for which it is relevant, and warn against typical errors that users lose access to data forever.

Warning: If the gallery is locked through Application Protection (locked icon in MIUI) rather than the standard password, you will need other instructions. Also, not all methods work on Xiaomi with global firmware: Chinese versions (China ROM) often have additional restrictions. Check the MIUI version in Settings โ†’ About the phone before you start.

1. Official password reset via Mi Account

The safest and most recommended way for Xiaomi is to restore access through the linked Mi Account.It works on all models with MIUI 12 and later (Redmi 9, POCO F3, Mi 10T, etc.), if:

  • ๐Ÿ“ฑ The phone is connected to the Internet (Wi-Fi or mobile data).
  • ๐Ÿ”‘ You remember the username and password from your Mi Account (or you can restore them).
  • ๐Ÿ”„ Data synchronization function was activated earlier.

Instructions:

  1. Open Settings โ†’ Passwords and Security โ†’ Application Protection.
  2. Slip on the gallery icon (or the item "Gallery" in the list of blocked applications).
  3. Select Forgot Password? โ†’ Restore through Mi Account.
  4. Enter your account details and confirm the action via SMS or email.

If the system requests a confirmation code but the message does not arrive:

  • ๐Ÿ“ง Check the spam folder in the mail.
  • ๐Ÿ“ต Make sure your phone number is up to date (check at account.xiaomi.com).
  • ๐Ÿ”„ Restart your phone and try again.

โš ๏ธ Note: If you have previously untied your Mi Account from your device (e.g., before selling), this method will not work. โ„–3 or โ„–4.

๐Ÿ“Š What Xiaomi model do you use?
Redmi (any model)
POCO (any model)
Mi (flagship series)
Black Shark
other

2. Reset password via Safe Mode (without loss of data)

Safe Mode allows you to temporarily disable application protection, including gallery passwords. The method works on MIUI 11-14, but has a limitation: after the reboot, the password will return.

How to activate Safe Mode:

  1. Turn off the phone.
  2. Press the Power button before the Xiaomi logo appears.
  3. As soon as the logo appears, immediately press and hold the Volume Down button (donโ€™t let go until the system boots up).
  4. In the lower left corner of the screen will appear the inscription Safe mode.

Next:

  • ๐Ÿ–ผ๏ธ Open the gallery and the password will be removed.
  • ๐Ÿ“ค Copy the necessary files on the PC through USB Or upload it to Google Photos./Mi Cloud.
  • ๐Ÿ”„ Restart your phone as normal (password will return).

โš ๏ธ Note: On some models (Redmi Note 8 Pro, Mi) 9T) Safe Mode can block access to internal memory. If the gallery doesn't open, try connecting your phone to your PC and retrieving files through Windows Explorer (This computer). โ†’ [Name of device] โ†’ Internal Storage โ†’ DCIM).

โ˜‘๏ธ Preparation for password reset

Done: 0 / 4

3. Delete password through ADB (for advanced users)

If previous methods have failed, you can use Android Debug Bridge (ADB), a tool for debugging Android devices, which is suitable for all Xiaomi models, but requires:

  • ๐Ÿ–ฅ๏ธ Computer with installed Xiaomi drivers and ADB.
  • ๐Ÿ”Œ USB-cable (preferably original).
  • ๐Ÿ”ง Included debugging by USB developer-setting.

Step-by-step:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone and tap the MIUI version 7 times.
  2. Return to Settings โ†’ Additional โ†’ For developers and enable USB debugging.
  3. Connect your phone to your PC and confirm your trust in the computer on your smartphone screen.
  4. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell pm clear com.miui.gallery

This command will reset the gallery settings, including the password. If you see a Permission denied error, try:

adb shell


su




pm clear com.miui.gallery

Once done, reboot your phone. The password will be deleted, but all albums and gallery settings (such as hidden folders) will be reset to the factory folders.

โš ๏ธ Note: On some firmware (China) ROM The pm clear command may not work due to Xiaomi limitations:

adb shell am start -n com.miui.securitycenter/com.miui.permcenter.autostart.AutoStartActivity
What if the ADB canโ€™t see the device?
1. Install official Xiaomi drivers from the site en.miui.com/a/drivers. 2. Try another one. USB-cable (preferably original). 3. Include in the developer settings the item "Debugging by" USB (safety parameters)โ€ and โ€œUnlocking OEM". 4. Restart your PC and phone. 5. If you are using Windows, check the device in Device Manager โ€“ it should appear as Android. ADB Interface".

4.Reset application protection through MIUI settings

MIUI 12-14 has a hidden application protection reset feature that works even without a Mi Account. The method was tested on the Redmi Note 11, POCO X4 Pro and Mi 11 Lite, but may not work on Chinese firmware.

Instructions:

  1. Go to Settings โ†’ Passwords and Security โ†’ Application Protection.
  2. In the upper right corner, tap on the three-point menu (โ‹ฎ) and select the Protection Settings.
  3. Scroll down and click Reset all passwords (may be called Delete all data).
  4. Confirm the action through a pattern lock or PIN-Screen lock code (not to be confused with gallery password!).

If the item Reset all passwords is not:

  • ๐Ÿ” Check the version. MIUI: firmware (MIUI 10โ€“11) this paragraph may not be available.
  • ๐Ÿ“ฑ Try to update the system through Settings โ†’ The phone. โ†’ Updating the system.
  • ๐Ÿ”„ Restart your phone and try again.
Xiaomi modelSupported version of MIUIDoes resetting work through settings?
Redmi Note 10/10 Pro12.0โ€“14.0Yes.
POCO F3/F412.5โ€“14.0Yes (screen PIN required)
Mi 11/11 Ultra12.5โ€“13.0Yes.
Redmi 9/9A11.0โ€“12.0No (only via ADB)
Black Shark 4/512.0โ€“13.0Partially (depends on firmware)

๐Ÿ’ก

If you have forgotten the gallery password, and PIN-The lock code, the only way out is hard reset, but it'll cause total data loss! Before you reset, try connecting your phone to your PC and retrieving photos from Mi. PC Suite (you can download it on the official website of Xiaomi).

5 Hard Reset - a last resort

If no method has worked, you'll have to reset your settings completely, and that will delete all your phone data, including photos, videos and apps, and only use this method if you:

  • ๐Ÿ“ต You donโ€™t have important files in the gallery (or theyโ€™re synced to the cloud).
  • ๐Ÿ”‘ You do not remember the password of your Mi Account and you cannot use it. ADB.
  • ๐Ÿ“ฑ The phone is not linked to a Google account (otherwise, after the reset, you will need to enter the last account information).

How to make a Hard Reset:

  1. Turn off the phone.
  2. Press the Power + Volume buttons at the same time and hold for 10-15 seconds.
  3. From the Recovery menu (manage volume and power buttons), select Wipe Data โ†’ Wipe All Data.
  4. Confirm the action and wait for the process to be completed.

Once you reboot, the phone will look like new, so you can recover the photo.

  • ๐Ÿ–ฅ๏ธ If you previously enabled sync with Mi Cloud, log in to your account and upload data.
  • ๐Ÿ“ฑ If you used Google Photos, install the app and wait for the automatic download.
  • ๐Ÿ”ง If you donโ€™t have a backup, try a data recovery program (DiskDigger, Dr.Fone) but the chances are minimal.

โš ๏ธ Note: Phones with a locked bootloader (most Xiaomi are sold with a locked bootloader) may require authorization through a Mi Account after Hard Reset. If you don't remember it, the phone will turn into a "brick." Check the bootloader status with the team:

fastboot oem device-info

If Device unlocked: false is in the answer, do not reset without a linked account!

๐Ÿ’ก

Before a hard reset, be sure to try to retrieve photos via Safe Mode or PC connection. Even if the gallery is locked, files can be accessed through Windows Explorer in the DCIM or Pictures folder.

Frequent Mistakes and How to Avoid Them

Users often make critical errors that lead to data loss or a complete lockdown of their phone, and the most common are:

  1. Ignoring backups: Even if you plan to use a "safe" method (e.g., Mi Account), make a copy of the photo on your PC or cloud, and in 10% of cases, a password reset causes the gallery to crash.
  2. Software like Miui Hidden Settings or App Lock Remover often contains viruses or doesnโ€™t work on newer versions of MIUI. Xiaomi actively blocks such tools.
  3. Reset via Recovery without checking your Mi Account. If your phone is tied to your account, you'll need to enter your login/password after Hard Reset, and without that, your device will become unusable.

Also avoid:

  • ๐Ÿ”Œ Shutting down the phone during reset through ADB Recovery โ€“ This can โ€œbrickโ€ the device.
Can I remove the password from the Xiaomi gallery without losing a photo?
Yes, in most cases. Use Safe Mode. โ„–(2) or ADB (method โ„–3) - these methods do not delete files. If the password is set through Application Protection MIUI, It will also help to reset through settings (method) โ„–The main thing is not to do Hard Reset if you are not sure about the backup.
Why is the password not reset via Mi Account?
This happens for three reasons: Mi was not the main account on the phone (for example, you logged in through another profile); the device runs on China ROM - such firmware often blocks recovery through the account; Xiaomi servers are temporarily unavailable (check the Internet connection); Solution: try the way with ADB or Safe Mode.
Does unlocking on Xiaomi work with Global ROM?
Yes, all of the methods described (except China ROM restrictions) work on global firmware. However, note: Some models (POCO X3 NFC, Redmi Note 9S) may require unlocking the bootloader to fully access ADB. The European (EEA) versions of MIUI sometimes have additional password reset restrictions. Check the firmware version in Settings โ†’ About Phone โ†’ MIUI Version. If there is an EEA or RU mark at the end, use methods for Global ROM.
Can I recover a photo after Hard Reset?
The chances are minimal, but they are: If you synced with Mi Cloud or Google Photos, files will recover automatically after you log in. If you stored the photos on your memory card (not in internal memory), retrieve it and connect it to another device. Specialized programs (DiskDigger, EaseUS MobiSaver) can recover some of the data, but only if you don't write new files to your phone after you reset. Important: don't install new apps and don't take photos after Hard Reset, this overwrites the deleted data.
What if the phone requires an old Mi Account after a reset?
This means that the device was activated reset protection (FRP). Decisions: ๐Ÿ”‘ Enter the account that was tied before the reset. ๐Ÿ“ง If you do not remember the password, restore it on account.xiaomi.com (you will need access to an email or phone number). ๐Ÿ› ๏ธ If your account is deleted or unavailable, contact the Xiaomi service center with proof of purchase (check, box). FRP It may lead to a blockage. IMEI. Warning: Use of โ€œscrewstersโ€ FRP" With AliExpress or YouTube, you often lose warranty or lock your device.