How to Restore a Locked Android Phone (Step-by-Step Guide)

Locked Android phone showing a padlock and PIN dots with a restore arrow
A locked Android phone can usually be restored with a factory reset.

Forgetting your Android PIN, pattern, or password leaves you with limited options. Because modern Android operating systems encrypt device storage using your lock screen credentials, accessing the phone without the correct code almost always requires a factory reset. A factory reset wipes all local photos, messages, and downloaded files.

Unless you own a supported Samsung phone where the lock was changed recently, restoring access means resetting the device and recovering data from a prior cloud backup.

Important Requirements Before You Begin

Resetting a phone is permanent. Preparing properly prevents turning a temporary lockout into an unusable device.

1. Verify Your Google Account Credentials (FRP Warning)

Every modern Android device includes Factory Reset Protection (FRP). After a factory reset, the setup wizard requires the email and password of the Google Account that was active on the phone before the wipe. If you cannot sign in with that exact account, the device remains locked.

If you do not remember your password, recover it through the official Google Account recovery page on a computer or another device before initiating a reset.

2. Keep the Phone Connected to Power

A factory reset rewrites internal system partitions. If the battery drains completely during this process, the operating system can become corrupted. Connect the phone to a wall charger before starting.

Which Method Should You Use?

  • You own a Samsung Galaxy and changed your lock within the last 72 hours: Check for the previous PIN recovery option first. This is the only method that can restore access without wiping your data.
  • The phone is turned on and connected to Wi-Fi or mobile data: Use Google Find My Device from any web browser. It is the quickest and safest way to reset the phone remotely.
  • The phone is offline, unresponsive, or cannot connect to the internet: Use hardware Recovery Mode using the physical buttons on the device.

Method 1: Samsung Previous Lock Recovery (No Data Loss)

On supported Samsung Galaxy devices running recent versions of One UI, Samsung provides a temporary recovery feature if you recently updated your security credentials.

  1. Enter an incorrect PIN, pattern, or password on the lock screen several times until the device prompts you to wait.
  2. Look for an option labeled Forgot PIN, Forgot Pattern, or Forgot Password at the bottom of the screen.
  3. If presented, enter the previous PIN or password used on the phone before the most recent change.
  4. Follow the on-screen instructions to establish a new lock screen credential.

If this option does not appear, or if the 72-hour window has passed, the phone must be reset using one of the methods below.

Method 2: Remote Reset via Google Find My Device

If your locked device is powered on, connected to the internet, and signed in to an active Google Account, Google Find My Device can trigger a clean factory reset remotely.

  1. Open a web browser on a computer, tablet, or another phone and navigate to google.com/android/find.
  2. Sign in with the primary Google Account associated with the locked phone.
  3. Select your locked device from the equipment list at the top or side of the screen.
  4. Select the option to Factory reset device (or Erase device).
  5. Confirm your choice. Google may prompt you to re-enter your account password for verification.
  6. The reset command will transmit to the phone. Once received, the device will erase itself and reboot to the initial welcome screen.

Method 3: Hardware Reset via Android Recovery Mode

When a device is offline, cannot connect to networks, or does not respond to remote commands, you can perform a factory reset through the built-in Android Recovery menu using physical buttons.

How to Turn Off a Locked Phone

Most modern Android versions prevent you from powering off the device from the lock screen without entering your PIN. To bypass this screen to reach Recovery Mode:

  1. Press and hold the Power button (or Side key) and the Volume Down button simultaneously for 7 to 10 seconds to force a hardware restart.
  2. The instant the screen goes completely black, release both buttons and immediately press and hold the specific Recovery Mode combination for your brand.

Accessing the Recovery Menu

  • Samsung Galaxy: Connect the phone to a computer using a USB cable. Hold Power/Side Key + Volume Up until the Samsung logo appears.
  • Google Pixel / Motorola: Hold Power + Volume Down until the Fastboot/Bootloader screen appears. Use the volume buttons to highlight Recovery Mode and press the Power button to select. If a “No command” graphic appears, press and hold the Power button, tap the Volume Up button once, and release both.
  • Xiaomi / Redmi / Vivo / Honor: Hold Power + Volume Up until the recovery menu appears.
  • OnePlus / Oppo / Realme: Hold Power + Volume Down until the recovery menu appears.

Performing the Reset

  1. Use the Volume Up and Volume Down buttons to navigate through the menu options. Touch input is typically disabled.
  2. Highlight Wipe data/factory reset (or Factory reset).
  3. Press the Power button to confirm your selection.
  4. On the confirmation screen, select Factory data reset and confirm with the Power button.
  5. Once the wiping process completes, select Reboot system now.

Restoring Your Data After the Reset

Once the phone boots to the initial setup screen, complete these steps to restore your information:

  1. Connect to a reliable Wi-Fi network.
  2. When prompted, enter the Google Account email and password previously used on this device to clear Factory Reset Protection.
  3. During the setup process, choose the option to restore from a cloud backup.
  4. Select your most recent backup date to reinstall your applications, call history, device settings, and synced contacts.
  5. Sign in to Google Photos to access photos and videos backed up prior to the lockout.

Common Mistakes to Avoid During a Lockout

  • Paying for third-party unlock tools: Commercial software advertised online claiming to bypass modern Android lock screens without data loss cannot bypass hardware encryption. They either perform a standard factory reset or fail entirely.
  • Selecting “Wipe Cache Partition”: In the Recovery Mode menu, clearing the cache partition does not remove the lock screen credentials. You must select the factory reset option.
  • Attempting a reset without account recovery: Resetting the device before verifying your Google password will result in an FRP lockout on the setup screen. Always ensure your account access is secured first.
Hiza Tehseen is a technology writer and IT support specialist from Pakistan. She has spent the last five years doing what most people avoid digging through settings menus testing obscure fixes, and figuring out why devices behave the way they do across Android, iOS Windows and macOS. She started HiddenTechGuide.com in 2023 for one simple reason: most tech help online is either copied from official docs or written by someone who has never actually touched the device they are writing about. Hiza wanted to change that. Every guide she publishes has been tested on real hardware first. She is not partnered with Apple, Google Microsoft or any brand which means her recommendations are based on what actually works, not what she has been paid to promote. When she is not running tests or updating guides, she is usually responding to reader emails about the tech problems that no official support page seems to cover properly.