diff options
| author | 2016-03-18 18:34:32 +0000 | |
|---|---|---|
| committer | 2016-03-18 18:34:34 +0000 | |
| commit | 5ee99c4f026c7b45fd403ffe250cc30aa4bca70c (patch) | |
| tree | b8e6f4d17f1c050ef5b777e28128e537c7f27e6e | |
| parent | d037ef95e8b9a62cdbb415b0dfe6c02945487347 (diff) | |
| parent | e08dc6cb7bce5910ba3a5f4575088b6a8ef0e2bf (diff) | |
Merge "The volume controller has notification policy access." into nyc-dev
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationManagerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 575de1664847..d526ef56a345 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -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); } |