Exemplo n.º 1
0
 /**
  * Determine whether the current password the user has set is sufficient to meet the policy
  * requirements (quality, minimum length) that have been requested.
  *
  * <p>The calling device admin must have requested {@link
  * DeviceAdminInfo#USES_POLICY_LIMIT_PASSWORD} to be able to call this method; if it has not, a
  * security exception will be thrown.
  *
  * @return Returns true if the password meets the current requirements, else false.
  */
 public boolean isActivePasswordSufficient() {
   if (mService != null) {
     try {
       return mService.isActivePasswordSufficient();
     } catch (RemoteException e) {
       Log.w(TAG, "Failed talking with device policy service", e);
     }
   }
   return false;
 }