Short answer
Move the photos into a locked place rather than locking the Gallery app: Locked Folder in Google Photos, Private Album in Samsung's Gallery on One UI 8.5, Safe folder in Files by Google, Secure Folder on Samsung, or private space on Android 15 and later. Locked Folder and Private Album open with your screen lock, so they do not stop someone who knows it. Safe folder, Secure Folder, private space and a vault app can use a separate code.
On this page
Every built-in way, side by side
| App | Opens with | Stops someone who knows your screen lock | Works on |
|---|---|---|---|
| Your screen lock, which Google says cannot be changed for it | No | Google Photos on Android | |
| Private Album | Your screen lock or fingerprint | No | Select Galaxy phones with One UI 8.5 |
| Safe folder (Files by Google) | Its own PIN or pattern | Yes | Android 8.0 and later |
| Secure Folder | Its own PIN, password or pattern | Yes | Galaxy phones |
| Private space | Its own lock, or your screen lock | Yes, with its own lock | Android 15 and later |
| Its own code | Yes | Android 8.0 and later, and iPhone |
Sources: Google Photos Help: Hide sensitive photos and videos in Locked Folder, Samsung India: How to use Private album in Gallery app on the Galaxy devices, Files by Google Help: Protect your files with Safe folder, Android Help: Hide sensitive apps with private space
On any Android phone: Google Photos Locked Folder
Locked Folder is part of Google Photos. Photos you move into it are hidden from the photo grid, search and other apps. Google says its password is the same as your device screen lock and cannot be changed, so it keeps photos out of sight but does not stop anyone who can unlock your phone. Our Locked Folder guides cover backup and what happens if it goes missing.
Sources: Google Photos Help: Hide sensitive photos and videos in Locked Folder
On a Samsung: Private Album, then Secure Folder
Samsung's Gallery has Private Album on select Galaxy phones with One UI 8.5. Open Gallery, tap Menu, then Private album, and follow the setup. To move photos in, select them, tap More, Move to private album, then Move. Samsung says it opens with your fingerprint or screen lock and that screenshots are disabled inside it.
For a lock that is not your screen lock, Samsung's Secure Folder has its own PIN, password or pattern and can hold photos, files and apps. Its setup has you sign in to a Samsung account.
Sources: Samsung India: How to use Private album in Gallery app on the Galaxy devices
A code of its own: Safe folder in Files by Google
Files by Google's Safe folder has its own PIN or pattern, on Android 8.0 and later. Open Files by Google, go to Collections, tap Safe folder, set the PIN or pattern, then move photos in. Google warns that if you forget the PIN or pattern you cannot access the files, and that resetting the folder deletes them. Photos in it do not show up in search or categories, and other apps cannot open them.
Sources: Files by Google Help: Protect your files with Safe folder
What about app lockers?
Apps that put a PIN on the whole Gallery app exist on Google Play. We do not make one and have not tested them, so we do not recommend one here. Keep in mind that an app lock covers the Gallery app; the photos themselves stay in the phone's normal storage, where a file manager or another app can still reach them unless they are moved somewhere locked.
A vault with its own code
- Its own code, not your screen lock
- AlterVault opens with its own code, and encrypts each photo and video with XChaCha20-Poly1305.
- A way back in
- If you forget the code, a 12-word recovery phrase you wrote down at setup gets you in. No account.
- A decoy by shake
- Shake the phone while a space is open and it switches to an ordinary-looking gallery.
We make AlterVault. It runs in the ordinary app sandbox, and its Android build holds the INTERNET permission for the purchase check through RevenueCat and for anonymous usage events sent to PostHog. Photos, file names and your code never touch the network.
Questions
Can I put a password on the Gallery app?
Android has no built-in setting that locks the whole Gallery app on every phone. Instead, move photos into a locked place such as Locked Folder, Private Album, Safe folder, Secure Folder or private space.
How do I lock photos on Android without an app?
Use what is already on the phone: Locked Folder in Google Photos, Safe folder in Files by Google, and on Samsung phones Private Album or Secure Folder. On Android 15 and later there is also private space.
Can I use a different password for Locked Folder?
No. Google says the Locked Folder password is the same as your device screen lock and cannot be changed.
How do I lock the Gallery on a Samsung phone?
Move photos into Private Album, which opens with your fingerprint or screen lock, on select phones with One UI 8.5. For a separate code, use Secure Folder.
What is the most private way to lock photos on Android?
One with its own code, so knowing your screen lock is not enough: Safe folder, Secure Folder, private space with its own lock, or a vault app. Choose by what happens if you forget the code: Safe folder files are lost, Secure Folder needs a Samsung account reset turned on in advance, private space must be deleted, and AlterVault uses a recovery phrase.
