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.

see device administration.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -