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

Commit 51a166a8 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Merge cherrypicks of [6993729] into qt-release

Change-Id: I4b0dccd4695e0cadab06717251406a7295aaddf9
parents 7f81874b 403a2c4f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1840,11 +1840,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);
        }
    }