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

Commit e08dc6cb authored by Julia Reynolds's avatar Julia Reynolds
Browse files

The volume controller has notification policy access.

Bug: 27735850
Change-Id: I7056799923370622362b491058e018db97692281
parent 2c83702a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1852,6 +1852,12 @@ public class NotificationManagerService extends SystemService {
        }

        private boolean checkPolicyAccess(String pkg) {
            if (mAudioManagerInternal != null) {
                final int vcuid = mAudioManagerInternal.getVolumeControllerUid();
                if (vcuid > 0 && Binder.getCallingUid() == vcuid) {
                    return true;
                }
            }
            return checkPackagePolicyAccess(pkg) || mListeners.isComponentEnabledForPackage(pkg);
        }