How to put a password to the gallery Xiaomi: hide photos and videos from outsiders

Personal photos, screenshots of correspondence or work documents in the gallery of a smartphone are data that many Xiaomi users prefer to keep locked up. Even if you do not put the phone in the wrong hands, accidental access to confidential files can lead to trouble. Fortunately, the manufacturer has provided several ways to protect the gallery: from the standard PIN-code to hidden folders and biometric authentication.

In this article, we will analyze all the current methods of blocking the gallery on Xiaomi, including the Redmi and POCO models with MIUI 12-14 firmware and HyperOS. Particular attention will be paid to the nuances: what to do if the password is forgotten, how to circumvent restrictions on some versions of the software, and why encryption through Mi Account does not work on devices without Google certification (for example, on โ€œgrayโ€ smartphones from China).

The easiest way to protect photos is to use the built-in folder protection feature in the Mi Gallery app. This method works on all Xiaomi smartphones with MIUI 10 and later, including the Redmi Note 12, POCO X5 and the flagship Xiaomi 13/14.

To activate the protection:

  1. Open the Gallery app (flower icon).
  2. Go to the Albums section. โ†’ press three points (โ‹ฎ) top-right.
  3. Select Blocked Albums โ†’ Set the password.
  4. Come up with it. PIN-code (minimum 4 digits) or use a fingerprint.
  5. Select the folders you want to hide and confirm the choice.

After that, the blocked albums will disappear from the main interface of the gallery, and access to them will be possible only after entering the password in the section "Blocked albums".

๐Ÿ’ก

If your version of MIUI does not have a โ€œBlocked Albumsโ€ option, update the Gallery app via Google Play or manually install it from the APKCombo website.

2. Hidden folders: how to hide photos without a password

If you don't need a password, but you just want to take the photos out of your sight, MIUI has a hidden folder feature that doesn't encrypt files, but makes them invisible in standard browsing, and it's a technique that's good for temporarily hiding files, like before you hand over your phone to a colleague.

Instructions:

  • ๐Ÿ“ Open Explorer (Files) and find the folder with the photo (usually DCIM/Camera).
  • ๐Ÿ” Select files or folders that you want to hide.
  • ๐Ÿ”’ Press three points (โ‹ฎ) โ†’ Hide.
  • ๐Ÿ”„ To return files back, turn on the display of hidden folders in the Explorer settings (Settings) โ†’ Show hidden files).

Important: Hidden folders are visible in Windows Explorer when connecting your phone over USB. Use encryption for complete privacy (see section 4).

๐Ÿ“Š What kind of gallery protection do you use?
PIN-code
Fingerprint.
Hidden folders
Third-party annexes
Not defending.

3. Protection through third-party applications: pros and cons

The built-in MIUI tools may not always be suitable for users, for example, in some regions (such as smartphones for the Chinese market), the Blocked Albums feature may not be available, in which case third-party programs from Google Play will help:

AnnexPlusesConsReference
GalleryVaultEncryption of AES-256, masking as a calculatorAdvertising in the free versionDownload
KeepSafeCloud Backup, PIN and PrintLimitation on the number of filesDownload
VaultyAutomatic screenshot hiding, protection from deletionSubscription for extended functionsDownload

Warning: Check the app's permissions before installing. Some "voults" request access to SMS, Contacts or Geolocation - these are unnecessary rights to protect the gallery. The optimal set of permissions: Warehouse, Camera (to create photos inside the application) and Biometrics.

How to bypass the blocking of third-party applications?
If you forget the password from GalleryVault or a similar app, try: 1. Restore access via the linked email (if the feature is supported). 2. Delete and reinstall the app - some "vaults" reset protection. 3. Use ADB to delete application data (developer rights required). โš ๏ธ This method will result in the loss of all hidden files!

Xiaomiโ€™s MIUI 12+ smartphones have a feature to encrypt data through your Mi Account, which links access to the gallery to your profile, making it harder to hack, but this method has limitations:

  • โœ… It works even after resetting your phone (unless your account is undetached).
  • โŒ Not available on devices without Google certification (e.g., on the Chinese version of Redmi) K60).
  • โš ๏ธ If you lose access to Mi Account, you will not be able to restore files.

To enable encryption:

  1. Go to Settings โ†’ Mi Account โ†’ Mi Cloud โ†’ Sync settings.
  2. Activate the option of Data Encryption.
  3. Select the Gallery in the list of applications for protection.

โš ๏ธ Note: If you sell or transfer a phone, be sure to turn off encryption and delete your Mi Account via Settings โ†’ Mi Account โ†’ Otherwise, the new owner will not be able to use the gallery without your login details.

5. Biometric protection: fingerprint and Face ID

On Xiaomi smartphones with a fingerprint sensor or facial recognition system (for example, Xiaomi 13 Ultra or other devices). POCO F5 Pro) you can link access to the gallery to biometrics. PIN-code every time.

How to set up:

  1. Open Settings โ†’ Passwords and Security โ†’ Fingerprint Sensor.
  2. Add a print (if not already added).
  3. Return to the Gallery, go to Blocked Albums and select Use Fingerprint.

Face ID is similar to: Settings โ†’ Passwords & Security โ†’ Face recognition. Note that this method is less reliable than a print, as it can be fooled by a photo (on Redmi budget models).

The fingerprint sensor is clean and dry.

Mi Account profile has a backup email attached

Facial recognition disabled to unlock the screen (if privacy is important)

Backup of important photos in the cloud-->

If you lost PIN-Code from blocked albums, there are several ways to restore access:

  1. Reset via Mi Account: Go to Settings โ†’ Mi Account โ†’ Mi Cloud โ†’ Data Recovery. If the gallery was linked to the account, the system will prompt you to reset the password.
  2. Delete the Application Data Gallery: Open Settings โ†’ Annexes โ†’ Application management โ†’ gallery โ†’ Warehouse โ†’ Clear the data. โš ๏ธ This will remove all settings, but unlock the albums.
  3. Resetting the phone to factory settings: Last resort: Settings โ†’ About the phone โ†’ Reset. All data on the phone will be erased, including photos in hidden folders, if they are not synced to the cloud.

โš ๏ธ Note: On HyperOS devices (such as Xiaomi 14), resetting the gallery password via Mi Account may not work.

7. Additional security measures

Even if the gallery is password protected, it is worth taking additional measures:

  • ๐Ÿ” Turn off autosynchronization of photos from Google Photos or Mi Cloud if you store sensitive data there. In the cloud, files can be accessed via the web version.

For maximum privacy, use a combination of methods.

  1. Hide sensitive photos in Blocked Albums with PIN-code.
  2. Encrypt important files through your Mi Account.
  3. Keep backups in an encrypted archive (such as 7-Zip with a password).

๐Ÿ’ก

The most reliable way to protect โ€“ a combination of local PIN-It's a code and encryption system through Mi Account, which makes it difficult to access files even when you physically access your phone.

Can I put a password on individual photos, not the entire folder?
The standard Mi Gallery doesn't. But third-party apps like GalleryVault let you block individual files, and alternatively, move the photos you want to see to a separate folder and lock it.
Why did the blocked albums disappear after the MIUI update?
This is a famous error in MIUI 13-14. Try: Clear the Gallery app cache (Settings โ†’ Apps โ†’ Gallery โ†’ Clear cache). Reboot your phone. If it didn't work, reset the Gallery settings (see section 6).
Does a gallery lock on Xiaomi work without internet?
Yes, PIN-The code and biometrics work offline, but if you use Mi Account encryption, you may need to connect to the network for the first authorization after the reboot.
Can I hack the gallery password on Xiaomi?
Theoretically, yes, but it requires physical access to the phone and special knowledge, such as: through ADB (if USB debugging is enabled); by resetting the phone (but the data will be lost); through vulnerabilities in older versions of MIUI (for example, MIUI 11 had a bug with the bypass of locking through Explorer); to minimize risks, update the firmware and do not leave the phone unattended.
How to transfer blocked photos to a new Xiaomi phone?
There are two ways: Through Mi Cloud: Enable Gallery Sync in Settings โ†’ Mi Account โ†’ Mi Cloud. Locked albums will be transferred automatically when you log in to the same account on a new device. Manually via PC: Connect your old phone to your computer, copy files from the DCIM/.hidden folder (hidden folder) and transfer them to the new smartphone in the same directory.