summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-06-01 10:56:42 -0400
committerJohn Spurlock <jspurlock@google.com>2015-06-01 10:56:42 -0400
commit05e0705177d2078fa9f940ce6df723312cfab976 (patch)
tree14cd4ef2fb1118dac5c64a21d4471403e8300c59 /packages
parente648c5f1cb41f72a3404a9a7d2656e764c52f8e1 (diff)
downloadframeworks_base-05e0705177d2078fa9f940ce6df723312cfab976.zip
frameworks_base-05e0705177d2078fa9f940ce6df723312cfab976.tar.gz
frameworks_base-05e0705177d2078fa9f940ce6df723312cfab976.tar.bz2
Battery saver: limit notification intents to system UI.
Ensure the actions taken by the HUN warnings came from sysui. Bug: 20918350 Change-Id: I8dc02ebdfcc1f60d068bea43e10e350dc566728d
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
index af1f795..a12a3f1 100644
--- a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
+++ b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java
@@ -376,7 +376,8 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
filter.addAction(ACTION_START_SAVER);
filter.addAction(ACTION_STOP_SAVER);
filter.addAction(ACTION_DISMISSED_WARNING);
- mContext.registerReceiverAsUser(this, UserHandle.ALL, filter, null, mHandler);
+ mContext.registerReceiverAsUser(this, UserHandle.ALL, filter,
+ android.Manifest.permission.STATUS_BAR_SERVICE, mHandler);
}
@Override