I'm also interested in this.
I can't find anything like LOCK_PASSWORD_ENABLED or LOCK_PIN_ENABLED
in the docs. I assume
Anybody know if it will be in Gingerbread or if its somewhere else
that I'm missing?

I've been looking at DevicePolicyManager
http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#getPasswordQuality(android.content.ComponentName)
It looks like mDPM.getPasswordQuality(null) should work but it
doesn't.
As far as I can tell getPasswordQuality(admin | null) always returns
zero even with the Sample Device Admin enabled.
Possible bug?

Thanks,
David Shellabarger
http://www.nightshadelabs.com
twitter.com/godsmoon

On Jul 22, 3:23 pm, Joseph Earl <[email protected]> wrote:
> It is working correctly.LOCK_PATTERN_ENABLEDtells you only about if
> the lock pattern is enabled. It has nothing to do with the password as
> far as I am aware.
> I'm afraid I do not know how to tell if the password lock is enabled
> or not, a quick scan of the docs didn't reveal anything to me.
>
> On Jul 21, 3:29 pm, Nea <[email protected]> wrote:
>
>
>
> > According to the documentation System.Secure.LOCK_PATTERN_ENABLED
> > tells you whether the autolock is enabled or not. If you set a lock
> > pattern it will return true and if you don't set any screen lock it
> > will return false, which is all in order.
>
> > However on the Android virtual device emulator you could set a screen
> > lock with a pin code or password instead of a lock pattern. But if you
> > set a pin or passwordLOCK_PATTERN_ENABLEDwill return false instead
> > of true. Isn't this a bug? Or is there another way to find out if a
> > screen lock is set or not (independent of it's a lock pattern, pin or
> > password)?
>
> > This seemingly wrong behaviour has also been discovered on a Motorola
> > Milestone device with Android 2.1 installed. It let's the user set a
> > lock pattern or password as a screen lock, however if a password is
> > setLOCK_PATTERN_ENABLEDwill return false.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to