App ops: add operations for reading/writing clipboard.
Change-Id: I253d2ae34d95c7afa47af3d122e715c251ff6590
This commit is contained in:
@@ -592,6 +592,8 @@
|
|||||||
<item>camera</item>
|
<item>camera</item>
|
||||||
<item>record audio</item>
|
<item>record audio</item>
|
||||||
<item>play audio</item>
|
<item>play audio</item>
|
||||||
|
<item>read clipboard</item>
|
||||||
|
<item>modify clipboard</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<!-- User display names for app ops codes -->
|
<!-- User display names for app ops codes -->
|
||||||
@@ -625,6 +627,8 @@
|
|||||||
<item>Camera</item>
|
<item>Camera</item>
|
||||||
<item>Record audio</item>
|
<item>Record audio</item>
|
||||||
<item>Play audio</item>
|
<item>Play audio</item>
|
||||||
|
<item>Read clipboard</item>
|
||||||
|
<item>Modify clipboard</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<!-- Titles for the list of long press timeout options. -->
|
<!-- Titles for the list of long press timeout options. -->
|
||||||
|
@@ -115,13 +115,17 @@ public class AppOpsState {
|
|||||||
AppOpsManager.OP_READ_CALL_LOG,
|
AppOpsManager.OP_READ_CALL_LOG,
|
||||||
AppOpsManager.OP_WRITE_CALL_LOG,
|
AppOpsManager.OP_WRITE_CALL_LOG,
|
||||||
AppOpsManager.OP_READ_CALENDAR,
|
AppOpsManager.OP_READ_CALENDAR,
|
||||||
AppOpsManager.OP_WRITE_CALENDAR },
|
AppOpsManager.OP_WRITE_CALENDAR,
|
||||||
|
AppOpsManager.OP_READ_CLIPBOARD,
|
||||||
|
AppOpsManager.OP_WRITE_CLIPBOARD },
|
||||||
new boolean[] { true,
|
new boolean[] { true,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
true }
|
true,
|
||||||
|
false,
|
||||||
|
false }
|
||||||
);
|
);
|
||||||
|
|
||||||
public static final OpsTemplate MESSAGING_TEMPLATE = new OpsTemplate(
|
public static final OpsTemplate MESSAGING_TEMPLATE = new OpsTemplate(
|
||||||
|
Reference in New Issue
Block a user