[GUIDE][HOW-TO]Crack android pattern lock!

131 posts
Thanks Meter: 556
By m.sabra, Senior Member on 28th July 2012, 04:48 AM
Post Reply Email Thread

Dislcaimer: this is for educational purposes only,you shall not use this on other people phones without permission under any circumstances,and am not responsable to any misuse of this hack

ok so not long ago i had a problem with a locked android device with a pattern and i managed to unlock it using adb,so here's how in case you were stuck one day with a locked device.

the device needs to have usb debugging enabled in case usb debugging isn't enabled and you have cwm you can run the same instructions from cwm,root is not required (though it will be so better if the device was rooted)

this was tested on:gingerbread,ice cream sandwich and jelly bean.

both method are through adb.

method 1:
adb shell
cd /data/data/
sqlite3 settings.db
update system set value=0 where name='lock_pattern_autolock';
update system set value=0 where name='lockscreen.lockedoutpermanently';

method 2:
adb shell rm /data/system/gesture.key
and that's a video showing how method 2 is done (thanks to melvinchng) :

you can try both of them,here is how i managed to remove the lock:
1- run the first method.
3-run the second method

-in the first method each line is a seperate command so click enter after typing each line.
-in the second method type all the command and then press enter.
-after running both methods and rebooting you may see the pattern lock,that doesn't necessarily mean it doesn't work,just try any random pattern and it may unlock then remove the pattern from settings.
-this may and may not work,it may work on some devices and don't on others,so all you can do is trying it but i can't assure it will work.
a small donation would be much appreciated thank (check my signature)
The Following 206 Users Say Thank You to m.sabra For This Useful Post: [ View ] Gift m.sabra Ad-Free
8th August 2012, 10:17 PM |#2  
creagrox's Avatar
Senior Member
Flag Ranchi, Jharkhand
Thanks Meter: 22
But What if i remember the password well enough, but didnt have data enabled the moment it got locked?

Explained elaborately here>>>
The Following User Says Thank You to creagrox For This Useful Post: [ View ] Gift creagrox Ad-Free
9th August 2012, 09:47 AM |#3  
Senior Member
Flag Kaunas
Thanks Meter: 70
It will unlock either (Loook at the time of message above - I am time traveler )
The Following 2 Users Say Thank You to ashirviskas For This Useful Post: [ View ] Gift ashirviskas Ad-Free
10th August 2012, 11:59 AM |#4  
vNa5h's Avatar
Senior Member
Thanks Meter: 132
i have better method than bot the above ones

look for smudges on the phone
The Following 22 Users Say Thank You to vNa5h For This Useful Post: [ View ] Gift vNa5h Ad-Free
16th August 2012, 12:33 AM |#5  
Junior Member
Thanks Meter: 3
Do the files need to be restored or are they just the user data for the pattern locks?
16th August 2012, 01:00 AM |#6  
spiderio's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 919
Donate to Me
This is really great...
i wonder how do you discover this
you must be a hacker
The Following User Says Thank You to spiderio For This Useful Post: [ View ] Gift spiderio Ad-Free
16th August 2012, 01:18 AM |#7  
Senior Member
Flag glasgow
Thanks Meter: 155
Donate to Me
Or you could boot into recovery backup data
wipe factory reset and reboot
Could try restoring data but most likely restore pattern lock
Or simply enter your gmail address as requested
The Following 2 Users Say Thank You to manemzjum For This Useful Post: [ View ] Gift manemzjum Ad-Free
16th August 2012, 02:03 AM |#8  
Thunder07's Avatar
Recognized Contributor / Inactive Recognized Developer
Thanks Meter: 2,447
Donate to Me
2nd option...
if you have Custom recovery
use AROMA File Explorer and you can do the same thing through the recovery
or adb through the recovery
The Following 3 Users Say Thank You to Thunder07 For This Useful Post: [ View ] Gift Thunder07 Ad-Free
16th August 2012, 02:42 AM |#9  
zmore's Avatar
Senior Member
Flag NYC
Thanks Meter: 938
FWIW, on CM10 neither method works as non-root. Yay CyanogenMod.

Method #1 FAIL:
1|[email protected]:/data/data/ $ ll
opendir failed, Permission denied
255|[email protected]:/data/data/ $ sqlite3 settings.db
Error: unable to open database "settings.db": unable to open database file

Method #2 FAIL:
[email protected]:/data $ ll /data/system/gesture.key
-rw------- system system 20 2012-08-11 04:51 gesture.key
[email protected]:/data $ rm /data/system/gesture.key
rm failed for /data/system/gesture.key, Permission denied

(I use faceunlock + pattern (mostly to keep my kid outta my phone), but if I actually cared more about security I'd encrypt my phone and use a passphrase instead)
The Following 2 Users Say Thank You to zmore For This Useful Post: [ View ] Gift zmore Ad-Free
16th August 2012, 05:04 AM |#10  
Senior Member
Flag Ankara
Thanks Meter: 18
This is a useful guide, thanks, I will try it
The Following User Says Thank You to D0GuKaN For This Useful Post: [ View ] Gift D0GuKaN Ad-Free
16th August 2012, 06:59 AM |#11  
Senior Member
Flag Stuttgart
Thanks Meter: 91
So I guess if Debugging wasn't previously enabled, you have no chance to unlock it...

I've noticed a locked Archos tablet in a shop (probably some stupid shopper locked it) and when I saw this thread announced on the first page I was thinking of helping the shop owner. But I guess I cannot.

Have a nice day!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes