Hide the a11y service enable dialog from non-a11y-tools.
This helps prevent non-tool services from enabling other
accessibility services.
Fix: 282987827
Test: Use a non-tool accessibility service to print the nodes on the
screen, observe dialog nodes are missing. Change to a
tool-service and repeat; observe nodes are present.
Test: Confirm that TalkBack can still use this dialog to enable other
services.
Change-Id: I75c4101c6554cc503ed45fc24b8eb36d07250226
diff --git a/res/layout/enable_accessibility_service_dialog_content.xml b/res/layout/enable_accessibility_service_dialog_content.xml
index 0286d57..96989bb 100644
--- a/res/layout/enable_accessibility_service_dialog_content.xml
+++ b/res/layout/enable_accessibility_service_dialog_content.xml
@@ -23,6 +23,7 @@
android:gravity="top">
<LinearLayout
+ android:accessibilityDataSensitive="yes"
style="@style/AccessibilityDialog">
<LinearLayout