I have an Android device which is running Android 4.0.3 (or something like that).
My little brother decided to try and guess my lock screen pattern the other day, and ended up locking me out.
I have since been unable to log back in to the tablet using my Google Account details. I provided the correct login details, however it says they are incorrect. Could this be connected to the fact I have no internet connection?
I have no internet connection as the device is WiFi only, and the WiFi is currently turned off. I cannot turn it on, as I am locked out.
How can I log back into my tablet without wiping the user data?
There are several ways even in this stage. I'll try to sum up as many of them as I remember/find. Also, I don't keep it restricted to a single device -- but try to cover as many as possible, so it will be helpful to as many readers as possible. As you kept the device-tag from your question, all of them should find it :)
Sometimes this part seems to be buggy, so this page lists a few work-arounds. Amongst others, these include:
UPDATE: The app mentioned in this solution is no longer available. Instead, Reset Screen Lock should do the same.
According to TheUnlockr, the problem should be very easy to resolve:
Another source mentioning this is UltraTechy.Com, which contains a few more explanations. According to that, the app will circumvent the "too many attempts" block, so you can directly access your device again (to e.g. make a complete backup before resetting it). As soon as this app is uninstalled, the "too many attempts" will be in effect again immediately. Hence, they add a few more steps:
If you still know your pattern (and it only was your little brother who played with your device), and have your Google Account login/password ready, UltraTechy.Com offers another approach:
According to this source, there's a way to disable the pattern lock via ADB. A few requirements for this, though:
/data/systemis unlikely to be permitted without)
On the command line, enter the following:
> adb -d shell # sqlite3 data/data/com.android.providers.settings/databases/settings.db sqlite> update system set value=0 where name='lock_pattern_autolock'; sqlite> .exit # exit
(According to a comment from Kay, on Android 2.3.7 the SQL-Statement should read
update secure set value=0 where name='lock_pattern_autolock'; -- at least with CM7 on a HTC Desire)
Now disconnect and power off your phone, and turn it back on and the pattern lock should be gone.
According to Geeknizer, there are a few additional useful steps to follow: After the reboot, use your ADB shell again and...
adb shell rm /data/system/gesture.key
Then reboot again. When device reboots, you will still see a pattern lock screen. But herexe2x80x99s the catch: just try any random pattern and it may unlock then remove the pattern from settings.
Hint: if the Settings app crashes when you try to set a new pattern, remove all
locksettings.db* files from
/data/system (see "More" below).
Some additional notes from this comment by krlmlr:
/datawill be necessary. This can be done using
adb -d shell
sqlitebinary is not available on the device, you can use
adb pullto copy the database file to your computer, edit it there (e.g. using SQLiteMan, and finally use
adb pushto replace it on the device
update secure set value=0 where name='lockscreen.lockedoutpermanently';
For those not having USB Debug activated on their device, there might be a work-around using a flashable zip, as described here. This procedure requires the zip file (to be found at the linked page), an editor, busybox and root on the device, plus the device needs to be rooted. Extensive procedure -- too long to be included here. And as it is no help without the zip either, you have to follow the link for this one.
If it is a phone -- i.e. if you can give it a voice call -- you might be able to use a "security hole", as described here:
Call yourself from another phone, answer, hang-up, directly after hanging up start pressing your buttons like a madman for <30-60 seconds ending with your home button (might take a while to get the timing right). Go into settings and disable pattern-lock.
However, I guess that might leave you without protection afterwards, as you need to verify with the old method before being able to reset it to a new. But still, I didn't try: it might as well be it ignores the "failed attempts" at this place.
For phones there's a bad work-around according to this post:
Now, use the new Google Account's data to bypass the lock screen (via the "forgot" button).
There's a One-Click-Solution to be found at GSMHosting.com which claims to be able to solve the issue. According to the many thanks the poster received, it seems to work. You can download the Windows executable there, connect your phone to your computer, and click...
Oh yeah. Those guys who work for courts, police, secret services, corporate security... They've got ways as well. Example needed? ViaForensic's viaExtract can even decode pattern locks! So don't think you're unbreakable. Though: this is only mentioned here for completeness -- I don't think you easily get your hands on that :)
There might be more alternatives to that. If I happen to stumble upon them, I hope I remember to update my answer again ;) xe2x80xa6 And here we go:
adb shell(root required)
.zip(link is a download from XDA)
So the same thing happened with me today- a friend fiddled with my pattern lock - too many attempts- asked me to enter my google account and password, but it didn't work even though i remembered it correctly. I tried all permutations and combinations and possible passwords. I read multiple blogs to find a solution (and to avoid a factory reset). What finally worked was very bizarre - (keep clicking on the sign in button without entering anything, then enter something random and keep clicking. then enter your username (without @gmail) and your password. If you get lucky, it'll ask for a new pattern and your phone will be normal. However, this happened 4-5 after it got locked and after i tried everything. So presing buttons like a madman is the only shot !! also download "Screen Lock Bypass Pro" for next time
Here's how I cleared the screen lock password on my phone running CyanogenMod 11:
sudo -i adb -d shell mount /data cd /data/system rm gesture.key rm password.key