How to put a password on a folder in a Xiaomi smartphone: all ways to protect personal files

Protecting sensitive data on a smartphone is a challenge that every user faces. Photos, documents, correspondence and work files often require additional protection from prying eyes. Owners of Xiaomi, Redmi and POCO devices have several built-in and third-party tools to lock folders with a password, but not everyone knows how to use them correctly.

In this article, we will discuss 5 working ways to put a password on a folder, from standard MIUI features to advanced encryption methods. You will learn which methods are more reliable, how to avoid typical configuration errors, and what to do if you forget your password. And also compare built-in tools with popular applications from Google Play on the criteria of security and convenience.

1. Built-in "Secure folder" function in MIUI

The easiest way to password a folder on Xiaomi is to use the proprietary tool Protected Folder** (formerly called Private Folder), a feature available on most devices with MIUI 12 and later, including the Redmi Note 10/11/12, POCO X3/X4/X5, Xiaomi 12/13/14. Its main advantage is system-level integration, which eliminates the risk of data leakage through third-party applications.

To activate the protection:

  1. Open the Files app (the blue-background folder icon).
  2. Go to the Category β†’ tab scroll down to the Protected folder section.
  3. Click Settings and follow the instructions for creating PIN-code-key.
  4. After setting up, move the desired files to the protected folder through the Select β†’ Move menu.

⚠️ Importantly, if you reset your phone to factory settings, the contents of the protected folder will be permanently deleted β€” MIUI Does not provide a way to export files from the protected area.

Make sure the version MIUI less than 12|Create a backup copy of important files|Remember. PIN-code|Disable Autosynchronization with the Cloud for this folder-->

AdvantagesDeficiencies
Does not require the installation of third-party applicationsFiles are not available via PC (even when connected via USB)
Encryption at the system level (AES-256)When resetting the phone, the data is deleted
Works with photos, videos, documentsIt is impossible to password folders in the root directory

2.Use of the application "Security" (Second Space)

Another built-in tool Xiaomi has is the Second Space feature, which allows you to create a separate user profile with your own apps, files and settings, access to which is password-protected, which is suitable if you need to hide not only folders, but also installed programs (such as instant messengers or banking applications).

Algorithm of settings:

  1. Go to Settings β†’ Special Options β†’ Second Space.
  2. Click Create Second Space and set a password (different from the main one).
  3. In the new profile, install a file manager (for example, Files by Google) and move the folders you want there.
  4. Return to the main profile – access to files from Second Space will be blocked.

πŸ”Ή Nuance: Second Space creates a full-fledged second account, which can take up to 1-2 GB of memory, and some system applications (such as the Gallery) will be duplicated, which is not always convenient.

Built-in "Secure folderΒ»|Second Space (second profile)|Third-party annexes|Encryption of archives|Don't use protection.-->

3. Third-party applications for folder lock

If the built-in MIUI features don't suit you, you can use third-party software.

  • πŸ”’ AppLock - blocks access to folders, applications and system settings. Supports fingerprint and facial recognition.
  • πŸ“ Folder Lock encrypts files in real time, creates a safe with a password.
  • πŸ›‘οΈ Keepsafe – specializes in protecting photos and videos, but can block entire folders.

🚨 Warning: Check the permissions of the application before installing. If the program requests access to SMS, geolocation or contacts without an obvious reason, this is a sign of potentially dangerous software.+.

Example of Folder Lock configuration:

  1. Download the app from Google Play and set a master password.
  2. In the main menu, select Add Files β†’ specify folders to lock.
  3. Activate Stealth Mode to hide the program icon.
How to cheat spy apps?
Some malware can intercept passwords through screenshots or keyboard logs. To minimize risks: 1. Use the virtual application keyboard (not the system keyboard). 2. Enable Screenshots Banning in the blocker settings. 3. Regularly check active processes through Settings β†’ Applications β†’ Launched.

4 Encrypting folders into a password archive

If you want to transfer protected files to another device or save them to the cloud, the best option is to archive the folder with the password.

  • πŸ“¦ RAR (attachment RAR for Android – supports encryption AES-256.
  • πŸ” 7-Zip (through 7Z Archiver – free and open format 7z.
  • πŸ”— WinZip – convenient for integration with cloud services (Google Drive, Dropbox).

Instructions for RAR:

1. Open the RAR app and select the folder to archive.


2. Click "Add to archive" β†’ specify the file name.




3. In the section "Set password" enter the code and confirm.




4. Select the encryption layer (AES-256 is recommended).




5.Click OK – the archive will be created in the same directory.

⚠️ Note: If you forget your password, it will be impossible to restore access to files – even specialized hacking programs (such as ArchPR or ArchPR). RAR Password Unlocker does not guarantee results for modern encryption algorithms.

5. Hiding folders without password (alternative method)

If you do not need a password, but simply hide the folder from outsiders, you can use the system functions of Android:

  1. Connect your phone to your PC via USB (file transfer mode).
  2. In the root directory of memory, create a folder with a name beginning with a point, for example:.secret_files.
  3. Move the files you want to see there. The standard MIUI file manager won't display that folder.

πŸ”Ή How to regain visibility:

  • Use a file manager that supports hidden files (such as Solid Explorer or FX File Explorer).
  • Enable the display of hidden folders in the manager settings (Settings β†’ Show hidden files).

⚠️ Limitation: This method does not protect files from access through ADB If an attacker gains physical access to the phone, they can see the hidden data through the command line.

πŸ’‘

To strengthen the protection of the hidden folder, place a.nomedia file in it (without extension) and prevent its content from being displayed in the gallery and media players.

6.What to do if you forget your password?

Reset passwords from a secure folder or third-party application in several ways, but not all of them will save your data:

MethodAre files saved?Difficulty
Reset via Mi Account❌ No.Low.
Recovery via email (for third-party applications)βœ… Yes.Medium
Delete locksettings.db file via ADB❌ No.Tall.
Appeal for Xiaomi support❌ No.Very high.

πŸ”§ Step-by-step instructions for resetting via Mi Account:

  1. Go to account.xiaomi.com and log in.
  2. In the Devices section, select your smartphone β†’ Find the device.
  3. Click Lock the device and install a new one. PIN-code.
  4. After unlocking the phone, the protected folder will be reset (files will be deleted).

⚠️ Warning: if the phone is enabled Factory Protection MIUI (Recovery resets require the username and password from Mi Account, without which the device will become a brick».

7. Comparison of methods: which one to choose?

The choice of the way to protect the folder depends on your tasks:

  • πŸ”„ File transfer β†’ Password archives or cloud storage with encryption (Cryptomator).

πŸ“Š Recommendations on models:

  • Xiaomi 13/14, Redmi Note 12 β†’ Use Protected Folder** (optimized for newer versions of MIUI).
  • POCO F4/F5, Redmi K50 β†’ Second Space (works well with high-performance chips).
  • Older models (MIUI 11 and below) β†’ Third-party applications (AppLock or Keepsafe).

πŸ’‘

On devices with MIUI 14+, the built-in Secure Folder uses hardware encryption (via the Qualcomm Secure Processing Unit or MediaTek TrustZone chip), making it more reliable than most third-party solutions.

FAQ: Frequent questions

Can I put a password on a folder in Google Drive or the cloud?
The cloud services themselves (Google Drive, Mi Cloud) don't support folder passwords, but you can: Encrypt files into an archive (RAR/7-Zip) before downloading; use third-party services like Cryptomator (creating encrypted storage); set up two-factor authentication for a Google/Xiaomi account.
Is it true that the β€œSecure folder” in MIUI can be hacked through ADB?
Theoretically, yes, but only if you have root rights, without root rights, you can access the files of the protected folder through the root. ADB Fastboot is not possible because MIUI Uses: Hardware encryption (FBE β€” File-Based Encryption: Link to Mi Account (on new devices) USB securely. πŸ”Ή Exception: on devices with an unlocked bootloader (bootloader), attacks through custom Recovery (for example, TWRP).
How to protect the folder from access via computer (when connecting via USB)?
If you connect your phone to your PC in File Transfer mode, secure folders MIUI However, for added security: Turn off Debugging by USB In Settings β†’ The phone. β†’ Version. MIUI (Click on version 7 times, then return to Additional β†’ Use Second Space, because its files are not visible in the main profile. Set the password on yourself. USB-mode through the application Security (Section Protection) USB).
Can I recover files from a secure folder after resetting my phone?
No. When reset to factory settings: Secure Folder encryption keys are deleted. Second Space files are erased along with the profile. Third-party applications (like Folder Lock) can save data if you sync them to the cloud. πŸ”Ή The only way to prevent loss: regularly copy important files to an encrypted archive and save it to a PC or external drive.
What applications to block folders should not be installed?
Avoid programs with the following signs: 🚫 Request access to SMS, calls or geolocation without reason. 🚫 Have a low rating (less than 4.0) or few reviews. 🚫 Offering β€œpassword hacking” or β€œpasspassing locking” – it can be a virus. 🚫 Distributed outside of Google Play (e.g. via Google Play) APK-files from unknown sites). πŸ›‘οΈ Safe alternatives: AppLock (DoMobile Lab), Folder Lock (NewSoftwares), Keepsafe (Keepsafe Software).