Method 1: Regain your Original Pattern/Password Lock back (Most Effective Method)Downloads:
- ADB files for Android.
- Android OS gesture.key dictionary.
- 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.
For example if we select a number 7415369, then the pattern would look like:
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.
Procedure:
Step 1: Download and extract the adb.zip file on your PC. After extracting you�ll find the following files in it:
- adb.exe
- AdbWinApi.dll
- AdbWinUsbApi.dll
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:
Step 4: Select �Open command window here� option.
As soon as you click on it, a black colored command prompt window will appear.
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.
Step 6: Now we have to copy the gesture.key file from /data/system folder located in Android�s internal memory to your PC. For doing so, we need to use the command �adb pull�. So type the following command in the command prompt and press enter.
adb pull /data/system/gesture.key gesture.key
This command will pull out the gesture.key file located in /data/system/ folder to the ADB folder.
Step 7: As that you have the gesture.key file, you can close the command prompt window. Now the gesture.key file can be easily explored for viewing its contents. You can open the file using any text or hexadecimal editor. Here we use the File View Pro software. So download and install this software from the link provided above.
Step 8: Launch the File View and open this gesture.key file in it. You�ll see something like this:

The code �F56A6DF0A85F5B0EB1E661B5836ED423542AFA86� is important here.
Step 9: Now download and extract the Android OS gesture.key dictionary on your PC.
Step 10: Open that dictionary and search this �F56A6DF0A85F5B0EB1E661B5836ED423542AFA86� code in it. You�ll see something like this:
Smartphone encrypts the pattern of 1234 not as a string �1234�, but as a sequence of bytes 0�01 0�02 0�03 0�04. In other words we have a 0�01 for the first point and 0�09 for the last one. Then Android uses SHA-1 and places it in a gesture.key file. Here the gesture.key file contains 0xF5 0x6A 0x6D 0xF0 0xA8 0x5F 0x5B 0x0E 0xB1 0xE6 0x61 0x83 0x6E 0xD4 0x23 0x54 0x2A 0xFA 0x86 bytes value.
Using the dictionary we can find out that it corresponds to 0�06 0�03 0�00 0�04 0�02 0�05 0�08 values, which means that we have a �7415369� pattern.
Step 11: Try this pattern on your device and yes it will be successfully unlocked.
You can use the same method in case of password lock. This is the most simplest and effective method of all. But remember that your device must be rooted.
This is the most simplest and effective method to unlock your forgotten pattern/password lock of any Android phone.
0 comments:
Post a Comment