private static boolean sonyBadgeContentProviderExists(Context context) {
        boolean exists = false;
        ProviderInfo info = context.getPackageManager().resolveContentProvider(SONY_HOME_PROVIDER_NAME, 0);
        if (info != null) {
            exists = true;
        }
        return exists;
    }
Check if the latest Sony badge content provider exists .

@param context the context to use
@return true if Sony badge content provider exists, otherwise false.
app/src/main/java/home/smart/fly/animations/widget/clearbadge/impl/SonyHomeBadger.java