getPackageInfoCompat

fun PackageManager.getPackageInfoCompat(packageName: String, flags: Int = 0): PackageInfo?