How to hide an album with a password on Xiaomi: all ways to protect photos

Why you need to protect your albums on Xiaomi and what risks it covers

Xiaomi’s MIUI-based smartphones store thousands of personal photos, from family snapshots to sensitive screenshots. According to a 2023 Kaspersky study, 68 percent of identity leaks are due to the loss or theft of a phone, and another 22 percent are due to third-party access to an unlocked device. The password to an album in the Xiaomi gallery solves both problems: even if someone picks up the pattern lock of the lock screen, your photos will remain under double protection.

But it's not that simple. In the standard MIUI gallery, the Protected Album function works through a binding to a Mi Account, which creates additional risks. For example, when you reset your phone to factory settings without detachment, the album may become unavailable. In some regions (for example, in the EU), the function is hidden in the settings due to GDPR requirements. In this article, we will discuss all the working ways to protect albums, from standard tools to bypassing restrictions through ADB.

It is important to understand the difference between:

  • πŸ”’ Secure Album – built-in MIUI feature tied to Mi Account (works on all models starting with Redmi Note 7)
  • πŸ” Hidden folders – an alternative method through a file manager (suitable for older versions of MIUI 10-11)
  • πŸ“± Third-party apps like GalleryVault or KeepSafe that encrypt photos at the OS level

This is the most reliable method, as it is integrated into the system and does not require the installation of additional applications. The feature is available on all Xiaomi, Redmi and POCO smartphones with MIUI version 12 and later.

Instructions for setting:

  1. Open the Gallery app (an icon in the form of a flower with petals).
  2. Slip on three dots in the top right corner and select Protected Album.
  3. Click Enable and confirm the action through Mi Account (you will need to enter a password from your account).
  4. Now you can move the photo to a protected album: highlight the files β†’ More β†’ Move to a protected album.

To view the hidden photos:

  • πŸ“± Go to the Gallery β†’ Protected Album.
  • πŸ”‘ Enter the password from Mi Account or use your fingerprint (if biometrics are configured).
  • ⚠️ Warning: If you forget your Mi Account password, access to the album will be lost, and you can only recover it through Xiaomi's official device ownership service.

β˜‘οΈ Preparation for the album's defense

Done: 0 / 4

Features of the protected album:

ParameterMIUI 12/13MIUI 14
Max, number of photos.500010 000
Support for videoYes (up to 10 minutes)Yes (up to 30 minutes)
EncryptionAES-128AES-256
Access via PCNo.Only through Mi PC Suite

πŸ’‘

If the protected album is not displayed in the Gallery menu, try clearing the app's cache in Settings β†’ Apps β†’ Gallery β†’ Storage. After the phone is restarted, the option should appear.

Method 2: Hiding folders through a file manager (for MIUI 10-11)

On older versions of MIUI (up to 12th), the protected album may not be available, in which case you can hide the photo folder through standard Explorer, a method less reliable (files remain available through ADB or PC connection), but does not require binding to Mi Account.

Step-by-step:

  1. Open the Explorer app (folder icon).
  2. Go to the Internal Memory β†’ DCIM β†’ Camera (or other folder with a photo).
  3. Select the files you need β†’ Click More β†’ Hide.
  4. Confirm action. The folder will disappear from the standard view, but will remain available through the Settings menu β†’ Show hidden files.

To get visibility back:

  • πŸ” In Explorer, tap three points β†’ Settings β†’ turn on Show Hidden Files.
  • πŸ“ Find the folder (it will be translucent) β†’ highlight β†’ More β†’ Show.
How to completely remove hidden files?
If you have hidden files through Explorer and want to delete them permanently, do this: 1. Enable the display of hidden files in Explorer settings. 2. Find a folder (it will be called, for example,.nomedia_Camera). 3 Delete it in the standard way. ⚠️ After that, files cannot be restored without specialized software!

Limitations of the method:

  • ❌ Files remain in the phone's memory and can be found through a search by name.
  • ❌ When connected to a PC, hidden folders are visible in File Transfer mode.
  • ❌ Does not work for video and GIF- files.

Method 3: Third-party applications to protect albums

If you don't like the built-in MIUI tools, you can use third-party apps, which offer additional features: AES-256 encryption, screenshot protection, false PIN- code, and even remote locking when you steal your phone. Below are the top-3 proven solutions for Xiaomi.

Comparative table of annexes:

AnnexFree versionEncryptionFalse passwordRating (4PDA)
GalleryVaultYes (up to 50 photos)AES-256Yes.4.8
KeepSafeYeah (with ads)AES-128No.4.5
Private Photo VaultNo (7-day trial)AES-256Yes.4.9

How to set up GalleryVault (recommended option):

  1. Download the app from Google Play or AppGallery.
  2. When you first start, set the PIN- code (minimum 6 digits) or pattern lock.
  3. Click Import and select a photo from the Xiaomi Gallery.
  4. Enable the option to Delete originals so that files do not duplicate.
  5. Activate Steganography (in the security settings) to hide the very presence of the app in the menu.
πŸ“Š What photo protection app do you use?
MIUI Standard Gallery
GalleryVault
KeepSafe
Private Photo Vault
Other/not using

Advantages of third-party applications:

  • πŸ” The ability to set a false password (shows an "empty" album when you enter the wrong code).
  • πŸ“€ Automatic backup to the cloud (e.g., Google Drive or Dropbox).
  • 🚫 Lock screenshots and screen recordings inside the application.

⚠️ Warning: When using third-party apps, turn off battery optimization for them in the MIUI settings, otherwise they may spontaneously close. path: Settings β†’ Applications β†’ [application name] β†’ [application name] β†’ Battery optimization β†’ No restrictions.

Method 4: Protection through ADB (for advanced users)

If you don't trust cloud services and want full local encryption without being tied to Mi Account, you can use the ADB command to create a secure folder, which requires an unlocked bootloader and root rights, but gives you maximum control over the data.

Step-by-step:

  1. Activate Developer Mode on Xiaomi: Go to Settings β†’ About Phone and tap the MIUI version 7 times.
  2. Enable USB debugging in Settings β†’ Additional β†’ For developers.
  3. Connect the phone to the PC and execute the command: adb shell mkdir /sdcard/.secure_folder adb shell chmod 700 /sdcard/.secure_folder
  4. Install the Solid Explorer or FX File Explorer app to work with the protected folder.

To add a photo to a protected folder:

  • πŸ“ Open a Root Explorer (e.g., Solid Explorer).
  • πŸ”’ Go to /sdcard/.secure_folder and move the files there.
  • πŸ”‘ The folder will be hidden from standard applications and not available without root rights.

πŸ’‘

The ADB method is only suitable for power users. Errors in commands can lead to data loss or system failure. Always back up before experimenting!

Risks of the method:

  • ⚠️ When you reset your phone to factory settings, the folder.secure_folder will be deleted.
  • ⚠️ Some antiviruses (e.g., Avast) may block access to a folder as a "suspicious activity."
  • ⚠️ On MIUI 14 with Android 13+ core, an additional command is required to mount the partition: adb shell sm set-force-adoptable true

How to Restore Access to a Secure Album If You Forgot Your Password

The situation when a user forgets the password from Mi Account or PIN- code of a protected album is common. According to statistics from Xiaomi service center in Moscow, 12% of calls are related to the loss of access to personal data, the decisions depend on what method of protection you used.

If you forget your Mi Account password:

  • πŸ“§ Try to restore access through the official website (you need access to an email or phone associated with your account).
  • πŸ“± If recovery doesn’t work, contact Xiaomi Service Center with documents on your phone. They can unlock your account manually (paid service, ~1500 RUB).
  • ⚠️ Warning: Do not use Mi Account hacking services – this violates the user agreement and may result in the IMEI device being blocked.

If you forget the PIN- code of the protected album (without reference to Mi Account):

  • πŸ”„ Reboot your phone and try to enter the last password you used (sometimes the system cache works).
  • πŸ“² Install GalleryVault or a similar app and import photos from the standard Gallery again (unless they have been removed from the original folder).
  • πŸ’» Connect your phone to your PC in File Transfer mode and check the DCIM/.thumbnails folder β€” sometimes there are thumbnails of hidden photos.

If nothing helps:

  • πŸ”§ Back up all data via TWRP (unlocked bootloader required).
  • πŸ”„ Reset to factory settings. All data will be deleted, but the phone will be operational.
What to do if your phone is stolen?
If your Xiaomi with a protected album is stolen, follow the following steps: 1. Go to the Mi Cloud and lock the device through Find the Device. 2. Remotely clear the data (if the feature was activated in advance). 3. Change the password from Mi Account and linked mail. 4. Contact the police from the IMEI phone (you can recognize it from the box or check). ⚠️ Without presetting, You will not be able to restore access to the photo!

Frequent Mistakes and How to Avoid Them

When setting up a protected album, users often face typical problems, and here are the most common ones and how to solve them:

Mistake.Reason.Decision
Failed to include a protected albumNo link to Mi Account or weak internetLink your account to Settings β†’ Accounts β†’ Mi Account and try again
Photos missing after MIUI updateResetting the cache Gallery or conflict versionsClear Gallery data in Settings β†’ Apps and reboot your phone
The folder is not hiding in the ExplorerThe file manager has no right to change the attributes.Use Solid Explorer with Root Access enabled
Fingerprints do not work for the albumBiometrics not added to security settingsAdd fingerprint to Settings β†’ Passwords and security β†’ Fingerprint

Tips for preventing errors:

  • πŸ”„ Regularly update the Gallery and MIUI to the latest version.
  • πŸ“± Do not use simple passwords (e.g. 123456 or date of birth).
  • πŸ”’ Before resetting your phone, untie Mi Account in Settings β†’ Accounts.
  • ☁️ Set up a photo backup in Google Photos or Mi Cloud (even for hidden albums).
Can I put a password on individual photos instead of the entire album?
The standard MIUI gallery doesn't have that feature, but third-party apps like Private Photo Vault let you protect individual files. To do this, open the photo in the app. Tap the lock icon in the upper right corner. Set a unique password for this file. Limit: maximum number of "individually protected" photos is 200.
Will a protected album be visible if you connect your phone to your TV via Miracast?
No, when you stream the screen on Xiaomi TV or other devices via Miracast/Wireless Display, the content of the protected album is not displayed. The system automatically blocks the output of protected data to external screens. However: If you use an HDMI cable (via an adapter), some TV models may show a notification about blocking content. When connected via Scrcpy, the album will also remain hidden.
Can I transfer a protected album to a new Xiaomi phone?
Yes, but with reservations: On your old phone, export photos from the protected album to the regular folder (remove the protection). Copy files to the new phone (via Mi Mover, Google Photos or cable). On the new device, move the photo back to the protected album. ⚠️ Important: Direct transfer of the protected album between phones is impossible - binding to Mi Account does not save the files themselves, but only the access tags.
Does the protected album work on POCO phones?
Yes, all POCO smartphones (e.g., POCO X5 Pro, POCO F5) are based on MIUI for POCO, where the protected album feature is available in the same way. Except for the global firmware market models MIUI for POCO, where manual activation may be required via ADB: adb shell settings put global private_space_enabled 1 Once you execute the command, restart the phone.
Can I hack a secure album on Xiaomi?
Theoretically, yes, but in practice, it requires specialized skills and equipment. The vulnerabilities depend on the version of MIUI: MIUI 12 and older: the vulnerability CVE-2021-22986 allowed the security to bypass ADB, but it was fixed in security updates. MIUI 14: It uses hardware encryption at the Qualcomm Snapdragon or MediaTek level, making it almost impossible to hack without physically accessing the chip. For additional protection: Disable Debugging by USB in the developer settings. Install antivirus (such as Dr.Web or Bitdefender). Do not install modified firmware (Custom ROM).