How to unlock or crack forgotten pattern on a androaid device ?

0 votes
asked Oct 12, 2015 in Apps, Gadgets, Computers & Games by Risad (124 points)

2 Answers

0 votes
answered Dec 17, 2015 by Risad (124 points)

Crack Pattern of any Android phone

Crack Pattern/Password/Pin lock of any Android phone

Abhijeet Bharekar November 29, 2014 How To 6 Comments

Crack Pattern/Password/Pin lock of any Android phone. If you own an Android Smart phone then you must be well aware of the security related stuff available in your phone system. There are various types of lock screen provided to protect and secure your phones data from unauthorized access. Among all the different ways to password protect your phone, the most popular one which comes with every Android device is the Pattern, Pin or Password Lock. But what if you forget the pattern lock or the password lock? Then you’ll have to log into your Google account which you’ve already set in. If even this method doesn’t work then there is no other option then wiping or factory resetting your phone. This will wipe out your entire phone data along with the pattern or the password lock which you’ve set. This method is not effective as it wipes your phone data completely. So in order to overcome this, I am unveiling some of the major methods by which any user can bypass, unlock or crack the Pattern, Pin or Password Lock of any Android Smartphone.

This article is particularly for those Android users who have forgotten their Android Pattern, Pin, Face or Password Lock and want to reset that without factory resetting, wiping or using their Google account.


This article is for educational purpose only. Don’t use this for cracking any other person’s device without their permission. Also I’ll be not held responsible for any kind of damage caused to your phone by referring this guide. Though there are least chances that your device will get damaged still I recommend you to attempt everything mentioned below at your own risk.


  • Make sure your device has at least 60% battery level.
  • USB debugging must be enabled in your phone. If debugging is not enabled it can be done from any custom recovery
  • You must temporary disable all the security related applications like Antivirus on your PC.

Method 1: Regain your Original Pattern/Password Lock back (Most Effective Method)


  1. ADB files for Android.
  1. Android OS gesture.key dictionary.
  1. File View Pro.

Pattern lock is a set of gestures that an Android user performs to unlock his/her Smartphone. It seems to be complicated, but actually it is not. It can be entered by the user joining points on a 3×3 matrix. Since Android 2.3.3 this pattern must involve a minimum of 4 points (on older Android versions the minimum was 3 points) and each point can only be used once. The pattern circles can be numbered starting from 1 to 9 from upper top-left corner to the bottom right corner as shown in the figure.

Android Pattern Lock with numbering screenshot

For example if we select a number 7415369, then the pattern would look like:

Android Pattern Lock with numbering screenshot 2

This pattern is encrypted with a SHA1 hashing algorithm. So the SHA-1 hash for 7415369 will be “F56A6DF0A85F5B0EB1E661B5836ED423542AFA86”. This SHA-1 hash is placed in a file called gesture.key which is stored at a location /data/system folder in Android’s internal memory.

When a user sets the pattern lock, phone automatically hashes the lock code with SHA-1 and saves the result into the file. While unlocking, when user enters pattern lock, the phone compares its SHA-1 hash with the stored one and decides whether to give access or not.

In case of a Password Lock, the same SHA-1 hashing technique is used. Unlike patterns, Password Lock can contain characters, numbers, or special marks such as $, #, @ etc. Because of such complexion the SHA-1 hash file number grows tremendously. Similar to pattern lock, theSHA-1 hash for the password lock is placed in a file called password.key. This file is located in /data/system/ folder in Android’s internal memory.


Step 1: Download and extract the file on your PC. After extracting you’ll find the following files in it:

  1. adb.exe
  2. AdbWinApi.dll
  3. AdbWinUsbApi.dll

ADB files for Android Step 2: Now connect your phone to PC using the USB cable.

Step 3: Open the ADB folder which you’ve just downloaded. Now press and hold shift button + right mouse key simultaneously on an empty space in that folder. Refer the image:

ADB enter command prompt

Step 4: Select ‘Open command window here’ option.

Open command prompt

As soon as you click on it, a black colored command prompt window will appear.

Command Prompt Window screenshot 1

Step 5: In this command prompt window, type the following command to make sure that your device is properly connected to PC or not.

adb devices

After entering this command, some random numbers will appear. This will confirm that your phone has connected properly.


–1 vote
answered Oct 15, 2015 by Mehedi Hasan Kajol (81 points)

Go to Customer Services, Or restore the factory settings