Calculator Gallery Lock logo markCalculator Gallery Lock

How to Lock a Folder on Android: Four Built-In Methods

Android has several built-in places to lock files. This page compares the four that need no extra app and flags where each one can lose your data.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20265 min read

Quick answer

For any file type, use Safe folder in Files by Google. For photos and videos, use Locked Folder in Google Photos. Android 15 adds Private Space, and Galaxy phones have Secure Folder. Copy files elsewhere first, because a forgotten PIN can mean a reset that deletes them.

Phone settings list with toggles and a locked folder card beside a shield, for locking a folder on Android
At a glance
Applies toAndroid 6 or later for Locked Folder; Android 15 for Private Space
Time neededAbout 5 minutes per route
CostFree, built into Google and Samsung software
NeedsA screen lock on the phone
Last verifiedNovember 2026

Four ways to lock a folder on Android

Android has no single folder lock. Four built-in routes cover most phones: Safe folder in Files by Google, Locked Folder in Google Photos, Private Space on Android 15 and Samsung Secure Folder. Pick by phone model and by what you are locking.

Four built-in Android routes for locking files: Locked Folder, Safe folder, Private Space and Secure FolderGoogle Photos Locked FolderAndroid 6 and laterHolds: Photos and videosFiles by Google Safe folderPIN or patternHolds: Any file typePrivate SpaceAndroid 15 and laterHolds: Apps plus their filesSamsung Secure FolderGalaxy phonesHolds: Files and app copies
Four built-in Android routes for locking a folder
Decision rule: the export-first order

Before you move anything into a lock, copy it to a place the lock cannot delete: a PC or your cloud account. Then move the files in, test opening them, and only then delete the copy you no longer need.

Safe folder in Files by Google: step-by-step

Safe folder protects any file type with a PIN or pattern that is separate from your screen lock. It suits documents, PDFs and downloads as well as pictures.

  1. Open Files by Google

    Install it from Google Play if the phone does not have it, then open Browse.

  2. Open Safe folder

    Scroll to Safe folder and choose a PIN or pattern when asked.

  3. Move the files in

    Select the folder’s files, open the menu and choose the move option. A move removes the original.

  4. Test the lock

    Close the app, reopen Files and confirm the PIN is requested. Check Gallery for stray copies.

Data-loss trap

Forgetting the PIN means the files cannot be reached, and a reset deletes them. Keep the second copy first, as the Android password-protected folder walkthrough also advises.

Google Photos Locked Folder: what it does and where it fails

Locked Folder keeps photos and videos behind the device screen lock and out of search, memories and other apps. It is the quickest option when the pictures already live in Google Photos.

Move items in from the library or the camera. Anything not backed up lives only on that phone, and Google says it is lost if you uninstall Photos, clear its data or lose the device. The photo locking walkthrough shows the screens in detail.

For files that are not images, switch to Safe folder. Locked Folder will not take a PDF.

Private Space and Samsung Secure Folder

Both routes create a second area on the phone with its own lock, where apps and their data live separately. They suit someone who wants a whole set of apps and files out of sight, not just one folder.

Private Space needs Android 15 and a phone maker that supports it. Secure Folder is Samsung’s equivalent and needs a Samsung account; see the guide to finding Secure Folder on Galaxy phones. Neither moves automatically to a new phone, so plan to set the space up again and restore data from your own backup.

Built-in routes at a glance
RouteLocksLock typeMain limit
Safe folderAny fileOwn PIN or patternForgotten PIN deletes files
Locked FolderPhotos and videosScreen lockLost with the app if not backed up
Private SpaceApps and dataOwn lockAndroid 15 only, maker may skip
Secure FolderApps and filesOwn lockGalaxy phones only
VerdictSafe folder for files, Locked Folder for photos

Which built-in route fits which phone

Match the route to the phone before you start. Pixel and most other brands rely on Google’s apps, Samsung adds its own, and only newer phones can use Private Space.

  • Pixel and most non-Samsung phones: Safe folder for files, Locked Folder for photos.
  • Samsung Galaxy: Secure Folder, plus the two Google options if you prefer them.
  • Any phone on Android 15 or later: check Settings, Security and privacy for Private Space.
  • Older phones below Android 6: none of these may work, so consider a vault app.

A screen lock is the base layer for all four. Without one, Locked Folder cannot protect anything and Samsung will not let you set up Secure Folder. Set a six-digit PIN or a password first, then add the folder lock on top. Mixing routes is fine, but keep a note of which route holds which files, or you will spend an evening searching the wrong place.

If a phone is shared with family, give the lock a code that no one else guesses, and avoid fingerprints that other users have registered. A folder lock is a privacy aid for everyday situations, not protection against someone with unlimited time and the phone in their hands.

Questions about locking a folder on Android

Use Files by Google. Open it, go to Browse, choose Safe folder, set a PIN or pattern and move the files in. Photos and videos can instead go in Google Photos Locked Folder. Both are built by Google, and neither needs a third-party download.

Open Settings, then Security and privacy, and look for Secure Folder. Galaxy phones ask you to sign in with a Samsung account and choose a lock. If the entry is missing, the phone model may not include it. Install steps vary by One UI version.

No. Private Space arrived with Android 15, and phone makers decide whether to include it. Check Settings, Security and privacy for a Private Space entry. If it is absent, use Safe folder or Locked Folder instead.

Google states that you cannot reach the files without the PIN, and resetting it deletes what is inside. Keep a second copy of anything important on a PC or in cloud storage before you rely on the folder.

No. Google says items in Locked Folder stay out of the main photo grid, memories, search and other apps. Items you have not backed up exist only on that device, so a lost phone means lost files.

No. A hidden folder can still be opened by anyone who finds it, while a locked folder asks for a PIN, pattern or password. Use a lock for anything private and treat hiding as a cosmetic extra.

Where to go next

If you want the calculator disguise instead of a plain lock, the main guide covers the setup. For app options, see the folder lock apps compared. To hide files by folder name, the hide files and folders on Android page covers that separate task. Questions: contact the developer.