Get the app

How to lock a folder on Android: the private folder every phone already has

You probably don't need to install anything. You do need to know which one you've got.

Short answer

Android has no lock button on ordinary folders, but every phone has a private folder you can move things into. Files by Google has Safe folder, Google Photos has Locked Folder, Samsung has Secure Folder, OnePlus and Oppo have Private Safe, and Android 15 and later has Private space. Pick the one that matches your phone and what you want to hide.

If you long-press a folder in your file manager looking for a Lock option, you won't find one. Android doesn't put passwords on ordinary folders. What it does have, on nearly every phone, is a separate locked folder you move things into. Once they're inside, they drop out of your gallery and file manager and only show up after you unlock it.

The catch is that there are several of these, made by different companies, and they work in quite different ways. This page sorts them out. Menu names are as they are in November 2026.

Which one does your phone have?

Locked folder Phone Locks with Holds
Safe folder (Files by Google) Most Android phones, Android 8 and later Its own PIN or pattern Any file
Locked Folder (Google Photos) Any phone with Google Photos, Android 6 and later Your screen lock only Photos and videos
Secure Folder Samsung Galaxy Its own PIN, password or pattern, plus fingerprint Apps, photos and files
Private Safe OnePlus, Oppo A privacy password Photos, videos, audio, documents
Private space Pixel and many others on Android 15 and later Your screen lock or a separate one Apps, and files you add
Hidden album Xiaomi, Redmi, POCO Nothing Photos and videos

Most phones have two or three of these at once. A Galaxy has Secure Folder and usually Google Photos too. A Pixel has Safe folder, Locked Folder and Private space. The short version of how to choose is near the end.

Safe folder in Files by Google

This is the closest thing Android has to a locked folder for any kind of file. It's in the Files by Google app, which comes on many phones and is free on Google Play for the rest.

  1. Open Files by Google and scroll down to Collections.
  2. Tap Safe folder.
  3. Choose PIN or Pattern, enter it twice and tap Got it.
  4. To move files in, touch and hold them, tap More, then Move to Safe folder.

To take something out, open Safe folder, press and hold the file and tap Move out of Safe folder. It goes back where it came from. Stay on the screen until a move finishes, because switching apps cancels it.

Worth knowing before you rely on it. If you forget the PIN or pattern, Google's only fix is Reset your Safe folder, which deletes everything in it. Files inside can't be shared or backed up to Google Drive, and Google says not to copy them across to a new phone, so move them out before you switch.

Locked Folder in Google Photos

If it's only photos and videos, this one is already in an app you use every day.

  1. Open Google Photos and tap Collections.
  2. Tap Locked, then Set up Locked Folder.
  3. To move photos in, select them, tap Add to, then Move to Locked Folder.

It opens with your phone's screen lock, and you can't give it a different one. So anyone who knows your phone PIN can open it. Items in it stay only on that phone unless you switch on Back up Locked Folder under your profile picture, Photos settings, Backup. Without that, uninstalling Photos, clearing its data or resetting the phone deletes them. Our Locked Folder guide goes into the backup choice properly.

Secure Folder on Samsung

On a Galaxy, Secure Folder is the strongest of the built-in options. It's a separate encrypted space protected by Samsung Knox, with its own lock and its own copies of apps.

  1. Open Settings, then Security and privacy, then More security settings.
  2. Tap Secure Folder and follow the setup. It may ask you to sign in to your Samsung account.
  3. Pick a PIN, password or pattern. Fingerprint can be added on top.

To move photos in, open Gallery, touch and hold them, tap More and choose Move to Secure Folder. For other files, use My Files the same way, or tap the three dots inside Secure Folder and choose Add files.

During setup Samsung asks whether your Samsung account can reset the lock. Saying yes means you can get back in if you forget it. It also means anyone with your Samsung account password can. You can hide the Secure Folder icon too, from Quick Settings or its own settings. Our Secure Folder guide has the details.

Private Safe on OnePlus and Oppo

  1. Open Settings, then Security and privacy, then Private Safe. On older versions it's under Privacy.
  2. Set a privacy password and add a recovery option when it asks. That's your only way back in if you forget it.
  3. Add photos, videos, audio or documents.

The privacy password is separate from your screen lock, but it also guards App lock and hidden apps, so one password opens all three. Older OnePlus phones called this Lockbox, and our OnePlus Lockbox guide explains where it went.

Private space on Android 15 and later

Private space is built for apps, not files, but it can hold files too.

  1. Open Settings, then Security & privacy, then Private space.
  2. Tap Set up, then choose Use device screen lock or Choose new lock. A new lock is the better idea.
  3. To add files, open the space, tap Add, then Add files, and choose Copy or Move.

Turn on Hide private space when it's locked in its settings and it disappears from your app list. Deleting the space deletes everything in it, with no backup. Samsung phones use Secure Folder instead. Our Private space guide covers the rest.

Xiaomi, Redmi and POCO

Xiaomi's Gallery can hide an album, but a hidden album has no password. Anyone who knows where View hidden albums is can see it. Our Xiaomi guide shows how, and for anything you'd mind someone seeing, use Safe folder from Files by Google instead. It works on Xiaomi phones too.

Which one to use

  • Documents, PDFs, any file on any phone: Safe folder.
  • Just photos, and you're the only one who knows your PIN: Locked Folder.
  • Galaxy phone, and you want apps hidden as well: Secure Folder.
  • Someone else knows your screen lock: anything with its own lock. That rules out Locked Folder, and Private space if you reused the screen lock.

None of these is a lock on a folder you already have. They all work by moving things into a separate place, and each one has its own way of losing what's inside if you forget the lock or reset the phone.

When a vault app makes more sense

The built-in folders each tie you to one app, one brand or one Google or Samsung account. If you'd rather have something that works the same on any Android phone, with its own lock and nothing going online, a vault app is the other route.

Dobr is one. Each photo, video or file is encrypted with its own key, the vault opens with a pattern you draw that unlocks nothing else, and the app has no internet permission at all. With Unlimited, a second pattern can open a separate, dull vault. The honest trade-off is the same as Safe folder: there's no reset, and the vault lives only on that phone. Forget the pattern, lose the phone or reset it, and what's inside is gone, so keep copies of anything you can't replace.

Last checked 2026-11-17. Phone menus change between Android versions and brands, so labels on your phone may differ slightly.