We know the pain you can go through when you forget Android Lockscreen pattern.
Truth be told, Android’s Lockscreen pattern provides high security, even FBI has trouble unlocking it. From the Wired article:
The bureau claims in federal court documents that forensics experts performed “multiple attempts” to access the contents of a Samsung Exhibit II handset, but failed to unlock the phone.
So how do you Unlock something which is so secure? One obvious way is to look for smudges in the screen reflection and you might see the pattern. But its not always easy. Read on to find out how you can bypass Lockscreen pattern in a more reliable way.
If you try to unlock the pattern with too many attempts, device locks down unless you enter the Google account password to restore the state.
How to Bypass / Unlock / Recover Android LockScreen Pattern
This system is secure altogether, the underlying encryption makes sure it works. But there are always Loopholes to everything. What if you can disable the pattern via ADB console?
Warning: You must use this hack in case you lost access to your phone, don’t be unethical
Note: The Method works on both Rooted and Non-rooted devices. Its more reliable to do on Rooted phone, we’re not sure if it would work on non-rooted phones. However, it requires that phone’s USB debugging mode is enabled before its locked down with a pattern. If you don’t have it enabled, there’s still hope, read the tip at the end of the post.
We demonstrate the method to unlock a locked, forgotten Pattern, it requires you to have:
- Android SDK (ADB executable)
- Adb debugging enabled on device (if not, read tip at the end of the post)
- USB cable.
- Rooted phones (Chances increase that it will get through)
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
when done, reboot.
adb shell rm /data/system/gesture.key
Reboot when done.
Step 3. When device reboots, you will still see a pattern lock screen. But here’s the catch: just try any random pattern and it may unlock then remove the pattern from settings.
Tip for Rooted users who forgot to have USB debugging enabled: If you have forgotten to leave USB debugging enabled, reboot your phone into recovery and do the same. No USB debugging required. You may however need to mount the partition being accessed by this method, and you can do that only if you have a custom recovery installed. Just go to ‘Mounts and Storage’ and mount /data. Then use the method just the normal way by manually doing the things commands do.
Disclaimer: Developer claims that it worked for him on Stock AOSP ICS, Jellybean on Galaxy Nexus, this may or may not work with all Android devices. In any case, it’s worth trying when you’re out of luck.
credits: Xda developer m.sabra