Get the app

How to lock the gallery on Android

Locking the app is easy. Locking the photos takes one more step.

Short answer

On Xiaomi, OnePlus, Oppo, Realme and Vivo phones, turn on App lock for the Gallery in Settings. Samsung can't lock the Gallery app, but it can lock single albums or move photos into the Private album. On a Pixel, use Locked Folder in Google Photos. A gallery lock guards the app, not the photos, so other apps can still see them.

These phones have an App lock setting. Set a password once, then switch it on for Gallery.

Phone Where to look
Xiaomi, Redmi, POCO Settings, Apps, App lock. It's also in the Security app
OnePlus Settings, Privacy (or Security and privacy), App lock
Oppo, Realme Settings, Privacy (or Security and privacy), App lock
Vivo Settings, Security & privacy, then App encryption or App lock
Honor Settings, Security, App lock

Menus shift between software versions. If yours doesn't match, search Settings for "app lock".

Samsung

Samsung phones can't lock a single app, Gallery included. You have three other options:

  • Private album (One UI 8.5 and later). Move the photos you care about into it and it opens with your screen lock. See our Private album guide.
  • Lock an album. A hidden Gallery Labs setting called Album entry-locks lets you lock whole albums. Our guide to hidden albums on Samsung shows how to turn it on.
  • Secure Folder. Move the photos into Secure Folder, which has its own Gallery and its own lock.

Pixel and other phones that use Google Photos

There's no app lock on a Pixel. Move private photos into Locked Folder in Google Photos instead: select them, tap More, then Move to Locked Folder. Our page on hiding photos in Google Photos explains it, and how it differs from Archive.

On Android 15 and later you can also put a separate copy of Photos inside Private space, which locks the whole space.

Search the Play Store for gallery lock and you'll get dozens of apps. They're one of two things. App lockers watch which app you open and cover it with a lock screen, which needs wide permissions such as Accessibility. Vault apps move your photos into their own storage. Before installing either, read the Data safety section on the listing and see who made it.

This is the part most guides skip. A lock on the Gallery app stops someone browsing in Gallery. The photos themselves are still on the phone, so they show up when someone picks a photo to send in WhatsApp, in Google Photos, in the Files app, and on a computer over USB.

To lock the photos rather than the app, move them somewhere encrypted that other apps can't read. Dobr opens with its own pattern, encrypts each photo before it's saved, and has no internet permission, so nothing in it leaves the phone.

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