Remove lockscreen in Android

Remove a lockscreen pin via adb with sqlite3

There are a couple other ways posted for folks who have forgotten lockscreen password or pattern, but this methods REMOVES the PIN. for pattern and password follow other methods

This method requires root access and debugging enabled. 
*if debugging is not enabled it can be done from any custom recovery
-reboot recovery and follow code

PIN

Code:

adb shell# sqlite3 /data/data/com.android.providers.settings/databases/settings.dbsqlite> update secure set value=65536 where name='lockscreen.password_type';sqlite> .exit# exitadb reboot

step one

Code:

adb shell

make sure you have # in the command prompt/terminal (if not type su)

step two

Code:

sqlite3 /data/data/com.android.providers.settings/databases/settings.db

you will now see sqlite>in command prompt/terminal

step 4

Code:

update secure set value=65536 where name='lockscreen.password_type';

still sqlite>

step 5

Code:

.exit

you will see the # again

step 6

Code:

exit

you will now be in the path/to/adb command prompt/terminal again

step 7

Code:

adb reboot

Now you will have full access to the device

Rahul Developers

Comments