Page 1 of 1
Lock pin/pattern/password Condition
Posted: 25 Sep 2018 21:10
by sitruk
I was curious if a condition can be added to check the lock PIN/pattern/password state.
Is lock pin set? True or false
Re: Lock pin/pattern/password Condition
Posted: 26 Sep 2018 05:58
by anuraag
There is a condition "Keyguard with Security" exists.
The condition Keyguard with Security checks whether a keyguard/lockscreen with a security element (PIN, password, ...) or not (None, Swipe) is set.
Re: Lock pin/pattern/password Condition
Posted: 26 Sep 2018 09:30
by sitruk
Perfect, I'll check that out.
Re: Lock pin/pattern/password Condition
Posted: 26 Sep 2018 10:52
by Desmanto
To add up. This only check if the security is there, but it doesn't tell you which security is on. To know the keyguard type, you have to use root and sqlite to the /data/system/lockscreen.db, find the corresponding value.
Re: Lock pin/pattern/password Condition
Posted: 26 Sep 2018 12:10
by sitruk
Thank you for that extra info.
I may be able to get by with just knowing if lock is enabled or not.