Protecting personal data on a smartphone is one of the key tasks for most users. This issue is especially acute when it comes to folders on the desktop containing confidential photos, documents or work files. Unfortunately, standard tools Android do not always offer convenient tools for blocking individual folders directly on the main screen. But this does not mean that the task is impossible: there are both built-in functions (on some firmware) and third-party solutions that allow you to reliably hide or block access to folders.
In this article we will analyze all the current methods - from simple methods using archivers to specialized applications with encryption. It is important to understand that the effectiveness of each method depends on the version Android, device model and even manufacturer (for example, Samsung, Xiaomi or Huawei offer different approaches to security). We'll also focus on nuances that are often overlooked, such as why some "hidden" folders may still be accessible through the file manager, and how to avoid this.
Why standard Android tools don't always work
Many users find that trying to simply move a folder to a "hidden" area (for example, in ./storage/emulated/0/) does not give the expected result. The fact is that Android by default does not support folder locking at the OS level โunlike iOS, where there is a built-in โHidden Albumsโ function. Even if you add a period in front of the folder name (for example .Secret), it will become invisible only for some file managers, but not for all.
Moreover, on devices with Android 10+ storage sharing has appeared (Scoped Storage), which further complicated working with system folders. Smartphone manufacturers are trying to close this gap with their solutions:
- ๐ฑ Samsung Knox โ allows you to create protected folders, but only for files, and not for folders on the desktop.
- ๐ MIUI (Xiaomi) โhas a "Private Mode" function, but it hides files only inside the gallery.
- ๐ก๏ธ Huawei AppLock โblocks access to applications, but not to folders on screen.
โ ๏ธ Attention: On devices with Android 13+ some methods of locking folders (for example, through .nomedia) may stop working due to changes in the storage access policy. Before using, check the relevance of the method on your OS version.
This means that to fully block a folder on your desktop, you most often have to resort to third-party tools. However, there are workarounds, which we will discuss below.
Method 1: Using archivers (ZIP/RAR with password)
One โโof the most universal and reliable methods is archive a folder with a password. This method works on any device, does not require root access and does not depend on version Android. The main advantage: even if someone gains access to the archive, without a password its contents will remain protected.
Here's how to do it:
- Install a file manager with archiving support (for example, Solid Explorer, FX File Explorer or RAR).
- Select the folder on your desktop that you want to lock.
- Select the "Compress" or "Archive" option (in Solid Explorer this
Menu โ Compress). - Specify the format
ZIPorRARand set a password (at least 8 characters, with numbers and special characters). - After creating the archive, delete the original folder.
| Archiver | Password support | Encryption | Free version |
|---|---|---|---|
| RAR | โ Yes | AES-256 | โ No (trial) |
| Solid Explorer | โ Yes | ZIPCrypto/AES | โ Yes (with restrictions) |
| 7Z | โ Yes | AES-256 | โ Yes |
Disadvantage of this method: you will have to unpack the archive each time to access the files. However, this can be partially automated:
- ๐ Create a shortcut for the archiver on the desktop with an automatic unpacking command (in Solid Explorer this is done through
Actions โ Create a shortcut). - ๐ Use a password manager (for example, Bitwarden) so as not to forget the combination.
Select a reliable archiver|Check free space (the archive will take ~10-30% from the original)|Remember the password or save it in the manager|Delete the original folder after archiving-->
Method 2: Hiding the folder through the .nomedia file
If your goal is not so much to block the folder, but hide it from view (for example, from a gallery or music player), you can use file .nomedia. This method does not protect the data, but makes the folder "invisible" for most media applications.
Instructions:
- Open any file manager (for example, Total Commander or built-in Files by Google).
- Go to the folder you want to hide.
- Create a new file with the name
.nomedia(without extension!). data-i="100">Reboot your device or update the data in the gallery (in Total Commander this is done throughMenu โ New file. - Reboot your device or update the data in the gallery (in Google Photos this is
Settings โ Free up space).
โ ๏ธ Attention: File .nomedia does not block access to the folder - it will still be visible in the file manager. This method is only suitable for hiding media files from automatic scanning.
To restore the visibility of the folder, simply delete the file .nomediaThis method is often used for:
- ๐ธ Hiding photos. from Google Photos or standard gallery.
- ๐ต Excluding music from playlists (for example, ringtones).
- ๐ Hiding downloaded files from some applications (for example, WhatsApp will not display media from such a folder).
What to do if .nomedia does not work?
On some devices (for example, Xiaomi s MIUI 12+) the file .nomedia is ignored by the system. In this case, try:
1. Move the folder to the root directory (for example, /storage/emulated/0/).
2. Use an alternative file manager to create .nomedia.
3. Add an empty file to the folder .nomedia and file .noindex (for some firmware).
Method 3: Applications for blocking folders (without root)
For those who are looking for a more convenient solution than archiving, there are specialized applications. They allow block access to folders. password, fingerprint or pattern keyLet's look at the top 3 proven tools:
1. Folder Lock (by NewSoftwares)
- ๐ Standard file encryption
AES-256. - ๐ Ability to hide folders from the gallery.
- ๐ฑ Support for biometric authentication.
- โ ๏ธ Minus: free version has a limit on file size (up to 10 MB).
2. AppLock by DoMobile Lab
- ๐ Blocking not only folders, but also applications.
- ๐ Ability to hide folder icons on the desktop.
- ๐ Automatic blocking when connecting to unsecure networks Wi-Fi.
- โ ๏ธ Minus: advertising in the free version.
3. Vaulty
- ๐ธ Specializes in hiding photos and videos.
- ๐ "False PIN" function (shows empty storage when entering the wrong password).
- ๐ Backup to the cloud.
- โ ๏ธ Minus: no support for blocking arbitrary folders (media files only).
How to set up folder blocking in Folder Lock:
- Download and install the application from Google Play.
- Run it and set a master password.
- Click
Add โ Foldersand select the desired folder on your desktop. - Activate the option
Hide and lock. - The folder will disappear from the desktop and will only be accessible through Folder Lock.
Folder Lock|AppLock by DoMobile|Vaulty|Other|I donโt use-->
โ ๏ธ Attention: Some applications for locking folders (for example, Vaulty) can store your files on their servers. Before use, check the privacy policy and disable cloud backup if this is critical.
Method 4: Encrypt the folder using Cryptomator (for advanced users)
If you need maximum reliable open source solution, pay attention to Cryptomator. This application creates encrypted storages (vaults), which are mounted as virtual disks. Advantages:
- ๐ Encryption
AES-256without transferring data to servers. - ๐ Ability to block entire folders, not just files.
- ๐ Synchronization with clouds (Google Drive, Dropbox) in encrypted form.
Setup instructions:
- Install Cryptomator from Google Play or F-Droid.
- Create a new storage (
Create Vault) and set a password. - Move the files from the folder on your desktop to the encrypted storage.
- Unmount the storage (
Unlock) - files will become inaccessible without a password.
Important nuances:
- ๐ง To work with encrypted files, you need to mount the storage each time.
- ๐ฑ On some devices (Samsung s One UI), you may need to manually configure access to the storage in
Settings โ Applications โ Cryptomator โ Permissions. - ๐ When deleting Cryptomator access to files will be lost if you do not back up the master password.
If you use Cryptomator to synchronize with the cloud, create a separate account Google Drive specifically for encrypted data. This will add an additional level of security.
Method 5: Blocking via Secure Folder (for Samsung devices)
Smartphone owners Samsung (starting from Galaxy S7 and later) have access to the built-in solution - Secure Folder. This feature uses technology Samsung Knox to create an isolated, secure space where you can transfer files and applications.
How to set up Secure Folder:
- Open
Settings โ Biometrics and security โ Secure Folder. - Login through your account Samsung or Google.
- Set the unlock method (PIN, fingerprint or iris).
- Click
Add filesand select a folder from the desktop. - Files will be copied to Secure Folder and deleted from the original folder (optional).
Advantages Secure Folder:
- ๐ Complete isolation of files from the rest of the system.
- ๐ฑ Ability to block individual applications within a folder.
- ๐ Automatic backup to Samsung Cloud.
โ ๏ธ Attention: If you reset the device to factory settings, access to Secure Folder will be lost if synchronization with account Samsung. Before resetting, be sure to transfer important files back to the main storage.
Limitations:
- ๐ต Works only on devices Samsung enabled Knox.
- ๐ You cannot lock the folder "in place" - files must be transferred to Secure Folder.
- ๐ง Some firmware (One UI 5.0+) may require an update Samsung Knox.
Secure Folder - the most reliable solution for owners Samsung, as it uses hardware encryption. However, this method is not available for other brands.
What to do if you need to lock a folder on the desktop without installing applications
If you do not want to install third-party apps, you can use a trick:
move the folder to the system storage, inaccessible without root access. For example, in /data/local/tmp/. However, this method has serious limitations:
Step-by-step guide (required ADB):
- Connect the phone to the PC and turn on
USB DebuggingvSettings โ For Developers. - Open the command line and enter:
adb shellmkdir /data/local/tmp/secret
cp -r /sdcard/Download/MyFolder /data/local/tmp/secret/
chmod 700 /data/local/tmp/secret/MyFolder - Delete the original folder from the desktop.
Problems with this method:
- ๐ง Requires rights root or ADB (does not work on all devices).
- ๐ต The folder will not be accessible for most applications (for example, galleries).
- ๐ When resetting or updating The OS folder can be deleted.
An alternative option without ADB:
- Create a folder named
Androidon the desktop. - Create a folder inside it
data. - Move your folder c
/Android/data/.
Many file managers and galleries ignore the contents of this directory, but access to it is still possible through Settings โ Storage.
FAQ: Frequently asked questions about locking folders on Android
Is it possible to lock a folder password without third-party applications?
On most devices - no. Standard Android does not support locking folders with a password. Exceptions:
- Samsung - via Secure Folder.
- Huawei - via PrivateSpace (on some models).
- Xiaomi โ through "Private Mode" in MIUI (only for media files).
For other devices, you will need archiving with a password or third-party applications.
Why, after creating .nomedia, is the folder still visible in the gallery?
Possible reasons:
- The file
.nomediawas created with an error (check if there is an extension, for example.nomedia.txt). - Gallery caches files - try clearing the application cache in
Settings โ Applications. - Firmware ignores
.nomedia(relevant for MIUI 12+ and some versions ColorOS).
Solution: use alternative galleries (for example, Simple Gallery), which respect .nomedia.
How to restore access to a folder if you forgot the password for the archive?
If you forgot the password for ZIP/RAR-archive:
- For
ZIPsZIPCryptoyou can try apps like fcrackzip (Linux) or ArchPR (Windows), but the chances are low. - For
RARwithAES-256password recovery is almost impossible. - If the archive was created via Folder Lock, try the "Password recovery" function by email (works only with prior setting).
Will blocking folders work on Android 14?
Yes, but with reservations:
- Methods with archiving (
ZIP/RAR) and.nomediawork without changes. - Some applications (for example, AppLockmay require additional permissions due to stricter privacy policies in Android 14.
- Secure Folder on Samsung fully compatible with Android 14 and One UI 6.0.
- Cryptomator may require manual provision of access to the storage via
Settings โ Applications โ Special access โ Manage all files.
Before using any method, check its functionality on your OS version.
Is it possible to lock a folder on your desktop using Google Files?
No, the application Files by Google does not support locking folders with a password. However, it does have a "Secure Folder" feature (Safe Folder), which allows you to hide files behind a PIN code. Limitations:
- Only works for individual files, not entire folders.
- Files are physically moved to secure storage (not locked in place).
- Does not hide folders from other file managers.
To use:
- Open Files by Google.
- Go to the
Collection tab. - Click
Secure folderand set a PIN. - Add files manually.