The recommended way of doing this is to query the AccessibilityManager
for the enabled state of accessibility services.
AccessibilityManager am = (AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE);
boolean isAccessibilityEnabled = am.isEnabled();
boolean isExploreByTouchEnabled = am.isTouchExplorationEnabled();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…