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

Commit 1ebf6969 authored by Eric Biggers's avatar Eric Biggers Committed by Android (Google) Code Review
Browse files

Merge "TrustManagerService: clear calling identity in isTrustUsuallyManaged()"

parents 07e487cb 98991269
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1760,8 +1760,12 @@ public class TrustManagerService extends SystemService {
        @Override
        public boolean isTrustUsuallyManaged(int userId) {
            super.isTrustUsuallyManaged_enforcePermission();

            final long identity = Binder.clearCallingIdentity();
            try {
                return isTrustUsuallyManagedInternal(userId);
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }

        @Override