By-passing android device password (when you forget your password, pin of pattern)

in #steemstem7 years ago (edited)

By passing android Lockscreen Password Using ADB

my logo.PNG

By-passing android lockscreen password, pattern or pin is pretty easy when using adb. A lot of android users forget their passwords or patterns and do not have any idea on how to fix it. You can easily perform factory reset through the recovery but this will wipe all your data in the phone. But this method I’m about to reveal will leave all data intact.

Before we proceed to the main steps, there are some requirements;

  1. A PC is required with ADB (android debug bridge) installed
  2. Android SDK and platform tools installed.
  3. Universal ADB drivers installed: You can skip this part if the device drivers are already installed in the PC
  4. Android debugging enabled in the target device.
  5. Super user access (ie. The android phone must be rooted)

STEPS

  1. Navigate to adb directory in your PC (i.e where the adb.exe is located in your PC). It is usually located here
    C:\Users\Dell\AppData\Local\Android\android-sdk\platform-tools.

  2. Now hold the shift button on your PC’s keyboard and right click the mouse.

  3. Click open command window here. A command prompt window will be opened

  4. Now connect the phone and enable adb debugging for the PC

  5. Type adb devices to see if the devices connected correctly. Then press ENTER
    adb devices.PNG

  6. Type adb shell and press ENTER
    adb shell.PNG

  7. Type su and press ENTER. This is to use adb with root access since we would be editing the phones system files
    su.PNG

  8. Type
    rm /data/system/locksettings.db
    rm /data/system/locksettings.db-wal
    rm /data/system/locksettings.db-shm
    reboot

You should see something like this. Then afterwards your phone will reboot and the pattern, pin or password will be removed.

main.PNG

Just incase the pattern show up input any passcode and it will unlock automatically

Note: Press ENTER after typing each line
If it doesn’t work retry the steps and replace the lines of code in step 8 with rm *.key

I hope this information would be of great benefit.
Thanks.

Sort:  

Nice post. This was really helpful.

Steem on.