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

Commit 67024779 authored by Rhed Jao's avatar Rhed Jao Committed by Android (Google) Code Review
Browse files

Merge "Enforce package visibility filters to am#getRunningServiceControlPanel"

parents ebd8a5ae a0345676
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -12484,6 +12484,12 @@ public class ActivityManagerService extends IActivityManager.Stub
    @Override
    public PendingIntent getRunningServiceControlPanel(ComponentName name) {
        enforceNotIsolatedCaller("getRunningServiceControlPanel");
        final int callingUid = Binder.getCallingUid();
        final int callingUserId = UserHandle.getUserId(callingUid);
        if (name == null || getPackageManagerInternal()
                .filterAppAccess(name.getPackageName(), callingUid, callingUserId)) {
            return null;
        }
        synchronized (this) {
            return mServices.getRunningServiceControlPanelLocked(name);
        }