Skip

Thursday, 26 November 2026

Forgot Your Phone Lock? Safe Ways to Get Back Into an Android Phone or iPhone

Priyo News 24 Desk

Published: · 7 min read

Forgot Your Phone Lock? Safe Ways to Get Back Into an Android Phone or iPhone
Illustration of a locked smartphone and a key — Priyo News 24

At a glance

  • On modern Android phones and iPhones, a forgotten lock usually means resetting the phone and starting again, which erases the data stored on it.
  • On iPhone (iOS 17 and later) you can use your old passcode within 72 hours of changing it; on Samsung, Remote unlock helps if it was turned on beforehand.
  • After a reset you need the password of the Google or Apple account that was on the phone, so keep your account details and backups in order.

You set a new pattern and a few days later it's gone from your head. Or you dig out an old phone after months and the PIN simply won't come back. What to do if you forgot your phone lock is a question that sends many people straight to a phone repair shop. But rushing can mean losing your data, or even handing your personal information to a stranger.

This guide walks you through what to try first on Android and iPhone, when a factory reset is the only way out, and what you will need after the reset. The information is current as of November 2026 and is based on Google's and Apple's official help pages and several technology publications.

The one thing to know first

Phone locks are designed so that nobody but the owner can get in. That is why, on modern Android phones and iPhones, there are very few official ways to remove a forgotten lock while keeping your data. According to Google's help page, in most cases the phone has to be reset, which erases everything stored on it. The same applies to iPhone.

The good news is that if you have a backup in your Google account or iCloud, you can sign in to the same account after the reset and get back your contacts, photos and data from many apps. So stay calm and try the steps below in order before resetting.

What to do if you forgot your Android phone lock

Step 1: Try calmly to remember

Muscle memory often brings back an old pattern or PIN. But each wrong attempt can lock the phone for a while, and the waiting time grows. Rather than guessing at random, think of a few likely PINs first and then try them.

Step 2: Check whether Smart Lock helps

If Smart Lock or Extend Unlock was set up earlier, for example with your home as a trusted place or your Bluetooth watch as a trusted device, the phone may stay unlocked in that situation. If so, go to Settings and set a new lock. This only works if it was turned on beforehand.

Step 3: "Forgot pattern" on old Android versions

According to Google's help page, on Android 4.4 or earlier a Forgot pattern option appears after several wrong attempts. You can then sign in with the Google account linked to the phone and set a new lock. Newer Android versions no longer have this option.

Step 4: Remote unlock on Samsung phones

If a Samsung account was added and Remote unlock was switched on beforehand, you can sign in to Samsung's Find My Mobile service from a computer or another phone's browser and remove the lock without erasing data. The phone needs an internet connection. Some other brands offer their own account-based services; check the brand's official support page.

Step 5: Factory reset as the last resort

If none of the above works, the phone must be reset. There are two ways:

  • From recovery mode: switch the phone off, then press and hold the power button together with a volume button (up or down, depending on the model). When the recovery menu appears, use the volume buttons to select Wipe data/factory reset and confirm with the power button. The button combination differs by brand, so check the instructions for your model on the brand's support page.
  • From Google's Find Hub: if a Google account and location were on, sign in to Google's device-finding service (formerly Find My Device, now Find Hub) from another device and reset the phone remotely.

Forgot your phone lock: key facts at a glance

Why the phone asks for a Google account after a reset

When you start the phone after a reset, it asks for the email and password of the Google account that was previously on it. This is Factory Reset Protection, designed so that nobody can reset and use a stolen phone. So before resetting, make sure you know the password of the phone's Google account. If you have forgotten it, recover it first from Google's account recovery page on another device.

What to do if you forgot your iPhone passcode

Forgot a new passcode: the 72-hour window

According to Apple Support, on iOS 17 or later, if you forget a new passcode within 72 hours of changing it, you can unlock the iPhone with the old one. After a few wrong attempts on the lock screen, tap Forgot Passcode?, choose Enter Previous Passcode, enter the old passcode and set a new one.

Erasing and setting up the iPhone again

After too many wrong passcodes, the screen shows iPhone Unavailable or Security Lockout. On recent iOS versions you can then use the Forgot Passcode? option at the bottom of the screen and enter your Apple Account password to erase the iPhone. The phone needs a mobile data or Wi-Fi connection for this.

If that option does not appear, you need recovery mode. Open Finder on a Mac, or the Apple Devices app or iTunes on Windows, connect the iPhone with a cable, put it into recovery mode using the button sequence for your model, then choose Restore. Afterwards you can bring back your data from an iCloud backup. Activation Lock will ask for the previous Apple Account password after the reset.

At a glance: what to do in each situation

Situation What to do Data kept?
iPhone: forgot a new passcode, within 72 hours Unlock with the old passcode Yes
Samsung: Remote unlock was turned on Unlock from Find My Mobile Yes
Smart Lock trusted device or place was set Unlock there and set a new lock Yes
All other cases (Android) Reset via recovery mode or Find Hub Erased, restore from backup
All other cases (iPhone) Forgot Passcode? or recovery mode Erased, restore from iCloud

Be careful before a shop unlocks your phone

In Bangladesh, many shops offer to "bypass" a lock or Google account for a fee. This carries real risks: unauthorised tools can install harmful software, your photos or messages may end up in someone else's hands, and the brand warranty may be voided. If the official methods with your own account don't work, it is safer to visit the brand's authorised service centre with your purchase receipt and national ID card. And when buying a used phone, never buy one that is locked or tied to someone else's account.

How to avoid this in future

  • Keep backups on: Google backup and Google Photos on Android, iCloud Backup on iPhone.
  • Write down your account details: keep the email and recovery phone number of the phone's Google or Apple account up to date.
  • Use fingerprint or face unlock: but remember that after a restart the PIN is always needed once, so you still must not forget it.
  • Practise a new lock a few times: using it often in the first few days after changing it helps it stick.
  • Samsung users, turn on Remote unlock: in an emergency you can unlock the phone without erasing data.

Final word

Forgetting your phone lock is no reason to panic, but handing your phone to an unknown shop in a hurry isn't wise either. First look at the ways to unlock without erasing data; if none applies, reset with your own Google or Apple account and restore your information from backup. And check today that your backup is switched on.

FAQ

Can I unlock a forgotten Android pattern without losing data?

According to Google's help page, on modern Android you usually cannot; the phone has to be reset. However, if Remote unlock was enabled beforehand on a Samsung phone, or Smart Lock trusted devices or places were set up, you may be able to get in without erasing data.

Will a factory reset delete my photos and contacts?

Everything stored inside the phone is erased. But if you had a backup in your Google account, Google Photos or iCloud, you can restore it by signing in to the same account. Files on a memory card are usually not erased, but removing the card before the reset is safer.

Why does my phone ask for a Google account after a reset?

This is Factory Reset Protection, which stops anyone else from using a stolen phone. Enter the email and password of the Google account that was on the phone and it will start. iPhones do the same with Activation Lock and your Apple Account.

What should I do when my iPhone says iPhone Unavailable?

This message appears after too many wrong passcodes. On recent iOS versions, tap Forgot Passcode? at the bottom of the screen and enter your Apple Account password to erase and set up the iPhone again; this needs an internet connection. Otherwise use recovery mode on a computer.

Is it safe to get the lock removed at a phone shop?

It is risky. Unauthorised bypass tools can install harmful software, leak your personal data and void the warranty. Try the official methods with your own account first and, if needed, go to the brand's authorised service centre with your purchase receipt.

Sources

This report was written in our own words after checking facts across several reliable sources.

  1. Android Help (Google) — Can't unlock your Android device
  2. Apple Support — If you forget your new passcode, use your old passcode within 72 hours
  3. Tech Advisor — How to unlock an Android phone if you've forgotten your PIN
  4. Techlicious — How to unlock an Android phone if you forgot the password
  5. Techlicious — How to unlock an iPhone when you don't know the passcode
  6. BGR — Forgot your iPhone's passcode? How to start your phone in recovery mode

Comments

Text only — no links allowed · /1000

No comments yet — be the first to comment.

Get the latest news by email

New stories and articles land in your inbox as soon as they are published. Stop any time with one click.