Skip to content

Commit 9a4c5cd

Browse files
committed
Ask to enable touch exploration only the first time it enables the feature.
1. Now we are asking the user to grant permission to the service to enable touch exploration only the first time this service is enabled. If the service was uninstalled and then later installed we ask the user again. This avoids the scenario in which rebooting the device or upgrading an accessibility service leaves the device in a state in which the user cannot interact with. bug:6582088 Change-Id: I51d24e4892b3b48c9fb11dfb09ec1118502ba526
1 parent 5ab6e12 commit 9a4c5cd

File tree

3 files changed

+163
-69
lines changed

3 files changed

+163
-69
lines changed

core/java/android/provider/Settings.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,6 +2885,15 @@ public static final String getBluetoothInputDevicePriorityKey(String address) {
28852885
public static final String ENABLED_ACCESSIBILITY_SERVICES =
28862886
"enabled_accessibility_services";
28872887

2888+
/**
2889+
* List of the accessibility services to which the user has graned
2890+
* permission to put the device into touch exploration mode.
2891+
*
2892+
* @hide
2893+
*/
2894+
public static final String TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES =
2895+
"touch_exploration_granted_accessibility_services";
2896+
28882897
/**
28892898
* Whether to speak passwords while in accessibility mode.
28902899
*/
@@ -4292,6 +4301,7 @@ public static final String getBluetoothInputDevicePriorityKey(String address) {
42924301
ACCESSIBILITY_SCRIPT_INJECTION,
42934302
BACKUP_AUTO_RESTORE,
42944303
ENABLED_ACCESSIBILITY_SERVICES,
4304+
TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES,
42954305
TOUCH_EXPLORATION_ENABLED,
42964306
ACCESSIBILITY_ENABLED,
42974307
ACCESSIBILITY_SPEAK_PASSWORD,

0 commit comments

Comments
 (0)