Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8517219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:38:16+00:00 2026-06-11T05:38:16+00:00

As we know Android ICS provides Face Unlock option to lock the screen in

  • 0

As we know Android ICS provides Face Unlock option to lock the screen in Settings->Security->Screen lock.

Is there a way to programmatically enable Face Locking using DevicePolicyManager, like enabling password restriction from MDM?

I have gone through the DevicePolicyManager class in API Level 16, but could not find it.
Is there any alternative to achieve this?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:38:18+00:00Added an answer on June 11, 2026 at 5:38 am

    Face Unlock is controlled by the PASSWORD_QUALITY_BIOMETRIC_WEAK flag, and is used with setPasswordQuality.

    For example, this code will require that the user has a Face Unlock password (or better) set, and will prompt them to update their password if needed:

    DevicePolicyManager mDPM = (DevicePolicyManager)
            context.getSystemService(Context.DEVICE_POLICY_SERVICE);
    ComponentName mPolicyAdmin = new ComponentName(context, PolicyAdmin.class);
    
    // Enforce Face Unlock or better for new passwords
    mDPM.setPasswordQuality(mPolicyAdmin,
                            DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK);
    
    // Prompt user to upgrade password if necessary
    if (!mDPM.isActivePasswordSufficient()) {
        Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
        startActivity(intent);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know android use wake lock to keep cpu running or screen on. It's
Is there a native way to swipe/fling between different ActionBar tabs (the Honeycomb/ICS native
Does anyone know if there is a way to add custom buttons to the
I know you answered a similar question on ICS here: https://stackoverflow.com/a/8320504 But there is
I wanted to know if android sdk provides any built in components(views) for the
I know Android doesn't support MJPEG natively but are there any jar files/drivers available
As you know android today is many versions many constructors, many screen sizes,... it's
I've got a Galaxy Nexus myself, and I know that the android:largeHeap=true manifest option
I'm implementing a screenshot feature for Android 2.3 (I know that ICS has a
I am new iOS development but I know android at eclipse. For example I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.