Add Keyguard Lock State Listener (API Level 33; Android 13)
New In Android 13:
KeyguardManager | Android Developers
Please add support for the new KeyguardLockedStateListener class so that, in addition to the, "Display Unlocked" we may also have, "Display Locked." From a security hardening perspective, this is an essential feature.
This allows for features like putting the device into a paranoid-level of security so that -- in the case of a malicious actor -- if someone uses known-exploits (via USB) to remove a user's secured lockscreen while the device is on and logged into, Tasker can protect the user. This, combined with amazing features like an "Overlay+/Allow Outside of Boundaries" Scene, allows us to add a secondary keyguard using Tasker to which there are no known (to me, at least) exploits to remove.
Other applications seem to accomplish this same end result without requiring API level 33 (Android 13), but this is the most proper way.