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

Commit 620ea15b authored by Svet Ganov's avatar Svet Ganov Committed by android-build-merger
Browse files

Merge "Clear calling identity before calling in package managerwq" into qt-dev am: 10f383b3

am: 3f83f9d7

Change-Id: I46ca7cc367cf776d3489f2867799eca9b69b32f3
parents 44de95f9 3f83f9d7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1843,11 +1843,14 @@ public class AppOpsService extends IAppOpsService.Stub {
    }

    private boolean isPackageSuspendedForUser(String pkg, int uid) {
        final long identity = Binder.clearCallingIdentity();
        try {
            return AppGlobals.getPackageManager().isPackageSuspendedForUser(
                    pkg, UserHandle.getUserId(uid));
        } catch (RemoteException re) {
            throw new SecurityException("Could not talk to package manager service");
        } finally {
            Binder.restoreCallingIdentity(identity);
        }
    }