Dislcaimer : This is for educational purposes only,you shall not use this on other people phones without permission under any circumstances,and am not responsible to any misuse of this hack .

My Story : When I bought my 1st Android Device (Galaxy Y Duos) I used pattern lock. its Really Fun To Use And More Secure. But After Few Day i Forget My Lock pattern. That Time I was New To Android and did Not Know Hot To unlock it .... Then Download User Manual . i Found One Forget Password Option in Then i Enter My Gmail ID:Password .. Then i Unlocked My Device .

After Few Day When i Develop kernel ,Custom ROM , Stock Firmware From Kies Server .. Making Script .... i Found All Android System File Info .(Same As Linux) .Then i Found When We Make/Create Lock Patter Where Save Config File (/data/system/gesture.key)......

Here is Some Patter Unlock Info (i Posted It On XDA Forum Also)

Method 1
(It will Lose Ur All Internal Memory File (Not Internal SD Card) Contact ,installed Apps,Games In Internal memory or All Info )

just Wipe Data / Wipe Data Partition
For How TO Search In Google With Ur Device Name And Search In www.gsmindia.in
Method 2
Its Only For Advanced User ...its will Never Lose your DATA .. Safe To Use.

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
Method 3
its Also Like Method 2 But Very Simple

adb shell rm /data/system/gesture.key
And Other Method use Flashable Script With Method 2
(i make One Script(With AROMA) For All www.gsmindia.in Friend )

__________________________________________________ ________________