Unlock Phone Pattern


a) Connect your device to your computer via a USB cable
b) Open Command Prompt and type the following 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';

c) Reboot
d) You can now unlock the screen using any model you want

If the above method does not work, use another code:
adb shell
adb shell rm /data/system/gesture.key