getApplicationInfoCompat

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