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

Commit 85396492 authored by Robin Lee's avatar Robin Lee
Browse files

Revert "DevicePolicy: Don't warn about managed profile CAs"

This reverts commit 80559f4a.

Bug: 18224038
Change-Id: I108a4e8cf185401fef4806e1ad8c2cc78992e843
parent 80559f4a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1644,15 +1644,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        }

        private void manageNotification(UserHandle userHandle) {
            final UserInfo userInfo = mUserManager.getUserInfo(userHandle.getIdentifier());

            // Inactive users or managed profiles shouldn't provoke a warning
            if (!mUserManager.isUserRunning(userHandle)) {
                return;
            }
            if (userInfo == null || userInfo.isManagedProfile()) {
                return;
            }

            // Call out to KeyChain to check for user-added CAs
            boolean hasCert = false;