I want a service to look if user enters wrong pattern and number of that.
I Googled it, but got nothing useful. some say it's impossible, because it's for Android system and inaccessible, and there are some saying it's possible and they're talking about "PASSWORD_FAILED attempts" or something.
And I think it's completely possible, because there is an app when you enter a wrong pattern, it takes a picture with front camera.
Any help will be appreciated.
A device administrator can use the <watch-login />
policy to see this. It receives ACTION_PASSWORD_SUCCEEDED
or ACTION_PASSWORD_FAILED
each time, and it can use DevicePolicyManager#getCurrentFailedPasswordAttempts
to query for it.