Merge "Clarify deprecation docs for DPM.setPasswordQuality()"

This commit is contained in:
Rubin Xu
2021-11-26 12:07:44 +00:00
committed by Android (Google) Code Review

View File

@@ -3471,7 +3471,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},