How to Lock Apps on Android (Private Space, Secure Folder, App Pinning)
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.
| Method | Phones | What it locks | Main limit |
|---|---|---|---|
| Private space | Android 15 and later, if the phone maker allows it | Apps installed inside the space | App data cannot move in from the main space |
| Secure Folder | Supported Samsung Galaxy phones | Apps added to or installed in the folder | Added apps are copies; Samsung only |
| App pinning | Almost all Android phones | Keeps one app on screen; your PIN is needed to leave | Does not lock an app, only stops switching away |
| An app's own lock | Depends on the app | That one app | Only some apps offer it |
| Third-party app locker | Most Android phones | Apps you pick in the locker | Needs 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
- Open Settings, then Security & privacy.
- Under Privacy, tap Private space and confirm your screen lock.
- Tap Set up, then Got it.
- Optionally sign in to a Google account. Google recommends one not used anywhere else.
- Tap Use device screen lock or Choose new lock, then tap Done.
Add apps to it
- In All Apps, touch and hold an app and tap Install app in Private space.
- Or open private space and tap Install to get apps from Google Play.
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
- Locked apps stop completely. They cannot show notifications or run in the background until you unlock the space.
- Forgetting the lock means a reset. Google says you cannot recover a forgotten private space lock. Resetting deletes the space, and deleting it removes its apps and data with no backup.
- It is not invisible to a computer. Google notes it can still be detected through adb, device logs and some apps.
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
- Open Settings, then Security and privacy, then More security settings, then Secure Folder.
- Sign in to your Samsung account, or create one.
- 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
- Open Settings.
- 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.
- Turn on App pinning.
Pin and unpin an app
- Open the app you want to show.
- Swipe up to the middle of the screen and hold (or tap Overview with 3-button navigation).
- 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:
- The permissions are broad. Usage access and accessibility let an app see what you open and, with accessibility, what is on screen. You are trusting the locker's developer with that.
- The lock is a layer on top. The protected app is still installed and its data is unchanged. Depending on the locker and your Android version, someone may get around it, for example through Settings or by uninstalling the locker.
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.
Related guides
- How to hide apps on Samsung Galaxy
- How to hide pictures on Android
- How to choose a private photo vault app for Android
If it is mainly your pictures you want behind a separate code, see how to lock photos on Android.