diff options
author | Daniel Sandler <dsandler@android.com> | 2013-01-17 00:21:05 -0500 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2013-02-07 15:43:02 -0500 |
commit | fde19b106b2b77bc3540b04445357870caf878b5 (patch) | |
tree | 9da09568807fde393a99095921e308b8293d71e3 /core/res | |
parent | da8d8b9699fe8e9557389465007e333d3f03dcc1 (diff) | |
download | frameworks_base-fde19b106b2b77bc3540b04445357870caf878b5.zip frameworks_base-fde19b106b2b77bc3540b04445357870caf878b5.tar.gz frameworks_base-fde19b106b2b77bc3540b04445357870caf878b5.tar.bz2 |
New API to request a list of current notifications.
The ACCESS_NOTIFICATIONS permission is signature|system only.
Change-Id: I41338230aee9611117cbdac251c1b6b6c3cebf00
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/AndroidManifest.xml | 8 | ||||
-rw-r--r-- | core/res/res/values/strings.xml | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 5783bf6..5d0614c 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2175,6 +2175,14 @@ android:description="@string/permdesc_updateLock" android:protectionLevel="signatureOrSystem" /> + <!-- Allows an application to read the current set of notifications, including + any metadata and intents attached. + @hide --> + <permission android:name="android.permission.ACCESS_NOTIFICATIONS" + android:label="@string/permlab_accessNotifications" + android:description="@string/permdesc_accessNotifications" + android:protectionLevel="signature|system" /> + <!-- The system process is explicitly the only one allowed to launch the confirmation UI for full backup/restore --> <uses-permission android:name="android.permission.CONFIRM_FULL_BACKUP"/> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 22f4e2e..00c6f6d 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -1806,6 +1806,11 @@ <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permdesc_modifyNetworkAccounting">Allows the app to modify how network usage is accounted against apps. Not for use by normal apps.</string> + <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. --> + <string name="permlab_accessNotifications">access notifications</string> + <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> + <string name="permdesc_accessNotifications">Allows the app to retrieve, examine, and clear notifications, including those posted by other apps.</string> + <!-- Policy administration --> <!-- Title of policy access to limiting the user's password choices --> |