diff options
author | Adrian Roos <roosa@google.com> | 2014-11-25 15:09:24 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-25 15:09:24 +0000 |
commit | 9a4d0257beadf53c706afbcb4abc76c17a44ff00 (patch) | |
tree | 55d4c7c0f1012bebeffe92be164a3e3e6626d4e4 /core/java/android/app/admin | |
parent | fe6d4f094d2441314bb31fec10b520f80aeb481e (diff) | |
parent | 520d20c1a8c2fbd0d6b7fdc19415167a6f45c866 (diff) | |
download | frameworks_base-9a4d0257beadf53c706afbcb4abc76c17a44ff00.zip frameworks_base-9a4d0257beadf53c706afbcb4abc76c17a44ff00.tar.gz frameworks_base-9a4d0257beadf53c706afbcb4abc76c17a44ff00.tar.bz2 |
am 520d20c1: am 702d9e31: Merge "Fix DPM.resetPassword("")" into lmp-mr1-dev
* commit '520d20c1a8c2fbd0d6b7fdc19415167a6f45c866':
Fix DPM.resetPassword("")
Diffstat (limited to 'core/java/android/app/admin')
-rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 86f9060..d00cbb7 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -1381,13 +1381,16 @@ public class DevicePolicyManager { * characters when the requested quality is only numeric), in which case * the currently active quality will be increased to match. * + * <p>Calling with a null or empty password will clear any existing PIN, + * pattern or password if the current password constraints allow it. + * * <p>The calling device admin must have requested * {@link DeviceAdminInfo#USES_POLICY_RESET_PASSWORD} to be able to call * this method; if it has not, a security exception will be thrown. * * <p>Calling this from a managed profile will throw a security exception. * - * @param password The new password for the user. + * @param password The new password for the user. Null or empty clears the password. * @param flags May be 0 or {@link #RESET_PASSWORD_REQUIRE_ENTRY}. * @return Returns true if the password was applied, or false if it is * not acceptable for the current constraints. |