android/reset_android_gatekeeper_password/clean_lock_passwd.sh

17 lines
403 B
Bash
Raw Normal View History

2019-05-25 00:39:46 +01:00
#!/bin/bash
adb root
adb remount
# Remove old passwords
adb shell rm /data/system/gatekeeper.password.key
adb shell touch /data/system/gatekeeper.password.key
adb shell rm /data/system/gatekeeper.pattern.key
adb shell touch /data/system/gatekeeper.password.key
# Copy virgin version of locksettings DB
adb push locksettings.db-shm /data/system/
adb push locksettings.db-wal /data/system/
adb reboot