How to block a gallery on Xiaomi: hide the photo from prying eyes

Privacy of personal photos and videos on smartphones is one of the main concerns of users of Xiaomi, Redmi and POCO. Even if you do not transfer the phone into the wrong hands, casual tapping or curiosity of loved ones can lead to awkward situations. In this article, we will discuss all the current ways to block the gallery on devices with MIUI 12/13/14, including built-in functions and third-party solutions.

It’s important to understand that the term β€œblock gallery” can mean things from hiding individual files to fully password-protecting the entire app. We’ll look at both options, and we’ll also explain how to get around the typical bugs that suddenly make photos available. If you’re using Xiaomi with custom firmware or older versions of MIUI (below 12), some methods may not work β€” we’ll warn you about this too in advance.

Before you get to the instructions, check the version of your shell: Settings β†’ About Phone β†’ MIUI version. This will help avoid confusion with the menu location. Also note that after resetting the phone to factory settings, all hidden files and passwords will be deleted - they will have to be configured again.

Method 1: Built-in β€œSecure Storage” function in MIUI

The most reliable and simple method is to use a secure MIUI storage that encrypts files at the system level, which requires no additional applications and works on all modern Xiaomi smartphones, including the Redmi Note 12, POCO X5 and Mi 11.

To activate the function:

  1. Open the standard Gallery app.
  2. Select the photos or videos you want to hide (press your finger on the file β†’ mark the rest).
  3. Click on the three dots in the upper right corner β†’ Move to the secure storage.
  4. When you first use it, the system will ask you to set a password or a pattern lock (it will be different from unlocking the screen!).

After that, the files will disappear from the main gallery. To see them, go to the Gallery β†’ Albums β†’ Secure Storage and enter the password. The important thing is that if you forget the password from the secure storage, you will not be able to restore access to the files - even through your Mi Account!

⚠️ Please note: Do not use simple combinations like 123456 or date of birth. MIUI There is no limit to the number of attempts to enter a password, so an attacker can pick it up by brute force.

  • βœ… Pros: built-in function, does not require root, reliable encryption.
  • ❌ Cons: password cannot be restored, files take up space in memory.

If you don't need full encryption, but you just need to get the albums out of your sight, MIUI has a folder-hiding option, which is a technique that's good for temporarily hiding photos, like before you give your phone to friends.

Instructions:

  1. Open Gallery β†’ click on the three lines in the upper left corner (album menu).
  2. Press your finger on the album you want to hide (like Screenshots or Downloads).
  3. In the menu that appears, select Hide the album.

Hidden albums won't show up in the main list, but they can be returned back in the same way.This method doesn't protect files with a password - they can still be found through a file manager or by connecting the phone to a computer.

πŸ“Š How often do you hide files in the gallery?
Constantly.
Sometimes.
I've never tried before.
I don't see the point.
MethodPassword requiredSeen in the file manager.Works after discharge
Secure storage.βœ… Yes.❌ No.❌ No.
Hiding the album❌ No.βœ… Yes.❌ No.
Third-party annexesβœ… Yes.❌ No (depending on the application)❌ No.

Method 3: Using third-party applications (without root)

If the built-in MIUI features aren't enough, you can install customized applications to block the gallery, and we tested some popular solutions and selected the most reliable ones:

  • πŸ”’ AppLock - blocks access to the gallery and other applications by password or fingerprint.
  • πŸ“ GalleryVault – creates an encrypted storage for photos and videos, supports a fake password for the β€œguest” mode.
  • πŸ” KeepSafe – automatically hides new photos, there is a cloud backup.

Before installing, check the app's permissions in Settings β†’ Apps β†’ Permissions. Reliable programs only ask for storage and camera access, not SMS or contacts, and avoid apps with suspiciously low ratings or a lot of advertising.

⚠️ Note: Some antiviruses (e.g. Avast or Kaspersky) may block applications to hide files, mistaking them for malicious. If after installation the gallery stopped opening, add the program to the exceptions of the antivirus.

Check the rating and reviews on Google Play

Download only from the official store

Prohibit access to SMS and calls

Create a backup of important photos

-->

Method 4: Rename folders (for power users)

This is a method that works for people who are willing to work with the file system of a phone, and the idea is to rename the folder of photos so that the gallery doesn't recognize it. DCIM Pictures can be renamed into.hidden_DCIM (The point at the beginning makes the folder hidden in the Linux systems on which Android is based).

How to do this:

  1. Install a file manager with access to root folders (such as Solid Explorer or FX File Explorer).
  2. Go to /storage/emulated/0/ (internal memory).
  3. Find a folder with photos (usually DCIM or Pictures).
  4. Rename it by adding a point at the beginning (e.g,.DCIM_old).

After that, the photos will disappear from the gallery, but they will remain available through the file manager. To return them back, just delete the dot from the folder name.

What if the gallery still shows hidden folders?
Some versions MIUI Ignore hidden folders (with a dot), in which case add an underline to the beginning of the folder name, for example _private_DCIM. Also check the settings of the gallery: Gallery settings β†’ Show hidden files (should be turned off).

The MIUI’s Second Space feature allows you to create a separate user profile with your own apps and data, which is useful if you want to completely isolate personal photos from the guest mode.

How to set up:

  1. Go to Settings. β†’ Second space.
  2. Create a new space and set a separate password for it.
  3. In the main space, remove the Gallery app (or hide it through Settings β†’ Apps β†’ Hide apps).
  4. In the second space, re-establish the gallery and transfer your personal photos.

Now, when you switch between spaces (swipe down the lock screen β†’ user icon), the gallery will only be available in a secure profile, a method that is more reliable than simply hiding files, but requires more action to switch.

πŸ’‘

If you often switch between spaces, add a shortcut to quickly transition to the main screen: press your finger in free space β†’ Widgets β†’ Space Switch.

Frequent Mistakes and How to Avoid Them

Even experienced users sometimes have problems blocking a gallery, and here are the most common mistakes and solutions:

  • πŸ”„ Photos reappear after update MIUI β†’ Reset the gallery settings in Settings β†’ Annexes β†’ gallery β†’ Warehouse β†’ Clear the data and reset the protection.
  • πŸ”“ Forgot the password from the secure storage β†’ Unfortunately, it can't be restored. The only way out is to reset the phone to factory settings (but that will delete all the data!).
  • πŸ“± Third-party app doesn't block gallery β†’ Check if permission is included for it to Overlay other apps in the settings.

Another common problem is that photos are visible in other apps (e.g. Google Photos or messengers). To avoid this, turn off autoload media files in the settings of these programs. For example, in Google Photos: Settings β†’ Backup and Sync β†’ Turn off.

Can I block a gallery on Xiaomi without a password, only by fingerprint?
Yes, most methods (embedded secure storage, AppLock, Second Space) can use a fingerprint instead of a password, so when you set up security, select Biometrics and add your fingerprint, and note that you may need to enter a password after you reboot your phone.
What happens if you delete the gallery app to hide the photos?
Deleting the standard gallery won’t delete the photos themselves, they will remain in the phone’s memory. However, without the gallery, it will be more difficult to view them (you will have to use a file manager or install another gallery), and some system functions (for example, sharing photos via Bluetooth) may stop working.
How to hide photos from the Google Photos app?
Google Photos scans all media files on the device, so simply hiding in the MIUI gallery won't help.To exclude photos from backup: Open Google Photos β†’ click on photos β†’ three dots β†’ Do not show in the app. Or move files to a folder that Google Photos ignores (for example, /Android/data/).
Do these methods work on the POCO F5 and Redmi Note 13?
Yes, all of the methods described are compatible with the POCO F5 and Redmi Note 13, as these models run on MIUI 14 (based on Android 13), except for very old firmware versions (below MIUI 12), where there may be no secure storage.
Can I block access to the gallery via Wi-Fi or Bluetooth?
No, password-blocking or file-hiding only works when you access your phone locally. If you're transferring photos over Wi-Fi Direct or Bluetooth, they'll be available without restriction. To protect your files when you're transferring, use password-enabled archivers (like RAR or 7-Zip) or cloud-encrypted storage (like Proton Drive).

πŸ’‘

The most reliable way is to combine secure MIUI storage and disable autoload to cloud services, ensuring that photos are not available locally or online.