From 60df33da547f066e6840539b02bd9e4da9dd00d5 Mon Sep 17 00:00:00 2001 From: Andrew Scull Date: Fri, 29 Jul 2016 16:29:58 +0100 Subject: [PATCH] Explain the IAE thrown by resetPassword. DevicePolicyManager.resetPassword can throw an IllegalArgumentException which is now documented. Bug: 30105812 Change-Id: Ied02a0586ad62cca636c46da4faa16df64e17e5a --- core/java/android/app/admin/DevicePolicyManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 2a12ac8f0567f..b8c133e869f22 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -2219,6 +2219,7 @@ public class DevicePolicyManager { * @throws SecurityException if the calling application does not own an active administrator * that uses {@link DeviceAdminInfo#USES_POLICY_RESET_PASSWORD} * @throws IllegalStateException if the calling user is locked or has a managed profile. + * @throws IllegalArgumentException if the password does not meet system requirements. */ public boolean resetPassword(String password, int flags) { throwIfParentInstance("resetPassword");