OSDN Git Service

Allow the user to block notifications for foreground services.
authorDaniel Sandler <dsandler@android.com>
Thu, 1 Aug 2013 00:21:07 +0000 (20:21 -0400)
committerDaniel Sandler <dsandler@android.com>
Thu, 1 Aug 2013 04:44:57 +0000 (00:44 -0400)
commit9eb434c3899ce4791ca58affcbe673e5a96ff6b9
tree93dd5e8ce3cc50bebac779efc4fcacf964e9317c
parenta99cb5bc41d4493db84c5ee3d9123d4a99df5c53
Allow the user to block notifications for foreground services.

Stepping carefully around the fix in change Idc788527, we
perform security (and AppOps, and therefore user block)
checks against the uid passed to enqueueNotificationInternal
rather than the Binder caller.

Bug: 9502541
Change-Id: I91745db92823381df75721c1b8f11013a7fa4ecc
services/java/com/android/server/NotificationManagerService.java