Skip to content

Instantly share code, notes, and snippets.

@vaginessa
Forked from CHEF-KOCH/androidpinremove.txt
Last active September 10, 2015 21:39
Show Gist options
  • Save vaginessa/f84b852003cd485d4604 to your computer and use it in GitHub Desktop.
Save vaginessa/f84b852003cd485d4604 to your computer and use it in GitHub Desktop.
Remove Android PIN
This method requires:
- Root access and debugging* enabled
- Reboot recovery and follow code:
*if debugging is not enabled it can be done from any custom recovery
adb shell
# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite> update secure set value=65536 where name='lockscreen.password_type';
sqlite> .exit
# exit
adb reboot
adb push sqlite3 /data/local/tmp/sqlite3
adb shell
su
mount -o rw,remount /system
cp /data/local/tmp/sqlite3 /system/xbin/
rm /data/local/tmp/sqlite3
chmod 755 /system/xbin/sqlite3
sqlite3 -h
...
exit
exit
adb reboot
adb root
adb remount
adb push sqlite3 /system/xbin/sqlite3
adb shell
chmod 755 /system/xbin/sqlite3
sqlite3 -h
...
exit
adb reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment