Add wake lock app ops to UI.
Change-Id: Id2f23acee08fa2830d3edc30a70abf06226ae4eb
This commit is contained in:
@@ -635,6 +635,7 @@
|
||||
<item>alarm volume</item>
|
||||
<item>notification volume</item>
|
||||
<item>bluetooth volume</item>
|
||||
<item>keep awake</item>
|
||||
</string-array>
|
||||
|
||||
<!-- User display names for app ops codes -->
|
||||
@@ -670,6 +671,16 @@
|
||||
<item>Play audio</item>
|
||||
<item>Read clipboard</item>
|
||||
<item>Modify clipboard</item>
|
||||
<item>Media buttons</item>
|
||||
<item>Audio focus</item>
|
||||
<item>Master volume</item>
|
||||
<item>Voice volume</item>
|
||||
<item>Ring volume</item>
|
||||
<item>Media volume</item>
|
||||
<item>Alarm volume</item>
|
||||
<item>Notification volume</item>
|
||||
<item>Bluetooth volume</item>
|
||||
<item>Keep awake</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Titles for the list of long press timeout options. -->
|
||||
|
@@ -183,11 +183,13 @@ public class AppOpsState {
|
||||
AppOpsManager.OP_ACCESS_NOTIFICATIONS,
|
||||
AppOpsManager.OP_CALL_PHONE,
|
||||
AppOpsManager.OP_WRITE_SETTINGS,
|
||||
AppOpsManager.OP_SYSTEM_ALERT_WINDOW },
|
||||
AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
|
||||
AppOpsManager.OP_WAKE_LOCK },
|
||||
new boolean[] { false,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true, }
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user