How to securely lock a folder on your Xiaomi phone: from standard features to hidden MIUI chips

Protecting personal data on a smartphone is a key challenge for the modern user. Photos, documents, correspondence and other sensitive files are often stored in folders that need to be restricted from prying eyes. Xiaomi phone owners (including the Redmi, POCO and Mi series) have several built-in and third-party folder locking tools, but not everyone knows how to use them correctly.

In this article, weโ€™ll break down 5 proven ways to block a folder on a Xiaomi phone โ€“ from standard features MIUI We'll focus on the nuances of what to do if the function doesn't work, how to restore access when you lose your password, and what methods are most reliable for different versions of the firmware. MIUI You canโ€™t block the phone without risking stability.

1. Lock the folder through the built-in โ€œSecure folderโ€ function in MIUI

The easiest and safest way to do this is to use the standard Secure Folder tool, which is available on most Xiaomi smartphones with MIUI 12 and later firmware, which allows you to hide folders with photos, videos and documents behind a password or biometric authorization.

To activate it:

  1. Open the Gallery or Files app.
  2. Select the folder you want to block and hold it with your finger.
  3. In the menu that appears, tap on three points (โ‹ฎ) and select Move to a secure folder.
  4. When first used, the system will be asked to install PIN-code or use a fingerprint.

After that, the folder will disappear from the main list and will only be accessible through the Secure folder section in the application menu, Importantly, the files inside it are not displayed in search results and are not available to other applications (for example, messengers).

โš ๏ธ Attention: If you forget PIN-code from a secure folder, access can only be restored through resetting all phone settings. Xiaomi does not provide official tools for unlocking without losing data.

Update the Gallery app to the latest version|Make sure that your settings enable sync with Mi Account (if you need backups)|Remember or write down. PIN-safe-place|Check that there are no system files in the folder (for example, with the.db or.apk extension)

-->

2.Use of the MIUI file manager to hide and block

The standard File Manager app on Xiaomi has a Hidden Folder feature that works differently than Secure Folder, which doesn't encrypt data, it just hides it from being displayed in the main interface, which is less reliable, but it's suitable for temporarily hiding files from the eye.

Instructions:

  • ๐Ÿ“ Open the files and find the right folder.
  • ๐Ÿ”ง Tap it on three points (โ‹ฎ) โ†’ Hide.
  • ๐Ÿ” The folder will disappear, but will remain available through the Category section. โ†’ Hidden files.

To return it back, go to Settings โ†’ Show hidden files. This method does not protect against targeted search, so for sensitive data, it is better to combine it with other methods (for example, archiving with a password).

How to hide a folder from MIUI system search
To prevent a folder from appearing in search results over the phone, add a point (e.g.,.Personal) to the beginning of its name. This only works for folders in the root directory of internal memory, not on the back of the folder. SD-Note that some applications (e.g., a gallery) can still scan these folders.

3. Blocking through archive with password (ZIP/RAR)

If your version of MIUI doesnโ€™t have built-in locking features, you can use a universal method โ€“ archive the folder with a password. This method works on any Xiaomi phones, including older models with MIUI 10-11.

For this:

  1. Install an archiving app (such as RAR or ZArchiver from Google Play).
  2. Select the folder in the file manager and select Compress.
  3. In the archive settings, set the Encrypt box and come up with a complex password (at least 8 characters with numbers and letters).
  4. Once the archive is created, the original folder can be deleted.

Advantages of the method:

  • ๐Ÿ”’ Password protection at the archive level (hacking is almost impossible with a complex password).
  • ๐Ÿ“ฑ It works on all versions of Android and MIUI.
  • ๐Ÿ’พ The archive can be transferred to a computer or cloud for additional redundancy.

โš ๏ธ Note: If you lose your password from the archive, it will be impossible to restore access to files - even specialized programs for hacking. ZIP/RAR They do not guarantee results with complex passwords.

Built-in "Secure folder" MIUI| Password Archive |Third-party applications (e.g. AppLock)| Hiding through file manager | I don't block folders

-->

4. Third-party applications for folder lock

If standard MIUI features arenโ€™t enough, you can install specialized apps from Google Play.

AnnexType of lockdownFeaturesCons
AppLockPassword, fingerprint, pattern lockBlocks access to folders and applications, masking under the calculatorShows ads in the free version
File LockPIN-codeFile Encryption, Cloud BackupSlow work with large folders
Vault-HidePassword, fake entrance.Hiding files under a โ€œfalseโ€ password, built-in galleryIt takes a lot of permission.

Before installing, check the reviews and rating of the application โ€” some programs may contain advertising software or collect data.

  • ๐Ÿ“ฅ Give the application access to files (Settings) โ†’ Annexes โ†’ Permits).
  • ๐Ÿ” Select folders to lock and set a password.
  • ๐Ÿ›ก๏ธ Enable the option to Hide from the Gallery if you have one.

-->

5. Hiding folders by changing permissions (for power users)

This method is suitable for users familiar with ADB or Termux, which allows you to restrict access to a folder at the file system level, but requires root or debugging permissions.

Instructions via Termux:

pkg install termux-api


termux-setup-storage




cd /sdcard/Your Pad




chmod 700 .

The folder will only be available to the owner (your user) but:

  • โš ๏ธ Some system applications (such as a gallery) may lose access to files.
  • โš ๏ธ The method does not work for folders on SD-Map (due to Android restrictions).
  • โš ๏ธ After resetting the phone, permissions are reset.

-->

6. Features of folder locking on different Xiaomi models

Folder locking functions may vary depending on the phone model and MIUI version.

Model/SeriesMIUI versionAvailable ways to blockLimitations
Redmi Note 10/11/12MIUI 12.5+"Secure folder", AppLock, archivingThere is no built-in folder encryption on SD-map
POCO F3/F4/F5MIUI 13 for POCO"Secure folder", hiding through filesNo biometrics support for folders in MIUI 13 for POCO
Xiaomi 12/13/14MIUI 14+All methods, including encryption through "Security"Requires a binding to Mi Account for backup

On older models (such as the Redmi 5/6 or Mi A2 with Android One), the built-in locking features may not be available.

  • ๐Ÿ“ฆ Password archive.
  • ๐Ÿ”’ Third-party applications (e.g. Solid Explorer with encryption support).
  • ๐Ÿ–ฅ๏ธ Transferring files to an encrypted external drive.

7.How to restore access if you forgot your password

If you lose access to a locked folder, the recovery options depend on the method of blocking:

For MIUI's Protected Folder:

  • ๐Ÿ”‘ Try to remember. PIN-code or pattern lock (the system gives 5 attempts).
  • ๐Ÿ“ฑ If you have Mi Account attached, try resetting your password through Settings. โ†’ Xiaomi account โ†’ Security.
  • โš ๏ธ If you lose your password and no backup, the only way is to reset your phone to factory settings (data will be lost).

For archives (ZIP/RAR):

  • ๐Ÿ”“ Use programs like ArchPR or RAR Password Unlocker (Efficiency) ~30% for weak passwords).
  • ๐Ÿ’ป If the archive was created on a PC, try to recall the password through the browser password manager.

For third-party applications:

  • ๐Ÿ“ง Check the registration letter (some applications send backup codes).
  • ๐Ÿ”„ Reinstall the app โ€“ sometimes it resets lock settings (but not always).

โš ๏ธ Note: On Xiaomi phones with Find Device enabled, after 10 failed password attempts, the system can block access to files for 24 hours, including Protected Folder and some third-party apps.

Frequently asked questions

Can I block the folder on SD-map?
In most cases, no. The "Secure Folder" function in MIUI It only works with internal memory. SD-You can: Use password archiving; install a third-party application (like File Lock), but it doesn't guarantee 100% protection; transfer files to internal memory and lock them there. This is due to the limitations of Android, which does not allow applications to encrypt external drives without root rights.
Why did the โ€œSecure Folderโ€ function disappear after the MIUI update?
Sometimes, after major updates (e.g., from MIUI 12 to MIUI 13), settings are reset. To return the function: Check if the folder is hidden in the gallery settings (Settings โ†’ Secure Folder โ†’ Restore). Update Gallery and Files apps via Google Play. If the feature is gone completely, try resetting the Gallery app settings (Settings โ†’ Apps โ†’ Gallery โ†’ Storage โ†’ Clear Data).
Can I lock the folder so that it is not visible even through the PC?
Yes, but you do: Use encryption (e.g., via VeraCrypt on a PC or Cryptomator on a phone); Hide folder by changing attributes (e.g., adding a point at the beginning of a name on Linux/Mac); Use applications like Hide Something that mask files as system files. Note: when you connect your phone to your PC via MTP (file transfer mode), some hidden folders can become visible. For complete privacy, disable USB debugging in the developer settings.
Will folder lock work if you reset your phone to factory settings?
No, all lock settings will reset. However: If you used the Secure Folder and linked it to Mi Account, you can retrieve your files after you restore your account (if they synced). Password archives (ZIP/RAR) will remain secure, but you will need to remember your password. Third-party applications (such as AppLock) will require reconfiguration. We recommend that you back up important files to an external drive or to the cloud (such as Google Drive or Mi Cloud) before resetting.
Can I block a folder with a fingerprint without PIN-code?
No, on Xiaomi phones, biometric authorization (fingerprint or face) is always tied to the main unlock method โ€” PIN-This is an Android security requirement: When you first set up a Secure Folder, the system will ask for a backup. PIN. Third-party apps (like AppLock) also require a backup unlock method.If your fingerprint is not recognized (like because of sensor damage), you can log in through the device. PIN. This is done to prevent loss of access to data in case of hardware failures.