Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d020117 authored by Taeho Kim's avatar Taeho Kim
Browse files

Added missing permission declaration on <service> tag of AccessibilityService...

Added missing permission declaration on <service> tag of AccessibilityService guide documentation (Building Accessibility Services)

With code snippet on current docs, the accessibility service does not show up on the Settings > Accessibility > Services list, with API level 17 or higher. In order to declare service correctly, user have to declare "permission" property with value of "android.permission.BIND_ACCESSIBILITY_SERVICE".

Change-Id: I70c8f98d4ff6fd2286bf5866098b22443afb6cd9
parent ebd397ad
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -81,7 +81,8 @@ as shown in the following sample:</p>
<pre>
&lt;application&gt;
  &lt;service android:name=&quot;.MyAccessibilityService&quot;
      android:label=&quot;@string/accessibility_service_label&quot;&gt;
      android:label=&quot;@string/accessibility_service_label&quot;
      android:permission=&quot;android.permission.BIND_ACCESSIBILITY_SERVICE&quot&gt;
    &lt;intent-filter&gt;
      &lt;action android:name=&quot;android.accessibilityservice.AccessibilityService&quot; /&gt;
    &lt;/intent-filter&gt;