I have a list of apk paths and I want to deduce the names of all the apps which have Accessibility permissions.
Can anyone suggest an approach to fetch the same?
I am using the below sample code but it doesnt seem to work.
public boolean isAccessibilityEnabled(Context context, String id)
{
AccessibilityManager am = (AccessibilityManager)
context.getSystemService(Context.ACCESSIBILITY_SERVICE);
List<AccessibilityServiceInfo> runningServices = am.getEnabledAccessibilityServiceList(AccessibilityEvent.TYPES_ALL_MASK);
for (AccessibilityServiceInfo service : runningServices)
{
if (id.equals(service.getId()))
{
return true;
}
}
return false;
}