Android - List of apps which are having Accessibility permissions

331 Views Asked by At

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;
}
0

There are 0 best solutions below