How to Unlock Pattern Locked Android Smartphone with ADB Commands?

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

If above codes does not work then try below

adb shell rm/data/system/gesture.key

http://choozurmobile.blogspot.jp/2013/09/how-to-unlock-pattern-locked-android_10.html#.U-me1vl_vYE