public static boolean isOrganicMapsPackageInstalled(final Context context) {
        final PackageManager pm = context.getPackageManager();
        return (pm.getLaunchIntentForPackage(PACKAGE_NAME_RELEASE) != null
                || pm.getLaunchIntentForPackage(PACKAGE_NAME_BETA) != null
                || pm.getLaunchIntentForPackage(PACKAGE_NAME_DEBUG) != null);
    }
Detects if one of the specific OrganicMaps packages is installed
organicmaps-api/src/main/java/app/organicmaps/api/OrganicMapsApi.java