How to lock files on Android, phone by phone

To lock files on Android, move them into a locked spot your phone already has. In Files by Google that's Safe folder, on a Samsung it's Secure Folder, and on Android 16 QPR2 and higher there's private space. With the built-in ways, you don't put a password on the folder where a file sits now. You move the file into a place that has one.
It's worth doing for the files you'd hate to have seen, like an ID scan, a signed contract or a PDF with your home address on it. Hand your phone to a kid for a cartoon, or to a buddy to show him a picture, and your Downloads folder is a couple of taps away. Each locked spot has its own catch, though. With some, a forgotten PIN means the files are gone for good, and some don't come along to a new phone.
By the end you'll know which locked spot your phone has, how to move a file into it, where that file opens when you need it, and what happens when you switch phones or forget the PIN.
We make Armadillo Vault, an encrypted vault for Android. It takes any file up to 100 MB, keeps it encrypted on the phone and off every cloud, and moves to a new phone as one encrypted file that you carry over yourself.

How to password protect files with Safe folder
Safe folder lives in the Files by Google app. It hides files behind a PIN or a pattern, and Google's help page names only one thing that won't go in: an installed app. In grid view:
- Find the files you want to lock.
- Touch and hold them.
- At the top, tap More, then Move to Safe folder.
- Enter the PIN or pattern you set.
Our guide to hiding photos on Android has the steps for setting it up the first time. Where it stops:
- Opening a document. Files in Safe folder can't be opened by any third-party app, and Google's page doesn't say which app opens a PDF in there.
- No sharing or Drive. The Share and Back up to Google Drive options aren't available inside it.
- A forgotten PIN. "If you forget your PIN or Pattern, you can't access your files." A reset means they "will be permanently lost."
- The lock has limits. Google says it keeps files secure "using Android storage with encryption," but also that anyone who gains unauthorized access to the phone's internal storage may be able to get at them.
Getting a new phone? Google's help page says not to copy Safe folder's encrypted files from the old phone to the new one. Moving Safe folder to a new phone shows the way around it.
How to lock a file on a Samsung phone
Secure Folder is Samsung's spot for the photos, videos, files, apps and data you want to keep private, behind a passcode or a biometric lock. Setting it up needs a Samsung Account. To add a file:
- Open Secure Folder.
- Tap the More options icon.
- Tap Add files.
- Pick the type of file, or use My Files to find any file on your device.
- Tap Done.
- Choose whether to copy or move the files.
Copy makes a second version inside Secure Folder, so the original stays out in the open until you delete it. The file has to be on the phone or an SD card, since files saved on your cloud account can't be moved in. To open it later, open Secure Folder and pick Gallery for photos, or another category for other files. It only opens on the phone or tablet, not from the web or a computer.
Forget the code, and you can reset it with your Samsung account, but only if you turned on Reset with Samsung account. If you already use Secure Folder, that's the setting to check, under Lock type, before you lock anything you can't replace. Without it, "you will not be able to recover access to your Secure Folder." You can then remove it and set up a new one. Samsung's guide says Secure Folder can be uninstalled "if you wish to remove all of its contents."
Backing up "is no longer supported in Secure Folder," but Smart Switch can move it to a new device. Does Secure Folder transfer to a new phone? has those steps.
How to hide files on Android in private space
Private space is a separate space on your phone for hiding apps, behind a lock. On Android 16 QPR2 and higher you can also move or copy files into it, such as documents and photos. Some steps only work on phones with the right hardware, so ask your phone's maker if you don't see them.
- Open private space.
- Tap + Add.
- Tap Add files and pick what you want from the phone's main storage.
- Choose Copy or Move.
Move deletes the original once the transfer works, and copy leaves the original where it was. The files land in private space's own Downloads folder, and apps outside can reach them, through the share menu or the photo picker, only while the space is unlocked. Two catches:
- Device backups. "Any on-device data for private space isn't backed up," and restoring the phone from a device backup won't bring the space back.
- A forgotten lock. You "won't be able to access the space." You can delete it from System settings with your phone's own lock and start over, but that deletes what's in it.
Also, if you sign in to private space with a Google Account you use outside it, synced photos and files can show up outside the space.
Can you password protect a folder on Android?
Not with the built-in ways here. Each one locks a place you move the file into, not the folder it sits in now. Here are the three built-in spots side by side, plus Locked Folder in Google Photos (for photos and videos) and our app, checked 24 November 2026.
If you forget the PIN or switch phones
| Forgotten PIN | Backup and new phone | |
|---|---|---|
| Safe folder (Files by Google) | "Can't access your files"; a reset loses them | No Drive backup inside; don't copy to a new phone |
| Secure Folder (Samsung) | Samsung account reset, if you turned it on | Backup "no longer supported"; Smart Switch to a new device |
| Private space (Android 16 QPR2+) | "Won't be able to access the space" | On-device data "isn't backed up" |
| Locked Folder (Google Photos) | Opens with your screen lock; forgetting not covered | Its own backup is optional; with it off, not moved in a transfer |
| Armadillo Vault 0.2.1 | 12 recovery words, then a new pattern | No Android backup; you move one encrypted file, up to 400 MB |
What goes in and where it opens
| File types it takes | Where a document opens | |
|---|---|---|
| Safe folder (Files by Google) | Files, but not installed apps | Not in third-party apps |
| Secure Folder (Samsung) | Photos, videos, files, apps; not cloud files | Inside Secure Folder, by category |
| Private space (Android 16 QPR2+) | Documents, photos and other files | Its own Downloads folder, with its apps |
| Locked Folder (Google Photos) | Photos and videos, all Google's page covers | Inside Locked Folder; move out to share |
| Armadillo Vault 0.2.1 | Any file up to 100 MB | Most photos in the app; other files go out decrypted |
Locked Folder's row is from Google's Photos help. That page talks only about photos and videos, not documents, and its items aren't available to other apps on the phone.
Locking a file in Armadillo Vault
- Tap + (New item) and choose Photos & files.
- Tap File and pick the document.
- Tap Save.
- Delete the original from Downloads or wherever it was. The app copies the file in and leaves the original alone.
Here's what that gets you:
- Encrypted on the phone. Everything in the vault is encrypted with AES-256-GCM, as the app says under Settings.
- Off every cloud. The app has no internet permission, so Android won't let it connect to anything. It also keeps itself out of Android's cloud backup and phone-to-phone transfer.
- Carried to a new phone. Settings, then Move to a new phone, makes one encrypted file of the whole vault. You copy it over your own way, and only your 12 recovery words open it there.
- A way back in. Forget your pattern, and Use recovery phrase on the lock screen takes your 12 words, then you choose a new pattern.
Keeping an ID scan? Is it safe to keep a picture of your passport on your phone? shows where each copy of an ID photo ends up.
Opening a file means sharing it
Most photos open inside the app. Other files, like a PDF, a contract or a video, don't. Tap one and the app asks Share the file?, and warns you that the file leaves the vault unencrypted, and that the app you share it with can save it and pass it on.
Tap Share, pick an app, and that app gets a decrypted copy named "attachment" with the file's own ending, like .pdf. The vault deletes its own temporary copy when the share menu closes. What the other app does with its copy is up to that app.
So the vault suits files you keep and rarely open, like a lockbox in the pole barn. It's the right spot for papers you'd hate to have seen, and the wrong one for something you read every day.
What Armadillo Vault won't do
- It copies, it doesn't move. Delete the original yourself.
- 100 MB a file. Bigger files can't be added yet.
- No cloud backup. The app can't upload anything, but a backup kept only on this phone is lost with the phone. Save your encrypted file somewhere else too.
- Backups over 400 MB won't open on the new phone. The old phone saves a file of any size without a warning, so check its size before you erase anything.
- No reset. Nobody else can reset it for you, not even us. Your 12 recovery words are the only way back in if you forget your pattern, so write them down.
Try it with one file
Armadillo Vault is free for up to 100 items, and each file counts as one. Premium removes the item limit. Lock one PDF you don't mind testing with, tap it to see the warning, and decide if that fits how you use the file.
Get Armadillo Vault on Google Play
Verification notes: The steps and limits for the built-in ways are from Google's and Samsung's own pages, and each page is about the phone or app it names. Google's Files, Android and Photos help pages and Samsung's US pages show no date, so we read them ourselves on 24 November 2026 (the phone version of the Photos page on 18 November 2026). Samsung's UK page and the Android Open Source Project's page are dated by their owners. What we say about Armadillo Vault comes from its own code, version 0.2.1, the one on Google Play. The screenshot was captured 3 November 2026 on a Pixel 10a, from a local test build without the screenshot block, with Swedish menus and made-up entries; the normal app blocks screenshots. More on hidden spaces: how to hide photos on Android, and the blog's other Armadillo Vault posts.
Sources
- Samsung UK: What is the Secure Folder and how do I use it? (2026-05-14)
- Android Open Source Project: Private space (2026-09-30)
How these posts are made: Redneck Engineering writes them with the help of AI and reviews them before they are published. Every claim about the app is checked against the app as it is today, the screenshots are from the app, and facts that don't come from the app have a dated source. Found a mistake? Email cj@rocsales.se and we'll fix it.
REDNECK ENGINEERING