public static int getCapabilities(android.accessibilityservice.AccessibilityServiceInfo p2)
    {
        if (android.os.Build$VERSION.SDK_INT < 18) {
            if (!p2.getCanRetrieveWindowContent()) {
                return 0;
            } else {
                return 1;
            }
        } else {
            return p2.getCapabilities();
        }
    }