PackageInfoCompat

Helper for accessing features in PackageInfo.

Functions

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