Menu

GOOGLE PIXEL

How to set or change the screen lock on an Android phone

Photo of Abu Bakar SaadatBy Updated 9 November 20263 min read

Device: Pixel 10a · Software: Android 17 · Checked October 2026 · Publisher: Saadat Rafiq

Real screenshot · Pixel 10a, Android 17

In short

On a Google Pixel, open Settings, Security and privacy, Device unlock, Screen lock. On a Samsung Galaxy, open Settings, Lock screen and AOD, Screen lock and biometrics. Enter any current lock, choose PIN, Password or Pattern and enter it twice. The PIN screen on our Pixel recommended six digits.

Honestly, of all the settings on an Android phone, this is the one I would never leave on Swipe. The reason is simple: the screen lock is what stands between a finder or thief and everything on the phone. It also encrypts your data and is needed for fingerprint unlock, Google Wallet and theft protection.

The screenshots are from our Google Pixel 10a with Android 17 (build CP3A.261005.005), in dark mode. Its screen lock was Swipe, so Security and privacy warned that the device may be at risk. The Samsung route is under If you do not see this option.

5 of 6 steps show a real screenshot from our Pixel 10a.

Steps

0 of 6 steps
  1. 1

    Open Settings and tap Security and privacy

    On our Pixel it is below About phone. If you cannot find it, search the settings for Screen lock.

    Android screenshot: Open Settings and tap Security and privacy
  2. 2

    Tap Device unlock

    Under Security, Device unlock shows the current lock; ours said Swipe, with a warning sign. The Set a screen lock card at the top leads to the same place.

    Android screenshot: Tap Device unlock
  3. 3

    Tap Screen lock

    The line under it shows the current type, Swipe on ours. If a PIN, pattern or password is already set, the phone asks for it first.

    Android screenshot: Tap Screen lock
  4. 4

    Choose the type

    Ours offered None, Swipe (marked Current screen lock), Pattern, PIN and Password. A PIN is four or more digits. A password is the most secure choice. A pattern is the easiest to watch over your shoulder.

    Android screenshot: Choose the type
  5. 5

    Enter it twice

    Type the PIN, pattern or password, then type it again to confirm. Android blocks screenshots of this screen, so ours came out black. It read: PIN must be at least 4 digits, but a 6-digit PIN is recommended. We typed nothing and backed out.

  6. 6

    Add a fingerprint or face

    Back on Device unlock, Fingerprint and Face are below Screen lock; ours said Add fingerprint and Add face. They make unlocking quick. The PIN stays as the fallback and is asked for after a restart.

    Android screenshot: Add a fingerprint or face

If you do not see this option

  • You have a Samsung Galaxy Open Settings, Lock screen and AOD, Screen lock and biometrics. On our Galaxy A57 with One UI 8.5 the same page also has Lock screen notifications.
    Android screenshot: Lock screen and AOD page on a Galaxy A57, One UI 8.5
  • Your phone has other menu names Android Help gives Settings, Security as the general route and says to check the phone maker's support site if there is no Security entry. Source: Set screen lock on an Android device

If this does not work

  • The PIN screen is black in a screenshot Don't worry, that is Android protecting the screen, not a fault on your phone; ours did the same.
  • The phone asks for a lock you forgot You need the current lock to change it. Without it, the only way back in is to erase the phone; see the guide linked below.
  • None or Swipe not on offer? That is not your phone being stubborn. A work profile or a school or company account can require a screen lock on the phone. Ask whoever manages that account; you can still change which PIN, pattern or password you use.

Good to know

None and Swipe give no protection at all. Anyone who picks up the phone can open it, whether they found it on a café table or took it from a coat pocket.

With a PIN of six or more digits you can switch on auto-confirm, so the phone unlocks without tapping Enter. Google notes that this is slightly less secure.

Pick something you will remember, because if you forget the lock, the only way back in is to erase the phone: forgot your Android PIN or pattern: how to get back in.

More protection against theft: how to turn on theft protection on Android.

Google says that to encrypt your phone's automatic and manual backups with your screen lock, the lock has to be a PIN, pattern or password. A password needs at least four letters or numbers.

About this guide

Device
Android
Shown on
Google Pixel 10a, Android 17 (build CP3A.261005.005)
App
Settings
Real screenshots
5 of 6 steps
Checked
October 2026
Sources
1 official, linked below

Sources

Links checked October 2026. Menus and features can change with updates.

Did this guide work for you?