How to Unlock Android via ADB [PIN/Password/Pattern]

Unlock Android via ADB

Well, Today in this guide you will learn two ways to unlock Android Via ADB [PIN/Password/Pattern]. Now let’s get started.

Unlock any Android Device via ADB [PIN/Pattern/Password]

Well, below we have listed two various methods. Now check out these methods and decide which to try out based on your requirement.

Via ADB Tool

  1. First of all, you should connect the device to the computer by using a USB cable.
  2. You have to download the Android SDK Platform Tool. Bring it out anywhere on the Computer.
  3. Download the Scrcpy ADB Tool. Bring it out inside the platform-tools folder.
  4. In case it asks for the files to be replaced, now choose to Skip these files.
  5. Go to this folder’s address bar, copy and paste in CMD, and press Enter. This will set up Command Prompt.
  6. Bring out the following command to check the ADB connection:
    adb devices
  7. In case you guys get the Device ID, then the connection stands established. You can proceed ahead.
  8. Bring out the following command for the tool to start:
    scrcpy
  9. Here it will bring up your device however the screen will be black. Double-tap or right-click on it to use the display.
  10. The screen will light up & now you probably unlock the device just by entering the desired PIN or Pattern.
  11. When unlocked, use your device & conduct the rest of the task.

Read it out: Fix the issue: Screen Flickering in OnePlus 9/Pro after Android 12 update

By using ADB Commands

  1. Firstly you have to connect the device to the computer by using the USB cable.
  2. Get the Android SDK Platform Tool. Bring it out to anywhere on your computer.
  3. Go to this folder’s address bar, you have here type in CMD, and press Enter. This will set up Command Prompt.
  4. Bring out the following command in order to check the ADB connection:
    adb devices
  5. In case you guys get the Device ID, thus the connection is established. You can proceed ahead.
  6. Here you have to bring out the following command to go to the shell environment. It should list out the device codename/actual name.
    adb shell
  7. Bring out the following command in order to awaken the device’s display:
    input keyevent 26
  8. Bring out the following command in order to unlock the device, now replace XXXX with the PIN/Password:
    input text XXXX
  9. In case you had to click on OK just after entering the PIN/Password, bring out the below-mentioned command:
    input keyevent 66

Completed!

Leave a Reply