If I try to enable Tasker (5.0u3) as a device administrator on my Nexus 5 (Android 6.0.1) the settings crashes. So I can't really enable it to use e.g. the lock action.
And a small problem on my Nexus 5X (ODP4): If I add a "if" action the variable field has no focus. So if I try to select a variable nothing get filled into that field. I have to tap that field first.
Check Draw Over Other Apps is enabled for Tasker in Android Settings first. Tasker doesn't actually
do anything when you enable the admin, but settings doesn't like that missing permission for
mysterious reasons.