<?xml version="1.0" encoding="utf-8"?>
<!--
    examples/inert-sample/res/xml/accessibility_config.xml

    INERT TEACHING SAMPLE. The service this describes
    (InertAccessibilityBridge) has an EMPTY implementation: it handles no
    events and dispatches no gestures. This file is deliberately written in
    the WORST shape an accessibility declaration can take, so that
    ../../scripts/apk-triage.py has something genuine to flag and so the
    reader can compare it against a legitimate one.

    READ IT AS A TRIAGE EXERCISE. Four attributes carry almost all of the
    signal:

      accessibilityEventTypes="typeAllMask"
          Subscribe to every event type there is: window content changes,
          view focus, view clicks, text changes, notifications. A genuine
          service subscribes to the two or three it needs. "All" means the
          author did not know or did not care which ones they needed, which
          for a purpose-built tool is not plausible.

      canRetrieveWindowContent="true"
          This is the one that crosses the sandbox. Without it the service
          receives events but cannot read the node tree, so it can see THAT
          a window changed and not WHAT it says. With it, the service reads
          every visible string in every app.

      canPerformGestures="true"
          API 24+. Enables dispatchGesture(), which synthesises taps and
          swipes at arbitrary screen coordinates. Combined with the previous
          flag this is read-and-write access to every other app's UI.

      (no android:packageNames attribute)
          The ABSENCE is the signal. packageNames restricts the service to a
          named list of packages. A password manager's autofill helper names
          the apps it fills. A reading aid for one publisher names that
          publisher. A service with no list has asked for every app on the
          device, including every banking app.

    Compare with a legitimate declaration, which typically looks like:

      accessibilityEventTypes="typeViewFocused|typeViewTextChanged"
      canRetrieveWindowContent="true"
      packageNames="com.vendor.theirownapp"
      canPerformGestures  (absent)

    A useful rule for reports: rate the DECLARATION, not the class name. The
    class name is renamed by R8 in half the samples you will see; the
    attributes cannot be, because the platform parses them by name.
-->
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
    android:accessibilityEventTypes="typeAllMask"
    android:accessibilityFeedbackType="feedbackGeneric"
    android:accessibilityFlags="flagReportViewIds|flagRetrieveInteractiveWindows|flagIncludeNotImportantViews"
    android:canRetrieveWindowContent="true"
    android:canPerformGestures="true"
    android:notificationTimeout="100" />
