From bdf28e40251772a35f776af9fd1a4b903f0f9771 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Tue, 8 Jul 2014 18:54:55 -0700 Subject: [PATCH] Add OP_PROJECT_MEDIA to AppOps Bug: 9905068 Change-Id: Ie929cfbe0001f6e6645316ea8b2eca13aab35675 --- res/values/arrays.xml | 8 ++++++-- src/com/android/settings/applications/AppOpsState.java | 10 ++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/res/values/arrays.xml b/res/values/arrays.xml index a00fbb4db0..3911378cc5 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -641,10 +641,12 @@ alarm volume notification volume bluetooth volume - mute/unmute microphone keep awake monitor location monitor high power location + get usage stats + mute/unmute microphone + project media @@ -689,10 +691,12 @@ Alarm volume Notification volume Bluetooth volume - Mute/unmute microphone Keep awake Location Location + Get usage stats + Mute/unmute microphone + Project media diff --git a/src/com/android/settings/applications/AppOpsState.java b/src/com/android/settings/applications/AppOpsState.java index 4ef5ef2735..75a8372edc 100644 --- a/src/com/android/settings/applications/AppOpsState.java +++ b/src/com/android/settings/applications/AppOpsState.java @@ -103,14 +103,14 @@ public class AppOpsState { AppOpsManager.OP_WIFI_SCAN, AppOpsManager.OP_NEIGHBORING_CELLS, AppOpsManager.OP_MONITOR_LOCATION, - AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION}, + AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION }, new boolean[] { true, true, false, false, false, false, - false} + false } ); public static final OpsTemplate PERSONAL_TEMPLATE = new OpsTemplate( @@ -189,13 +189,15 @@ public class AppOpsState { AppOpsManager.OP_CALL_PHONE, AppOpsManager.OP_WRITE_SETTINGS, AppOpsManager.OP_SYSTEM_ALERT_WINDOW, - AppOpsManager.OP_WAKE_LOCK }, + AppOpsManager.OP_WAKE_LOCK, + AppOpsManager.OP_PROJECT_MEDIA }, new boolean[] { false, true, true, true, true, - true, } + true, + false, } ); public static final OpsTemplate[] ALL_TEMPLATES = new OpsTemplate[] { -- 2.11.0