NOTE: This video was taken and posted on 2012. This may and probably not going to work with modern Android OS!
This solution is provided by banaheeno @ XDA
Should work on Android 2.1 and above. This solution won't work in recovery.
*Debugging mode must be on
1. Plug in your phone cable
2. Go to ADB
3. Type the following commands:
adb shell
su
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
reboot
4. DONE!
Device in use: Google Nexus S, Android 4.1.1
Camera in use: Sony DSC-TX55 @ MP4