Units: Ruler & Vault

How to Lock Apps on Android (Private Space, Secure Folder, App Pinning)

Updated 2026-11-15

To lock apps on Android, the most reliable built-in option is private space on Android 15 and later: open Settings, then Security & privacy, tap Private space, set it up with its own lock, and install the apps you want to protect inside it. On Samsung Galaxy phones, Secure Folder does the same job with its own lock. Most phones do not have a simple switch that puts a PIN on one app in your normal app list, so if you want to lock apps on Android without moving them, you need the app's own lock setting or a third-party app locker, and each has limits.

MethodPhonesWhat it locksMain limit
Private spaceAndroid 15 and later, if the phone maker allows itApps installed inside the spaceApp data cannot move in from the main space
Secure FolderSupported Samsung Galaxy phonesApps added to or installed in the folderAdded apps are copies; Samsung only
App pinningAlmost all Android phonesKeeps one app on screen; your PIN is needed to leaveDoes not lock an app, only stops switching away
An app's own lockDepends on the appThat one appOnly some apps offer it
Third-party app lockerMost Android phonesApps you pick in the lockerNeeds broad permissions and can be bypassed

Method 1: Private space (Android 15 and later)

Private space is a locked area for apps built into Android. Google explains it in Hide sensitive apps with private space. It needs Android 15 or later, and a phone maker can turn it off, so it may not appear on every model.

Set up private space

  1. Open Settings, then Security & privacy.
  2. Under Privacy, tap Private space and confirm your screen lock.
  3. Tap Set up, then Got it.
  4. Optionally sign in to a Google account. Google recommends one not used anywhere else.
  5. Tap Use device screen lock or Choose new lock, then tap Done.

Add apps to it

The app is installed fresh, because an app's existing data cannot move into private space.

Lock it and hide it

Tap the lock icon next to Private space at the bottom of All Apps to lock it by hand. In the space's settings, Lock private space automatically lets you pick every time the device locks, 5 minutes after screen timeout, or only after a restart. Hide private space when it's locked removes the space from view the next time it locks.

What private space does not do

Method 2: Secure Folder on Samsung Galaxy

Secure Folder is Samsung's locked area. Apps inside it open only after you enter the Secure Folder lock. Samsung's steps are in What is the Secure Folder and how do I use it?.

Set up Secure Folder

  1. Open Settings, then Security and privacy, then More security settings, then Secure Folder.
  2. Sign in to your Samsung account, or create one.
  3. Choose a lock type and set the lock.

Add apps

Open Secure Folder, tap the plus icon, select the apps and tap Add. You can also tap Download from Play Store or Download from Galaxy Store to install an app straight into the folder.

An app you add from your Apps screen is a copy. The original stays unlocked on your Apps screen, so uninstall it if you want the app only inside Secure Folder.

Hide the Secure Folder icon

In the same Secure Folder settings, turn off Add Secure Folder to Apps screen and tap Hide. To open it later, add Secure Folder to the Quick Panel: swipe down with two fingers, tap the pencil icon, tap Edit, find Secure Folder and tap Done. For more Samsung options, see how to hide apps on Samsung Galaxy.

Method 3: App pinning

App pinning keeps one app on screen, and leaving it needs your PIN, pattern or password. It is meant for handing your phone to someone. Google describes it in Pin screens on your Android device.

Turn it on

  1. Open Settings.
  2. Go to Security or Security & location, then Advanced, then App pinning. If you cannot find it, search Settings for "pinning", since the location varies by phone maker.
  3. Turn on App pinning.

Pin and unpin an app

  1. Open the app you want to show.
  2. Swipe up to the middle of the screen and hold (or tap Overview with 3-button navigation).
  3. Tap the app's icon at the top of its preview, then tap Pin.

To unpin, swipe up and hold with gesture navigation, or touch and hold Back and Overview with 3-button navigation. Your screen lock is then required.

This does not lock any app. It only stops someone from leaving the one you chose.

Method 4: The app's own lock

Stock Android, including Google Pixel phones, does not have a general setting that puts a separate PIN on any app you choose. Some phone makers add an app lock to their own version of Android, and the menus vary by brand and version, so check your phone maker's support pages.

Many messaging, banking and password apps have their own lock, usually under privacy or security in the app's settings. If yours has one, it is the simplest choice.

Method 5: Third-party app lockers

Google Play has many app locker apps. They usually work by watching which app opens and drawing a lock screen over it. To do that, they ask for permissions such as usage access, display over other apps, and sometimes accessibility.

Know the limits before you install one:

If you are locking apps to protect photos

Often the real goal is keeping certain photos or videos out of reach. Locking the gallery app does not help much, because other apps can still read the same pictures.

A vault app with its own lock is another way to handle that part. Units is one option, on Android and iPhone. On the outside it is a working ruler called Units. Each vault opens with a pattern you draw, separate from your screen lock, and the Android app asks for no permissions of its own. There is no account and no recovery, so a forgotten pattern means that vault cannot be opened. It is free for a limited number of items per vault, and Pro is a one-time purchase of $32.99 in the US with no subscription.

After moving photos into any vault, delete the originals in your gallery and empty its bin, since many gallery apps keep deleted items for 30 days. The full steps are in how to hide pictures on Android.

Frequently asked questions

Can I lock apps on Android without an extra app?

Yes, with private space on Android 15 and later or Secure Folder on Samsung Galaxy. Otherwise, check the app's own settings for a lock.

Does Google Pixel have an app lock?

Stock Android on Pixel does not include a general setting to put a PIN on any app you choose, though menus can change between versions. On Android 15 and later, private space is the built-in way to put apps behind a separate lock.

Is app pinning the same as an app lock?

No. App pinning keeps one app on screen and needs your PIN to leave it. It does not ask for a PIN to open an app.

If it is mainly your pictures you want behind a separate code, see how to lock photos on Android.

Related guides