From 26e6dd5a4af6ac1317406146b0edd5f62875e64b Mon Sep 17 00:00:00 2001 From: Rubin Xu Date: Tue, 16 Nov 2021 15:49:59 +0000 Subject: [PATCH] Clarify deprecation docs for DPM.setPasswordQuality() Clarify that the API is still available and not deprecated for company-owned devices. Bug: 194986764 Test: make docs Change-Id: I3fd6179acfc1d42ed335788acbe129f4f3925834 --- core/java/android/app/admin/DevicePolicyManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 4051cc9b79ba6..9a02b8551e55f 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -3450,7 +3450,10 @@ public class DevicePolicyManager { * Setting custom, overly-complicated password requirements leads to passwords that are hard * for users to remember and may not provide any security benefits given as Android uses * hardware-backed throttling to thwart online and offline brute-forcing of the device's - * screen lock. + * screen lock. Company-owned devices (fully-managed and organization-owned managed profile + * devices) are able to continue using this method, though it is recommended that + * {@link #setRequiredPasswordComplexity(int)} should be used instead. + * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. * @param quality The new desired quality. One of {@link #PASSWORD_QUALITY_UNSPECIFIED}, * {@link #PASSWORD_QUALITY_BIOMETRIC_WEAK},