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

Commit 718c91cc authored by jovanak's avatar jovanak
Browse files

Removing requirement for FEATURE_DEVICE_ADMIN in DPMS.setActivePasswordState().

Bug:133782444
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.PasswordComplexityTest#testGetPasswordComplexity (on a device without the feature)
Change-Id: I5f55a867a1a5a86387f9ad9877e593adac6f6f90
parent 1f915b0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6654,7 +6654,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
     */
    @Override
    public void setActivePasswordState(PasswordMetrics metrics, int userHandle) {
        if (!mHasFeature || !mLockPatternUtils.hasSecureLockScreen()) {
        if (!mLockPatternUtils.hasSecureLockScreen()) {
            return;
        }
        enforceFullCrossUsersPermission(userHandle);