How to reset the security pattern lock on your Android device

Share

If you are using the security pattern lock in your Android device then you might sometimes forgot it and unable to access it. This is a severe problem but a bit hard, may be one of your friend has changed the pattern to play with you and you are unable to access through your device. Don’t worry, you can now get access to your phone or tablet if you forgot the pattern which you have used.screen lock

Disclaimer: This guide is written intending to reset you lock security pattern and Technodify will not be responsible if anything goes wrong with you. So, follow it at your own risk only.

Before Proceeding

  • Backup all the personal data from you phone.

Stuffs Required

  • Android device with USB debugging enabled to it, the device must be running a kernel that grants access to adb shell.
  • A PC with adb installed to it.
  • Battery should be fully charged.

Instructions

  1. Enable the USB debugging on your phone in you have not done yet. Go, to Settings > Developer Options > USB Debugging for Android 4.0 and newer.
    Go to Settings > Applications > Development > USB Debugging for older versions.
  2. Now, connect your device with the PC via USB cable.
  3. Open the Command Prompt in your PC.
  4. Type the following commands and press enter:

    adb shell

    • The prompt should display a # rather than a $. Otherwise, enter su to switch to the root user.

    cd /data/data/com.android.providers.settings/databases
    sqlite3 settings.db
    update system set value=0 where name=’lock_pattern_autolock’;
    update system set value=0 where name=’lockscreen.lockedoutpermanently’;
    .quit
    exit
    adb reboot

  5. After your device is rebooted, enter the following commands in command prompt:

    adb shell

    • The prompt should display a # rather than a $. Otherwise, enter su to switch to the root user.

    rm /data/system/gesture.key
    exit
    adb reboot

  6. Once again, your device will be rebooted, after it reboots will ask you for a new security pattern, you any of choice.

You are now, done go ahead with the full enjoyment. If you are facing any problem in the steps than you can comment your problems below in the comment box.