1. Home
  2. Knowledge Base
  3. SureMDM
  4. Android Management
  5. How to enable a user to set device PIN using Password Policy

How to enable a user to set device PIN using Password Policy

We may need to secure the device with a PIN code to protect the device. We can remotely achieve this on an android device using Password Policy from MDM profiles. It shows a popup on the device that enables the device’s end-user to set up a PIN to the device. Using SureMDM, we can ensure that the PIN code is strong enough by setting parameters such as the minimum length of the PIN number, maximum failed attempts, the maximum time to lock the screen, and maximum password age. 


The purpose of this knowledge article is to provide a guide on how to enable an user to set device PIN using Password Policy.


  • If SureLock is running on the device, a few child windows need to be allowed in SureLock settings to enable the end-user to set the PIN on the device.
  • If the device is not secured using SureLock, we can skip to step 2 on How to set a password policy using profiles.
  • The services are dependent on the Model and OS of the device. If any child window is blocked, the same must be enabled from the Child Windows section.
  • The service that is being blocked can be seen in SureLock Settings > View Diagnostic log.


Step 1: How to enable the required services in SureLock Settings

  1. Tap 5 times on the SureLock Home Screen, Enter the password and go to SureLock settings.
  2. Navigate to Allowed Applications and add the Android Settings application.
  3. Edit the Settings App and check Hide Icon on Home Screen
  4. Select Child Windows and allow only the following services:






NotificationRead action interstitial

Step 2. How to set a password policy using profiles:

  1. Navigate to Profiles > Android > Select the required profile or add a new one.
  2. Select Password Policy and click on Configure.
  3. Select the required profile type and set the minimum device password policy to Numeric to secure the device using a PIN number.
  4. Set the below parameters as per requirement 

Minimum password length – Input a value between 4 and 17.

Maximum Failed AttemptsSpecify the number of attempts after which the device gets reset. Maximum failed attempts allowed are 6.

Maximum Password AgeSpecify the maximum number of hours the password can be active.

Enforce Password historyNumber of times the password has to be changed before the previously used password can be set again.

Maximum Time to lock – Number of seconds after which the screen locks automatically.

Need more help? Here’s how to get help from our experts. 


Was this helpful?
Updated on March 2023