Lock pin/pattern/password Condition

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Lock pin/pattern/password Condition

Post by sitruk » 25 Sep 2018 21:10

I was curious if a condition can be added to check the lock PIN/pattern/password state.

Is lock pin set? True or false

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Lock pin/pattern/password Condition

Post by anuraag » 26 Sep 2018 05:58

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.

User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Re: Lock pin/pattern/password Condition

Post by sitruk » 26 Sep 2018 09:30

Perfect, I'll check that out.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Lock pin/pattern/password Condition

Post by Desmanto » 26 Sep 2018 10:52

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
sitruk
Posts: 50
Joined: 14 Jul 2015 14:44

Re: Lock pin/pattern/password Condition

Post by sitruk » 26 Sep 2018 12:10

Thank you for that extra info.

I may be able to get by with just knowing if lock is enabled or not.

Locked