FORUMS

Two New Moto X and New Moto G – Specs & Details

Today’s Moto event just ended and now we have a clear look at all of … more

How Strong Is Your Connection? – XDA Xposed Tuesday

Everyone is always talking about their bars. How many bars of WiFi do they … more

OnePlus 2 Announced: Specs, Price and Details

The OnePlus 2 has just had its Virtual Reality Launch event, and at the XDA Office we all … more

A Helpful Guide to Music Streaming Services

With the launch of Apple Music, music streaming services have recently gained a lot of … more

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

130 posts
Thanks Meter: 536
 
By m.sabra, Senior Member on 28th July 2012, 04:48 AM
Post Reply Subscribe to Thread Email Thread
Quote:

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:
Code:
adb shell
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
-AND/OR-

method 2:
Code:
adb shell rm /data/system/gesture.key
and that's a video showing how method 2 is done (thanks to melvinchng) : http://www.youtube.com/watch?v=tVJ7T...layer_embedded

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

NOTES:
-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)
Last edited by m.sabra; 23rd August 2012 at 11:28 AM.
The Following 185 Users Say Thank You to m.sabra For This Useful Post: [ View ]
 
 
8th August 2012, 10:17 PM |#2  
creagrox's Avatar
Senior Member
Flag Ranchi, Jharkhand
Thanks Meter: 21
 
More
But What if i remember the password well enough, but didnt have data enabled the moment it got locked?

Explained elaborately here>>>http://forum.xda-developers.com/show...php?p=29963687
9th August 2012, 09:47 AM |#3  
Senior Member
Flag Kaunas
Thanks Meter: 22
 
More
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 ]
10th August 2012, 11:59 AM |#4  
vNa5h's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 124
 
More
i have better method than bot the above ones


look for smudges on the phone
The Following 19 Users Say Thank You to vNa5h For This Useful Post: [ View ]
16th August 2012, 12:33 AM |#5  
Junior Member
Thanks Meter: 3
 
More
Question
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: 896
 
Donate to Me
More
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 ]
16th August 2012, 01:18 AM |#7  
Senior Member
Flag glasgow
Thanks Meter: 154
 
Donate to Me
More
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 ]
16th August 2012, 02:03 AM |#8  
Thunder07's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter: 2,100
 
Donate to Me
More
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 ]
16th August 2012, 02:42 AM |#9  
zmore's Avatar
Senior Member
Flag NYC
Thanks Meter: 899
 
More
FWIW, on CM10 neither method works as non-root. Yay CyanogenMod.

Method #1 FAIL:
1|shell@android:/data/data/com.android.providers.settings/databases $ ll
opendir failed, Permission denied
255|shell@android:/data/data/com.android.providers.settings/databases $ sqlite3 settings.db
Error: unable to open database "settings.db": unable to open database file

Method #2 FAIL:
shell@android:/data $ ll /data/system/gesture.key
-rw------- system system 20 2012-08-11 04:51 gesture.key
shell@android:/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 User Says Thank You to zmore For This Useful Post: [ View ]
16th August 2012, 05:04 AM |#10  
Senior Member
Flag Ankara
Thanks Meter: 16
 
More
This is a useful guide, thanks, I will try it
16th August 2012, 06:59 AM |#11  
Senior Member
Flag Timisoara
Thanks Meter: 52
 
More
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!

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes