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
This commit is contained in:
Daniel Norman
2023-05-16 13:40:21 -07:00
parent 174bd2ab74
commit a64b75b8f8

View File

@@ -23,6 +23,7 @@
android:gravity="top">
<LinearLayout
android:accessibilityDataSensitive="yes"
style="@style/AccessibilityDialog">
<LinearLayout