Skip to content

Instantly share code, notes, and snippets.

@kleo
Last active October 26, 2020 16:55
Show Gist options
  • Select an option

  • Save kleo/ad812e0840c90ac1bbc337662e1ff9fd to your computer and use it in GitHub Desktop.

Select an option

Save kleo/ad812e0840c90ac1bbc337662e1ff9fd to your computer and use it in GitHub Desktop.
USB debugging enabled remove/change lock screen password SM-N910K (2017-02-18)
# USB debugging enabled remove/change lock screen password SM-N910K (2017-02-18)
# Copy lock screen password
/data/data/com.android.providers.settings/databases/settings.db
# Copy MMS/SMS storage (optional)
/data/data/com.android.providers.telephony/databases/mmssms.db
# Remove or change the password entry from settings.db copy
# I used DB.Browser.for.SQLite-3.9.1-win64.exe from https://sqlitebrowser.org/
# Copy back the modified settings.db to the phone /tmp
# Delete /data/data/com.android.providers.settings/databases/settings.db
# Move /tmp/settings.db to /data/data/com.android.providers.settings/databases/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment