How can I detect if the phone is locked by a password, pin or pattern?

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

i need to check which perticuler type of lock is exist in device , Pin type or something more secure (Password, Fingerprint type etc.). I am able to check if there is a Pin, Password or a Pattern.
I have used
KeyguardManager keyguardManager = (KeyguardManager) this.getSystemService(Context.KEYGUARD_SERVICE); //api 23+
return keyguardManager.isDeviceSecure();

it retruns only true or false(if any type password exist or not).
 
Do you not think that you ought to tell us why you need to know that if you expect us to answer?
 
If it's your phone, use your memory. If it's not your phone, we don't discuss hacking here. (If it's the phone of a deceased loved one, you have my sympathy, but we still don't discuss that here.)
 
Seems like a reasonable programming question.
The question just needs to be moved to one of the developer forums.
 
Good idea, I moved this to the Developers Lounge. As long as there is no discussion about hacking into a phone, have at it!:)
 

Trending Posts

Forum statistics

Threads
955,148
Messages
6,963,901
Members
3,163,207
Latest member
drmikeyb