How to make a folder with a password on Android Xiaomi

Xiaomi’s modern smartphone has become a digital repository of personal information, containing not only work documents, but also candid photos, passport scans and bank cards. The standard gallery or file manager often provides access to all media files at once, which poses risks when transferring the device to another person or in the event of a theft. Users are looking for a reliable way to isolate sensitive data from prying eyes using the built-in capabilities of the Android operating system and the MIUI shell.

Xiaomi has offered multiple layers of protection, ranging from simple album hiding to a completely isolated space with a separate password, and privacy is not only provided by the installation of a digital code, but also the ability to unlock biometrically through a fingerprint or facial recognition. It is important to understand that methods can vary depending on the firmware version, whether it is a global Global ROM or a Chinese ROM.

In this article, we will discuss in detail all available ways to create secure storage. We will look at the standard tools of the system that do not require the installation of third-party software, and also touch on the nuances of working with Second Space. You will learn not only to hide files, but also to make them almost invisible to the average user, ensuring the maximum level of security of your personal data.

The easiest and fastest way to shut down private photos and videos is to use the built-in hidden album feature in the standard Gallery app, which doesn't require you to create separate folders in the file system, it only changes the visibility of content for the user who doesn't know the secret gesture, and to activate this mode, you need to open the gallery app and go to the Album tab.

Then you need to do a specific action: swipe down the screen from top to bottom until there is a vibration or characteristic animation. The system will request a privacy password if it has not been set up. Once you enter the code or fingerprint, the hidden album interface will open, where you can move any media library. Xiaomi allows you to hide not only entire albums, but also individual photos.

⚠️ Warning: Hidden albums are not encrypted storage, and if an attacker gains access to the file system through a computer or software, they will be able to find these files.

To move files, you just need to select the photos you want, click the "More" button, and select the "Hide" option. Files will disappear from public access and only appear after you swipe down again with a password, which is convenient for quickly segregating content without creating complex folder structures.

📊 What type of protection do you use most often?
Hidden albums
Second space
Third-party annexes
I'm not hiding anything.

Creating a secure folder through Privacy Protection

A more advanced tool available in the MIUI shell is Privacy Protection, which allows you to hide not only photos, but also any other file types, including documents, video and audio. To access this tool, you need to go to Settings → Passwords and Security → Privacy Protection.

Inside the menu, you'll need to create a special privacy password that's different from the screen unlock password. Once you activate the function in the file manager or gallery, you'll be able to add files to a secure area. Files placed here are physically moved to a system folder that's not authorized.

  • 🔒 Open the Explorer and find the file you want to hide.
  • 📁 Press and hold the file, then select “More» → «Hide».
  • 🔐 Enter the previously set privacy protection password.
  • ✅ The file will be moved and will only be accessible through the protection menu.

It is important to note that when you reset your phone to factory settings without first removing the protection, files can be lost or left in encrypted form, unavailable for recovery. Backing up such data also has its own peculiarities, since standard cloud services can ignore hidden partitions.

💡

Remember or write down your privacy password in a safe place. It's almost impossible to restore access without a password or a linked Mi Account.

Second Space: Complete data isolation

Second Space is the most powerful tool in Xiaomi’s arsenal, allowing you to create a virtual smartphone inside a physical device, not just a folder with a password, but a fully isolated environment with its applications, contacts, gallery and files, switching between spaces instantly through settings or a special widget.

To activate this feature, go to Settings → Second Space and click “Enable.” The system will prompt you to configure a separate unlock method (fingerprint or pattern lock) that will immediately open the second space, bypassing the main screen. This creates a deniability effect, since when you enter the main password, the phone shows a “clean” interface without any hint of hidden data.

ParameterMain spaceSecond space
AnnexesSeparate setCopy or re-install
Files and photosNot visible in the second.Not visible mostly
Accounts.The main Google/MiYou can use other accounts.
NotificationsThey're in the main.They only come in the second.

Second Space is ideal for separating work and personal lives or storing highly sensitive information, but it’s worth considering that having two active profiles can consume more RAM and battery life, although this is almost invisible on modern Xiaomi models.

☑️ Checking before creating the second space

Done: 0 / 4

Using the Security app to hide files

In the system set of Xiaomi utilities, there is the Security app, which combines the functions of an antivirus, a cleaner and a privacy manager. This is where the central node for managing hidden files is located. Once you launch the application, you need to scroll down to the section “Hide files” or “Privacy protection”.

The interface allows you to manage already hidden objects or add new ones. The uniqueness of Xiaomi’s approach is that hiding files here is closely integrated with cloud services and the ability to remotely manage in the event of a loss of a device.

Users can adjust exceptions and rules, such as allowing certain applications to access hidden files or blocking any export attempts, and the protection mechanism works at the file system level, changing the paths to objects and hiding them from standard media indexers.

⚠️ WARNING: When cleaning the cache of the Security app or reinstalling system updates, the concealment settings may get lost.Always check for files in storage after major updates MIUI.

Third-party solutions: Vault and ransomware

If there are not enough regular funds or the MIUI interface seems inconvenient, you can always turn to third-party developers. There are many storage applications (Vault) on Google Play that create a secure container. Popular options include Calculator Vault or KeepSafe.

They're different from the system, they create an encrypted database where files are copied or moved, and some of them can disguise themselves as other applications, like a calculator or a voice recorder, which provides an extra layer of stealth. To open this folder, you need to enter a special code in the calculator interface.

  • 📲 Calculator Vault: Masquerades as a calculator, has a false password function.
  • 📂 File Hide Guru: Allows you to hide files without moving, changing their attributes.
  • 🔐 Lock My Folders: Uses its own encryption for each file separately.

Using third-party software carries risks. Unlike Xiaomi’s system protection, such applications can have vulnerabilities or collect user data, and when a phone is reset, data in such storage often disappears unless synchronization with the developer’s cloud is configured.

Risks of using third-party storage
Many free versions of apps contain ads and can send metadata to developers’ servers, and it is more reliable to use system encryption or Second Space to store critical documents (passports, contracts).

Restoring access and resolving problems

Situations where a user forgets the password from a hidden folder or a second space are common. If you have linked the security to a Mi Account, the recovery is possible through a password reset procedure with the code sent to the mail or phone. However, if the account was not linked, access to the data can be lost forever due to the use of encryption algorithms.

A common problem is that hidden files disappear after a firmware update, in which case it is recommended to check the path to the storage. Sometimes the system update changes the structure of the directories, and the files are in the folder.MIUI_gallery_cloud_cache Or similar hidden directories, which you'll need a file manager with hidden file rights to find.

If hidden files are lost after resetting, the chances of recovery are minimal. The encryption used in MIUI is tied to the device keys. Changing the keys during reset makes the data unreadable. The only way to ensure that you do not lose access is to regularly back up important files to an external medium or to the cloud before any manipulation of the system.

💡

Forgetting the password from Xiaomi’s system storage without being tied to a Mi Account leads to irretrievable data loss.

Frequently Asked Questions (FAQ)

Can I hide a folder with a password on Xiaomi without using a Mi Account?
Yes, it is. Hidden Album and Privacy Protection work locally on the device, but it is highly desirable to retrieve the password if it is forgotten, otherwise the data will be lost.
Are hidden files visible when connecting your phone to your computer via USB?
Files hidden through the standard Hidden Albums feature may not be visible immediately, but when you display hidden system files in your computer’s Explorer, they can be found. Files from Second Space or encrypted Privacy Protections when connected via USB are not displayed and are not available for copying without unlocking on the smartphone itself.
What happens to hidden photos when you delete the Gallery app?
You can’t remove the Gallery app on Xiaomi by standard means. If you install a third-party gallery and remove the system, hidden albums may become unavailable through the new interface, but the files themselves will remain in the phone’s memory in a hidden partition until you restore access through security settings.
Can I transfer hidden files to another phone?
Simple copying is not. Files are encrypted or hidden by specific MIUI attributes. To transfer them, you first need to "disclose" them (remove the concealment) in the original phone, copy ordinary files to a new device and then apply the concealment function again.