title: Android Accessbility Service TakeScreenshot get exception: java.lang.SecurityException: Services don't have the capability of taking the screenshot
body: <p>The following code running in AccessbilityService got exception. Android API Level 30 (Android 11)</p>
  <p>It didn't hit the callback nor &quot;onSuccess&quot; nor &quot;onFailure&quot;. Just throw exception when calling the takeScreenshot function.</p>
  <p>Did I miss any permissions?
  Any ideas please? Thanks a lot~</p>
  <p>Exception:</p>
  <pre><code>2022-01-29 13:38:53.026 26433-26433/com.example.st E/AndroidRuntime: FATAL EXCEPTION: main
  Process: com.example.spinstar, PID: 26433
  java.lang.SecurityException: Services don't have the capability of taking the screenshot.
      at android.os.Parcel.createExceptionOrNull(Parcel.java:2376)
      at android.os.Parcel.createException(Parcel.java:2360)
      at android.os.Parcel.readException(Parcel.java:2343)
      at android.os.Parcel.readException(Parcel.java:2285)
      at android.accessibilityservice.IAccessibilityServiceConnection$Stub$Proxy.takeScreenshot(IAccessibilityServiceConnection.java:1564)
      at android.accessibilityservice.AccessibilityService.takeScreenshot(AccessibilityService.java:2042)
  </code></pre>