service - how to know User have entered wrong password or pattern? (android lock) -
this question has answer here:
i want service if user enters wrong pattern , number of that.
googled it, got nothing useful. it's impossible, because it's android system , inaccessible, , there saying it's possible , they're talking "password_failed attempts" or something.
and think it's possible, because there app when enter wrong pattern, takes picture front camera.
any appreciated.
a device administrator can use <watch-login />
policy see this. receives action_password_succeeded
or action_password_failed
each time, , can use devicepolicymanager#getcurrentfailedpasswordattempts
query it.
Comments
Post a Comment