How to Programmatically Enable/Disable Accessibility Service in Android

后端 未结 9 532
暗喜
暗喜 2020-11-27 15:38

I would like to programmatically enable/disable Accessibility Services listed under Settings->Accessibility option.

I could start Accessibility Intent like below:

9条回答
  •  攒了一身酷
    2020-11-27 16:11

    In Android 7 (API 24), an AccessibilityService can programmatically disable itself by calling the disableSelf() method.

提交回复
热议问题