PDF download Download Article
Quickly regain access to your phone without losing any data
PDF download Download Article

Locked out of your Android phone? The only official way to get back into your Android if you've forgotten the password or pattern is to erase your data and start over.[1] Fortunately, resetting your phone isn't as devastating as it used to be since much of your data is synced to your Google account. But before you reset your Android, try some of these helpful tips for unlocking your phone without performing a factory reset.

Quickly Regain Access to Your Android If You're Locked Out

Unfortunately, you'll need to reset your phone to get back in it if you've forgotten the password. However, if you have a Google account tied to the phone, you can simply log back in with your account to recover your data.

Section 1 of 5:

Try a PIN, Pattern, Fingerprint, or Face ID

PDF download Download Article
  1. If you have multiple security measures set up in advance, you can use any of them to unlock your Android.
    • For example, if you have face ID set up but there isn't enough light for your camera to read your face, you can also enter your PIN or swipe a pattern instead.
    • Having multiple security measures in place will help you get back into your locked Android should you not be able to unlock it.[2]
  2. Advertisement
Section 5 of 5:

Use Android Debug Bridge on a Computer

PDF download Download Article
  1. If you're using an Android running Android 6.0 or earlier and you've already enabled USB debugging in developer mode, you can use Android Debug Bridge (ADB) to unlock your phone. You'll need access to a PC or Mac to do this, and you'll also need a USB cable.[5]
    • If you didn't already enable USB debugging mode, you won't be able to continue with this method.
  2. You can download this package from developer.android.com/studio/releases/platform-tools. Just click the download link for your operating system (Windows, Mac, or Linux) under the "Downloads" header to get started.[6]
    • Once downloaded, extract the ZIP file to a folder with a name and location that's easy to get to. Make sure you remember the path to the folder, as you'll need to navigate to this folder using the Windows command prompt or your Mac's Terminal. The new folder will contain the command-line tools you'll use to communicate with your Android.
  3. Here's how you can do so easily on Windows and macOS:
    • Windows: Open File Explorer and navigate to the folder that contains the extracted files. It should be called "platform-tools." Then, hold down the Shift key as you right-click a blank area inside the folder and select Open command window here.[7] If you see "Open PowerShell window here" instead, click that.
    • Mac: Open a Terminal and use the cd command to navigate to the new folder (e.g., cd /Users/Yourname/Desktop/platform-tools).
  4. Once connected, your Android should display a message on its screen asking if you'd like to allow USB debugging.
  5. This allows you to use ADB to communicate with your Android.[8]
    • If you don't see this message, you won't be able to use this method.
    • Run the command adb devices if you're using the Windows command prompt, or ./adb devices if you're using PowerShell or a Mac or Linux terminal. You should see at least one attached device that's just a bunch of letters and numbers—that's your Android.
    • Run the command adb shell rm /data /system /gesture.key if you're using the Windows command prompt, or ./adb shell rm /data /system /gesture.key if you're using PowerShell or a Mac or Linux terminal.
    • Reboot or restart your Android, and the lock screen will be gone.
  6. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

Warnings

  • Many newer Androids use Factory Reset Protection (FRP), which may prevent you from getting back into your phone after a factory reset.
Advertisement

You Might Also Like

Advertisement

About This Article

Darlene Antonelli, MA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Darlene Antonelli, MA. Darlene has been writing and editing tech content at wikiHow since 2019. She previously worked for AppleCare, served as a writing tutor, volunteered in IT at an animal rescue, and taught as an adjunct professor for EN101 and EN102. Darlene has completed Coursera courses on technology, writing, and language. She holds both a BA (2011) and an MA (2012) from Rowan University in Writing, with a focus on workplace communication. With her extensive experience, academic background, and ongoing learning, Darlene has become the go-to grammar expert for her friends and family, as well as a skilled wordsmith for anyone in need. This article has been viewed 125,466 times.
How helpful is this?
Co-authors: 4
Updated: September 26, 2025
Views: 125,466
Categories: Android
Thanks to all authors for creating a page that has been read 125,466 times.

Is this article up to date?

Advertisement