Personal photos and videos on smartphones often contain sensitive information that you want to hide from prying eyes. On Xiaomi, Redmi and POCO devices running MIUI, there are several ways to password protect the gallery, from built-in features to third-party applications. But not all methods are equally reliable: some are easy to get through the file manager, and others require root rights.
In this article, we will discuss 5 working ways to set a password to a gallery, including hidden MIUI features, folder encryption, and using Googleโs Safe Folder.We will also explain why the standard โClockโ in the Xiaomi Gallery is not always secure and how to combine the methods correctly for maximum protection.
If youโre using an Android 12+ smartphone with MIUI 13/14, some of the features may be different โ weโll give you nuances for different versions, and for owners of older models (such as the Redmi Note 8 Pro or Mi 9T), weโll give you alternative solutions, since they donโt have a built-in Safe Folder.
1. Standard "Castle" in the Xiaomi gallery: pros and cons
The most obvious way to hide a photo is to use the built-in "Castle" feature in the Gallery app, which is available on all Xiaomi devices with MIUI 10 and later, to activate it:
Steps:
- Open the Gallery app.
- Choose the photos/videos you want to hide (you can select several files).
- Click on three dots in the upper right corner โ Block.
- Set a password (if not previously set up) or use a fingerprint.
After that, the files will disappear from the main gallery and will be available only in the Blocked section (password access).
Advantages:
- ๐น Quickly and without additional applications.
- ๐น Support for biometrics (fingerprint/face).
- ๐น Files are not deleted, but simply hidden.
Disadvantages:
- โ ๏ธ Files stay in the folder. DCIM/.lock and can be found through a file manager (e.g., Files by Google).
- โ ๏ธ Password resets when resetting phone settings.
- โ ๏ธ No cloud backup of blocked files.
๐ก
To increase protection, move your locked files to Safe Folder (see next section) or use folder encryption via MIUI Security.
2. Googleโs Safe Folder: A Reliable Alternative
If you use MIUI 12.5 or later, it has built-in support for Google's Safe Folder, a secure folder that is encrypted at the Android level. Unlike the standard Lock, files are stored in encrypted form and are not accessible without a password even through a PC.
How to set up:
- Open Google Files (if not, install from the Play Market).
- From the menu, select Safe Folder โ Setting up.
- Install. PIN-code or pattern lock (minimum 4 characters).
- Move the files to the folder through the Add Files button.
Advantages:
- ๐ Full file encryption (even when connected to a PC, they are not visible).
- ๐ Sync with Google Drive (optional).
- ๐ก๏ธ Recovery Reset Protection (files remain encrypted).
Limitations:
- โ ๏ธ Not working. MIUI below 12.5 (for example, on the Redmi Note 9 Pro with the MIUI 12).
- โ ๏ธ Requires authorization in Google account.
What if Safe Folder is not displayed?
3. folder encryption via MIUI Security (for advanced)
On devices with MIUI 13/14, there is a hidden feature that encrypts folders through the MIUI Security app, which creates a secure storage area where you can transfer any files, including photos and videos.
Instructions:
- Open Security โ Privacy โ Encrypted folder.
- Click Create and set a password (other than locking the screen!).
- Transfer files to the folder through Add Files.
Features:
- ๐ Password is requested every time you open the folder.
- ๐ Files are physically moved to encrypted storage (/storage/emulated/0/MIUI/PrivateFolder).
- ๐ซ It does not work on custom firmware (e.g. Pixel Experience).
Important: If you forget your password, you canโt restore access to files, even through resetting settings or connecting to a PC. We recommend writing your password to a secure location (for example, in Google Password Manager).
Backup of important files|Remember your password (do not use your date of birth)|Check the space (encryption increases the file size on the ~5%)|Disable autosynchronization with the cloud (OneDrive, Google Photos)-->
Third-party applications: when embedded functions are not enough
If standard methods donโt work (e.g., on older versions of MIUI or after rooting), you can use third-party apps.
Top.-3 gallery-blocking:
| Annex | Features | Cons |
|---|---|---|
| GalleryVault | ๐น Encryption AES-256๐น False password (bait folder)๐น Backup to the cloud | โ ๏ธ Requires storage rightsโ ๏ธ Advertising in the free version |
| KeepSafe | ๐น PIN/print/face๐น Automatic concealment during clotting๐น Support MIUI 11+ | โ ๏ธ Limit the number of files in the free version |
| Private Photo Vault | ๐น Local encryption๐น Built-in viewer๐น No mandatory registration | โ ๏ธ Interface in Englishโ ๏ธ No sync with Google Drive |
Before installing, check the application permissions in Settings โ Applications โ Permissions. Opt out of programs that request access to SMS, Contacts or Geolocation โ this is unnecessary to block the gallery.
How to install and configure:
- Download the app from the Play Market (donโt use APK from unknown sources!).
- Launch and set a master password (we recommend at least 8 characters).
- Import files through the built-in file manager.
- Enable the option to Hide from the Gallery (if any).
๐ก
The side of the application is convenient, but less reliable than the built-in MIUI features. Risks: data leakage through vulnerabilities, blocking after an Android update, file loss when a phone is reset.
5. Hiding a folder through a file manager (no password, but effective)
If you donโt need a password, but simply hide a photo from random glances, you can rename the photo folder by adding a dot to the beginning of the name (for example,.PrivatePhotos), which is not displayed in most file managers and galleries by default.
How to hide the folder:
- Connect your phone to your PC or use a file manager (such as Mi File Manager).
- Go to /storage/emulated/0/DCIM/.
- Rename the target folder by adding a dot:.Secret.
- Reboot the phone.
How to regain visibility:
Enable the display of hidden files in the file manager settings (in Mi File Manager: three points โ Settings โ Show hidden files).
โ ๏ธ Note: this method does not protect files from targeted search. Anyone who knows the path can open the folder through Total Commander or FX File Explorer.
6 Additional Security Measures: What to Do If Your Phone Is Stolen
If you put a password on the gallery, it's only part of the protection, and if the phone gets into the wrong hands, an attacker can bypass the lock via Recovery or a PC connection, to minimize the risks:
Checklist for maximum security:
- ๐ Install. PIN-lock screen code (at least 6 digits).
- ๐ Enable phone encryption in Settings โ Additionally. โ Encryption.
- ๐ฑ Turn off the debugging. USB (Settings โ The phone. โ Version. MIUI โ 7 times press โ For developers โ Debugging by USB).
- โ๏ธ Set up a remote cleanup via Find My Device (Google) or Mi Cloud.
If the phone is stolen:
- Block it through Google Find My Device.
- Delete the data remotely (if encryption is enabled, the files will not be available even after resetting).
- Change the passwords from accounts (Mi Account, Google, social networks) associated with the device.
Critical information: On Xiaomi devices with bootloader unlocked, any password can be reset via Fastboot. If you bought the phone from hand, check the lock status through the command fastboot oem device-info (must be Device unlocked: false).