Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Android lock screen settings from adb
- #set pin
- adb shell locksettings set-pin 1234
- #change pin
- adb shell locksettings set-pin --old 1234 5555
- #clear pin
- adb shell locksettings clear --old 5555
- #disable lock screen swipe
- adb shell locksettings set-disabled true
- #re-enable it
- adb shell locksettings set-disabled false
- #check lock screen setting
- adb shell locksettings get-disabled
- #other options
- locksettings set-password [--old OLD_CREDENTIAL] NEW_PASSWORD
- ####Advanced Sqlite info###
- #as root
- #view table
- .tables
- select * from keyentry;
- #get column names
- PRAGMA table_info(keyentry);
- #change pin and look for changes
- #remove the following columns
- # USER_SCREEN_LOCK_BOUND_KEY
- # USER_SCREEN_LOCK_BOUND_P521_KEY
- # USER_SUPER_KEY
- DELETE FROM keyentry WHERE alias="USER_SCREEN_LOCK_BOUND_KEY";
- DELETE FROM keyentry WHERE alias="USER_SCREEN_LOCK_BOUND_P521_KEY";
- DELETE FROM keyentry WHERE alias="USER_SUPER_KEY";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement