17 lines
403 B
Bash
17 lines
403 B
Bash
|
#!/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
|