Reset android lockscreen to slide

You’ve just reconfigured the security lockscreen settings on your (rooted) android phone, and then forgotten eg. the PIN code to unlock it? It happened to me yesterday.

Luckely(?) there’s an easy way around it, if you have adb activated:

Connect your phone to your computer, and do this:

adb shell
su
rm /data/system/locksettings.db*
reboot

This will basically delete the lockscreen settings database, which will make it revert to the default setting (slide to unlock).

This does mean that if you have adb enabled by default on your phone, the lockscreen is defeated very easily. So don’t depend on it with your life.

Bookmark the permalink.

7 Comments

  1. So basically you set it up to infringe Apple’s slide-to-unlock patent? :-P

  2. I don’t understand how to do this. Do i type this into my phone? Or the computer?

  3. Hello,

    You should have your phone connected to your computer, and the android debug bridge installed (this you can get through the Android SDK at http://developer.android.com/sdk/index.html). Once installed, you can open a command box and head to the directory where it’s installed and then issue the “adb shell” command and everything after that.

  4. do u have a solution my phone is not rooted. lg motion metro pcs forgot screen numeric pin. no service dont want to loose messages or contacts.

  5. need help lg motion metro pcs no service not rooted pin lock forgot pin. dont want to lose messages or contacts

  6. Not really. You’ll need to root it somehow to get at the data…

  7. thank you so much for this tip. after installing numerous amounts of screenlock widgets, the original settings were messed up to the point it was becoming a pain resetting it to default. This tip saved me hours of frustration!

Leave a Reply

Your email address will not be published. Required fields are marked *