getApplicationInfoCompat

fun PackageManager.getApplicationInfoCompat(packageName: String, flags: Int): ApplicationInfo