PackageInfoCompat

Helper for accessing features in PackageInfo.

Functions

Link copied to clipboard
Return versionCode and versionCodeMajor combined together as a single long value.
Link copied to clipboard
open fun getSignatures(@NonNull packageManager: PackageManager, @NonNull packageName: String): List<Signature>
Retrieve the Signature array for the given package.
Link copied to clipboard
open fun hasSignatures(@NonNull packageManager: PackageManager, @NonNull packageName: String, @Size(min = 1) @NonNull certificatesAndType: Map<Array<Byte>, Integer>, matchExact: Boolean): Boolean
Check if a package on device contains set of a certificates.