summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rhed Jao <rhedjao@google.com> 2019-09-11 16:59:20 +0800
committer Rhed Jao <rhedjao@google.com> 2019-09-24 17:05:50 +0800
commita22da1b205027a1c22d3e316dd2756a4dce9e3cc (patch)
treeefedd5b0583b60fc255f57403c484a8b4f427d18
parent2cd85a8ae055a79e7557deb06e776b4acb628b53 (diff)
Accessibility shortcut improvement (1/n)
Adds ACCESSIBILITY_SHORTCUT_TARGET permission. The permission allows an app to define the accessibility shortcut target. Bug: 136293963 Test: atest PermissionPolicyTest Change-Id: Ic400305c1cc52a26bfee740a2a0773e1e46beeec
-rw-r--r--api/current.txt1
-rw-r--r--core/res/AndroidManifest.xml13
-rw-r--r--core/res/res/values/strings.xml5
3 files changed, 19 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index e3fde232f074..2f6357de0caa 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -8,6 +8,7 @@ package android {
public static final class Manifest.permission {
ctor public Manifest.permission();
field public static final String ACCEPT_HANDOVER = "android.permission.ACCEPT_HANDOVER";
+ field public static final String ACCESSIBILITY_SHORTCUT_TARGET = "android.permission.ACCESSIBILITY_SHORTCUT_TARGET";
field public static final String ACCESS_BACKGROUND_LOCATION = "android.permission.ACCESS_BACKGROUND_LOCATION";
field public static final String ACCESS_CHECKIN_PROPERTIES = "android.permission.ACCESS_CHECKIN_PROPERTIES";
field public static final String ACCESS_COARSE_LOCATION = "android.permission.ACCESS_COARSE_LOCATION";
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 9738759c5f3e..d64565a66e6c 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -2545,6 +2545,19 @@
android:label="@string/permlab_readSyncStats"
android:protectionLevel="normal" />
+ <!-- ==================================================== -->
+ <!-- Permissions related to accessibility -->
+ <!-- ==================================================== -->
+ <eat-comment />
+
+ <!-- Allows applications to define the accessibility shortcut target.
+ <p>Protection level: normal
+ -->
+ <permission android:name="android.permission.ACCESSIBILITY_SHORTCUT_TARGET"
+ android:description="@string/permdesc_accessibilityShortcutTarget"
+ android:label="@string/permlab_accessibilityShortcutTarget"
+ android:protectionLevel="normal" />
+
<!-- ============================================ -->
<!-- Permissions for low-level system interaction -->
<!-- ============================================ -->
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 18d77067e2b3..cea96faaf2b6 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -1745,6 +1745,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_startViewPermissionUsage">Allows the holder to start the permission usage for an app. Should never be needed for normal apps.</string>
+ <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR_LIMIT=NONE] -->
+ <string name="permlab_accessibilityShortcutTarget">accessibility shortcut target</string>
+ <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR_LIMIT=NONE] -->
+ <string name="permdesc_accessibilityShortcutTarget">Allows an app to define the accessibility shortcut target.</string>
+
<!-- Policy administration -->
<!-- Title of policy access to limiting the user's password choices -->