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

Commit 5d441272 authored by Omer Ozer's avatar Omer Ozer Committed by Android (Google) Code Review
Browse files

Merge "Clear calling app identity before device config check"

parents e6fa40a0 9ec9d49f
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -247,8 +247,13 @@ public final class CredentialManagerService
    }
    }


    public static boolean isCredentialDescriptionApiEnabled() {
    public static boolean isCredentialDescriptionApiEnabled() {
        final long origId = Binder.clearCallingIdentity();
        try {
            return DeviceConfig.getBoolean(
            return DeviceConfig.getBoolean(
                DeviceConfig.NAMESPACE_CREDENTIAL, DEVICE_CONFIG_ENABLE_CREDENTIAL_DESC_API, false);
                DeviceConfig.NAMESPACE_CREDENTIAL, DEVICE_CONFIG_ENABLE_CREDENTIAL_DESC_API, false);
        } finally {
            Binder.restoreCallingIdentity(origId);
        }
    }
    }


    @SuppressWarnings("GuardedBy") // ErrorProne requires initiateProviderSessionForRequestLocked
    @SuppressWarnings("GuardedBy") // ErrorProne requires initiateProviderSessionForRequestLocked