Why You Need a Screen Lock
A smartphone stores access to bank accounts, personal messages, photo galleries, and work documents. An enabled screen lock acts as the first line of defense: without your code or biometrics, a stranger won't be able to read notifications, install malicious software, or access saved passwords. Additionally, modern versions of Android tie full-disk encryption to the presence of an active unlock method. By configuring protection, you automatically activate hardware-level data encryption at the system level.
Requirements and Preparation
Before you begin, ensure you have full access to the device's main screen. If the phone is already locked with someone else's code, a full factory reset will be required. For standard activation, you don't need to download third-party apps—all tools are built into the operating system.
💡 Tip: Write down your chosen PIN or password in a reliable password manager or on paper. Without it, regaining access to the device through standard means is practically impossible.
Step-by-Step Guide
Step 1: Find the Lock Screen Menu
Open the Settings app. Scroll down the list and select the Security or Screen lock & security section. Names may vary slightly depending on the manufacturer: on Samsung it's Screen lock, on Xiaomi — Protection & privacy, and on stock Android — Screen lock.
Step 2: Set the Primary Access Method
Tap the Screen lock type (or Screen lock) option. The system will offer several choices: Swipe, Pattern, PIN, or Password.
- Choose
PINorPasswordfor maximum protection. - Enter a combination of at least 4 digits. It's recommended to use 6 digits or a mix of numbers and letters.
- Confirm the code by entering it again.
- When prompted to back up the key, select
Use Google backupso you can restore access via your Google account if the system fails.
Step 3: Configure Biometrics
A password is secure, but entering it every time you turn on the screen is inconvenient. Go to the Biometrics or Fingerprints & face recognition section.
- Tap
Add fingerprintand follow the on-screen prompts, pressing your finger against the sensor from different angles. - If your smartphone supports face unlock, repeat the process for
Face recognition. Note that standard 2D cameras are less secure than 3D sensors.
Step 4: Set the Automatic Lock Timeout
To prevent the screen from staying unlocked for too long in your pocket or bag, set a timeout.
- In the same security menu, find
Screen lock timerorAutomatic lock. - Select an interval:
Immediately,After 5 seconds, orAfter 30 seconds. The optimal option for balancing security and convenience is30 seconds. - Enable the
Show notifications on lock screentoggle and selectHide content. This will prevent reading incoming messages without entering the code.
Verifying the Result
After saving the settings, manually lock the screen by pressing the power button. Wait for the specified time and press the button again or tap the display. The screen should request your PIN, pattern, or fingerprint scan. Ensure that notification content is hidden in the shade, and apps requiring biometrics (e.g., banking apps) prompt for your new code.
Potential Issues
The system does not accept the entered PIN code.
Check the keyboard layout. Sometimes, when changing languages, the English layout is accidentally enabled if you're using letters. Ensure the Numbers mode is active. If you've forgotten the code, use the Forgot password? function, which will send a recovery code to your linked Google account (available on Android 11 and newer).
The lock option is unavailable or grayed out.
This happens when corporate security policies are active on the device. Go to Security → Device admin apps. Disable the admin status for third-party apps, antiviruses, or work profiles. After this, the menu will become active again.
The fingerprint scanner responds with a delay or fails to recognize the finger.
Wipe the sensor surface with a dry cloth. In the biometrics settings, delete the old fingerprint and register it again, adding the same finger twice from different angles to improve accuracy. If the problem persists, check for firmware updates in the System update section.