Android lock screen password not being recognized I flashed the latest Cyanogenmod ROM for my device (Samsung Captivate) last night and after doing so I set a numeric lock screen password.  I then customized my phone and spent a goodly amount of time working on it and locked and unlocked it successfully multiple times.  This morning when I woke up and went to unlock it, my password did not work.  I have tried the password (and combinations thereof) over 100 times and it never unlocks.  I also never get the "Lost Password" button on the lock screen to use my Gmail account to unlock the device.  Does anyone know if there is a way to connect to the device using an ADB shell and reset the password? I am able to get to a shell and can run commands.  Any help is appreciated.
Yes, you can delete the PIN data from the settings database. In the below instructions, anything that follows a # or sqlite&gt; is a command you should enter (from an adb shell):

# cd /data/data/com.android.providers.settings/databases
# sqlite3 settings.db
sqlite&gt; delete from secure where name='lockscreen.password_type';
sqlite&gt; delete from secure where name='lockscreen.password_salt';
sqlite&gt; .exit
# reboot


When the phone reboots the PIN lock should be disabled. If this doesn't work then try executing the following from within sqlite (second might not be needed):

sqlite&gt; select * from secure;
sqlite&gt; select * from system;


These two commands will simply list all entries in the secure and system tables, respectively. That will help you find the proper rows that need to be deleted in the case that they are named differently (though I don't think they will be as I just tested this on my own CyanogenMod 7 install).