Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save casperbiering/cf9f3ef8f548d3d19c1eb31659ba4234 to your computer and use it in GitHub Desktop.
Save casperbiering/cf9f3ef8f548d3d19c1eb31659ba4234 to your computer and use it in GitHub Desktop.
Fix Android Invalid Unlock Code
Boot to recovery (and attach to PC)
adb shell
mount /system
/system/xbin/sqlite3 /data/system/locksettings.db
UPDATE locksettings SET value = '1' WHERE name = 'lockscreen.disabled';
UPDATE locksettings SET value = '0' WHERE name = 'lockscreen.password_type';
UPDATE locksettings SET value = '0' WHERE name = 'lockscreen.password_type_alternate';
.quit
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment