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

Commit 2be7a05a authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

clear calling identity on isPackageSuspended

Fixes: 76441207
Test: inspection
Change-Id: Ic58f727177fce82e882a7ad1c1414c9d5a5bfee8
parent f67bb19f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5969,6 +5969,7 @@ public class NotificationManagerService extends SystemService {
    }

    private boolean isPackageSuspendedForUser(String pkg, int uid) {
        final long identity = Binder.clearCallingIdentity();
        int userId = UserHandle.getUserId(uid);
        try {
            return mPackageManager.isPackageSuspendedForUser(pkg, userId);
@@ -5977,6 +5978,8 @@ public class NotificationManagerService extends SystemService {
        } catch (IllegalArgumentException ex) {
            // Package not found.
            return false;
        } finally {
            Binder.restoreCallingIdentity(identity);
        }
    }