diff options
author | Adrian Roos <roosa@google.com> | 2014-11-25 15:15:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-25 15:15:35 +0000 |
commit | e1d84dd914ffe29fe821b814924b0a56506dc238 (patch) | |
tree | dff256de040e0af362af5b844d54195761c91a07 /core/java/android/app/admin | |
parent | 18032a083a0089c2b2f87b5bbb0c4c6626cccefd (diff) | |
parent | 9a4d0257beadf53c706afbcb4abc76c17a44ff00 (diff) | |
download | frameworks_base-e1d84dd914ffe29fe821b814924b0a56506dc238.zip frameworks_base-e1d84dd914ffe29fe821b814924b0a56506dc238.tar.gz frameworks_base-e1d84dd914ffe29fe821b814924b0a56506dc238.tar.bz2 |
am 9a4d0257: am 520d20c1: am 702d9e31: Merge "Fix DPM.resetPassword("")" into lmp-mr1-dev
* commit '9a4d0257beadf53c706afbcb4abc76c17a44ff00':
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 1427125..39c4342 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -1385,13 +1385,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. |