Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26e6dd5a authored by Rubin Xu's avatar Rubin Xu
Browse files

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
parent 679b589a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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},