How to hide and protect folder on Xiaomi: all ways from MIUI before AppLock

Confidential photos, documents or personal files on Xiaomi smartphone require strong protection. Even if you don’t put your phone in the wrong hands, accidental tapping or childish curiosity can lead to data leakage. Creating a closed folder is not only a way to hide files from prying eyes, but also an additional layer of security in case of theft or loss of the device.

In this article, we will analyze all current methods: from built-in functions. MIUI to third-party applications with encryption. We will pay special attention to the nuances for different versions of the firmware (from MIUI 12 to MIUI 15) and models β€” from the budget Redmi Note to the flagship Xiaomi 14. you will learn how to put a password on a folder, hide it from the gallery, and what to do if the standard methods do not work.

⚠️ Important: Some methods require root rights or disablement MIUI Optimization in the developer settings. This can affect system stability - check compatibility with your model before action.

According to Xiaomi statistics, 68 percent of users have had to hide files at least once, but only 22 percent know about the built-in security tools. Let's fix this.

πŸ“Š How You Usually Hide Files on Xiaomi?
I use built-in functions. MIUI
I will install third-party applications (AppLock, Vaulty)
I'm renaming the folders to.nomedia.
I keep everything in the cloud with a password.
I'm not hiding anything.

1. the built-in "Closed folder" function in MIUI (non-partisan)

Starting with MIUI 12.5, Xiaomi has added a native file protection solution called the Private Folder, which works like a safe: the files inside are not displayed in the gallery or file manager, and access is protected by a password or biometrics. MIUI 12.5+, including Redmi Note 11, Poco X5, Xiaomi 13T newer.

To activate it:

  1. Open the Settings. β†’ Privacy β†’ Closed folder.
  2. Click Create a Closed folder and set a password (minimum 6 characters).
  3. Confirm the password and attach a fingerprint/face (optional).
  4. Return to Files, swipe left to the Closed folder section and move the desired files there.

βœ… Pros of the method:

  • πŸ”’ Does not require the installation of third-party applications.
  • πŸ“± It works on all relevant models Xiaomi/Redmi/Poco.
  • πŸ”„ Files are automatically hidden from the media scanner (not visible in the gallery).

❌ Cons:

  • 🚫 Does not support file encryption (hiding only).
  • πŸ“ The folder is visible in the file manager as a separate partition.
  • πŸ”„ When resetting settings, the password is reset (files remain, but access is lost).

⚠️ Note: If you forget the password from the closed folder, you can only restore it through the Mi Account associated with the device!

β˜‘οΈ Preparation for a closed folder

Done: 0 / 4

2. Use the Security App to hide files

In the firmware MIUI Up to version 12.5 (for example, on Redmi Note 9 or Poco) X3) Instead of a Closed Folder, it used a Security app, which not only hides files, but also blocks applications, scans viruses and manages permissions:

Steps to hide files through Security App:

  1. Open the Security app (shield icon).
  2. Go to the Privacy section. β†’ Hidden files.
  3. Set your password (unless previously set).
  4. Click Add Files and select the desired documents/photos.
  5. Confirm the transfer – files will disappear from the gallery and file manager.

πŸ” Where to look for hidden files?

They're stored in a folder. /storage/emulated/0/.hidden, But only available through the Security App to get the files back:

  1. Go to Security. β†’ Privacy β†’ Hidden files.
  2. Select files and click Restore.

⚠️ Nuance: On some models (e.g. Redmi) 8A) Hidden files may temporarily appear in the gallery after the update MIUI. To avoid this, clear the gallery cache (Settings) β†’ Annexes β†’ gallery β†’ Warehouse β†’ Clear the cache).

What to do if there is no Security App?
On some firmware (e.g. global for Europe), the Security app may be hidden to return it: 1. Install. APK Security applications from an official source, for example, [apkmirror.com](https://apkmirror.com)). 2. Or activate it through ADB-Command: adb shell pm enable com.miui.securitycenter 3. Reset the device.

3. Hiding folders via.nomedia file (for power users)

The.nomedia method is a classic way to hide a folder from the Android media scanner, and it works on all Xiaomi devices, regardless of the version. MIUI, The bottom line is that Android ignores folders with such a file when scanning multimedia (photo, video, audio).

Step-by-step:

  1. Open any file manager (such as Files or Solid Explorer).
  2. Go to the folder you want to hide (for example, DCIM/Camera).
  3. Create a new file called.nomedia (a point at the beginning is mandatory!).
  4. Restart the device or clear the Gallery and Music app data.

πŸ“Œ It's important:

  • πŸ“ The folder will remain visible in the file manager, but its contents will not appear in the gallery.
  • πŸ”„ If you delete.nomedia, files will be visible again.
  • πŸ“± This method does not protect against access to files via PCs or other file managers.

⚠️ Note: Some apps (e.g. Google Photos) ignore.nomedia and may show hidden files. To avoid this, disable autoboot in the settings of such apps.

πŸ’‘

If the.nomedia file is not created through a standard manager, use the ES Explorer or connect your phone to your PC and create a file through Total Commander.

4. Password protection of folders with AppLock and analogues

Third-party apps like AppLock, Vaulty, or Keepsafe offer advanced security features like encryption, false password, login notifications, and they’ll work if you want to not only hide but also block folder access.

How to set up protection:

  1. Install AppLock and provide all the necessary permissions.
  2. Set a master password (it is recommended to use a combination of letters, numbers and symbols).
  3. In the main menu, select Private Vault.
  4. Import files or folders to the safe (they will be automatically deleted from the original location).
  5. Activate additional settings: False password, Photo trap (takes a photo of the person who entered the wrong password).

πŸ” Comparison of popular applications for blocking:

AnnexEncryptionFalse passwordBackupSupport for MIUI
AppLockβœ… (AES-256)βœ…βœ… (Google Drive)βœ… (version)
VaultyβŒβœ…βŒβœ… (may conflict with MIUI 14+)
Keepsafeβœ… (AES-128)βŒβœ… (Keepsafe cloud)βœ…
GalleryVaultβœ… (AES-256)βœ…βŒβš οΈ (lay down MIUI 13)

⚠️ Warning: Some apps (e.g. GalleryVault) may conflict with optimization MIUI, If you overheat or quickly discharge the battery, check the settings after installation. β†’ Battery β†’ Use the battery and disable optimization for the app if it consumes >5% charge in the background.

πŸ’‘

Apps like AppLock are suitable for maximum protection, but require regular updates. Before installing, check for reviews about compatibility with your Xiaomi model.

5. Hiding folders through password archiving (ZIP/RAR)

If you need to not only hide but also encrypt files, you can use archivers with support for passwords, for example, RAR or 7-Zip. This method is suitable for backups or rarely used files.

Instructions for creating a secure archive:

  1. Install. RAR Android (official app from WinRAR).
  2. Open the application and select files/folders for archiving.
  3. Click Add to Archive and select the format ZIP or RAR.
  4. In the Set password section, enter the key (minimum 8 characters).
  5. Click OK – the archive will be created in the selected folder.
  6. Delete the original files (optional).

πŸ”Ή Advantages of the method:

  • πŸ” Files are encrypted according to standard AES-256 (format RAR).
  • πŸ“± The archive can be moved to the cloud or to the PC.
  • πŸ”„ No firmware dependency. MIUI.

❗ Deficiencies:

  • πŸ•’ Additional archiving/unpacking time.
  • πŸ“ It is not possible to access individual files quickly.
  • πŸ”‘ If the password is lost, the data cannot be restored.

πŸ’‘ Tip: For convenience, store archives in a folder with the type name Backup_2026 β€” This will reduce suspicion when accidentally viewing the file manager.

6 Advanced methods: folder encryption and root access

If you don't like the standard way, you can go further and encrypt folders at the file system level, which requires root rights or specialized applications like Cryptomator or Boxcryptor, and let's look at both.

πŸ”§ Method 1: Cryptomator encryption (without root)

Cryptomator creates an encrypted container that is mounted as a virtual disk, the files inside are stored in encrypted form, and access is only possible after you enter a password.

Steps:

  1. Install Cryptomator from Google Play or F-Droid.
  2. Create a new Vault and set a password.
  3. Move files to storage via the application interface.
  4. Unmount the storage – files will become unavailable without a password.

πŸ”§ Method 2: Complete root folder encryption (for experienced users)

If you have root access, you can use EncFS or LUKS It's a more complex method, but it provides maximum protection.

⚠️ Warning:

  • On devices with an unlocked bootloader, encryption may conflict with MIUI, Before you do anything, back up through TWRP!
  • Some banking applications (such as SberBank Online) refuse to work on root devices.

πŸ“Œ Safety recommendations:

  • Use passwords that are long β‰₯12 characters with mixed register.
  • Do not store passwords in notes or cloud services.
  • Update encryption applications regularly.
How to get root on Xiaomi?
1. Unlock the loader through [Mi Unlock Tool](https://en.miui.com/unlock/) (Requires a tied Mi Account and waiting 7-14 days). 2. Install custom recovery (TWRP) for your model. 3. Fly Magisk through TWRP. ⚠️ On new devices (e.g. Xiaomi) 14) Unlocking the bootloader resets all data!

7.Alternative methods: cloud storage and hidden chats

If you don’t want to store sensitive files on the device itself, consider cloud-based client-encrypted solutions or hidden chats in instant messengers, which are suitable for backups or temporary file sharing.

🌐 Cloud storage with encryption:

  • πŸ”’ Proton Drive is a Swiss zero-access storage system).
  • πŸ“ Tresorit – Client-side encryption, support MIUI.
  • πŸ” Mega - 20GB free, but there are security questions.

πŸ’¬ Hidden chats in messengers:

Some messengers allow you to send files to saved messages or secret chats:

  • πŸ“± Telegram: Create a Secret Chat with you and send files there.
  • πŸ”’ Signal: Use Private Notes (function in beta).

⚠️ Important: Even in encrypted chats, files are stored on messenger servers. For maximum privacy, delete them after viewing.

8 What to do if hidden files are missing or not opened

Sometimes after the update MIUI Or reset your settings, hidden files may disappear or become inaccessible:

πŸ”„ If files are hidden through a β€œClosed Folder” or Security App:

  1. Check if your password has been reset (try standard 123456 combinations or date of birth).
  2. If the password is forgotten, restore it through Mi Account (account binding is required).
  3. Reinstall the Security app (if it has been removed).
  4. Check the folder. /storage/emulated/0/.hidden through a file manager with root rights.

πŸ—ƒοΈ If files are in the archive with a password:

  • Use it. RAR Password Unlocker (for simple passwords).
  • Try to remember the password by prompts (date, name of the pet, etc.).
  • If the archive is important, contact WinRAR Support (for legal cases).

πŸ› οΈ If the files are missing after the update MIUI:

  1. Check the folder. Download/Backup β€” Sometimes the system backs up copies.
  2. Connect your phone to your PC and scan the memory with programs like Recuva or DiskDigger.
  3. Contact Xiaomi Support with model and version MIUI.

❌ What not to do:

  • 🚫 Do not format memory – it will delete files irrevocably.
  • πŸ”„ Do not install unofficial firmware in the hope of returning data.
  • πŸ’Ύ Don’t trust password recovery software – most of them contain viruses.

πŸ’‘

If files have been hidden through third-party apps (AppLock, Vaulty), reinstall this app – often this restores access to the safe.

FAQ: Frequent questions about hidden folders on Xiaomi

❓ Can you hide the folder so that it does not appear even in the file manager?
Yes, but it requires root rights, and you can rename the folder by adding dots to the beginning (e.g., root rights,.secret_folder), Or move it to the system partition (/data/data). Without root, it is impossible to completely hide the folder from the file manager - it will be visible, but access to it can be blocked with a password.
❓ Does the Closed Folder work on custom firmware (e.g. Pixel Experience)?
No, the Private Folder feature is a proprietary development of Xiaomi and works only on official versions. MIUI. On custom firmware (LineageOS, Pixel Experience) use alternatives: AppLock, Cryptomator or encrypted archives.
❓ How to hide a folder from a specific person, but leave access to yourself?
Use applications with a false password (such as AppLock or GalleryVault). Set up: The primary password for your access. A false password that shows an empty safe or pre-prepared files. You can also create a second user on Android (Settings). β†’ System system β†’ Multiplayer mode) and hide files only in your profile.
❓ Why do you still see files in Google Photos after hiding them?
Google Photos ignores.nomedia file and scans all folders on the device.To hide files from it: Open Google Photos β†’ Settings β†’ Backup and sync. Disable backup for the file folder. Delete files already uploaded from the cloud (manually or through Storage Management). Alternative: Use a Closed folder MIUI β€” The files from it do not get into Google Photos.
❓ Can I hide the folder on SD-map?
Yes, but with limitations: πŸ“ The.nomedia file also works on SD-map. πŸ”’ Closed folder MIUI supportive SD-Cards – Only internal memory. πŸ” To encrypt folders on SD You'll need to root or transfer files to internal memory. The best option is to encrypt files in an archive with a password and store it on the back. SD-map.