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

Commit 8d455900 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Merge "Explicitly allow shell to update listener/assist" into oc-mr1-dev am: 24a94491

am: 4d47f346

Change-Id: Ica35f6b3716f76d6e29fbec3e62bc7117ad524ec
parents 864b292d 4d47f346
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2822,7 +2822,7 @@ public class NotificationManagerService extends SystemService {
        public void setNotificationListenerAccessGrantedForUser(ComponentName listener, int userId,
                boolean granted) throws RemoteException {
            Preconditions.checkNotNull(listener);
            enforceSystemOrSystemUI("grant notification listener access");
            checkCallerIsSystemOrShell();
            if (!mActivityManager.isLowRamDevice()) {
                mConditionProviders.setPackageOrComponentEnabled(listener.flattenToString(),
                        userId, false, granted);
@@ -2843,7 +2843,7 @@ public class NotificationManagerService extends SystemService {
        public void setNotificationAssistantAccessGrantedForUser(ComponentName assistant,
                int userId, boolean granted) throws RemoteException {
            Preconditions.checkNotNull(assistant);
            enforceSystemOrSystemUI("grant notification assistant access");
            checkCallerIsSystemOrShell();
            if (!mActivityManager.isLowRamDevice()) {
                mConditionProviders.setPackageOrComponentEnabled(assistant.flattenToString(),
                        userId, false, granted);