Added in API level 31

ApkChecksum


class ApkChecksum : Parcelable
kotlin.Any
   ↳ android.content.pm.ApkChecksum

A typed checksum of an APK.

Summary

Inherited constants
Public methods
Int

Certificate?

For Installer-provided checksums, certificate of the Installer.

String?

For Installer-provided checksums, package name of the Installer.

String?

Checksum for which split.

Int

Checksum type.

ByteArray

Checksum value.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<ApkChecksum!>

Public methods

describeContents

Added in API level 31
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getInstallerCertificate

Added in API level 31
fun getInstallerCertificate(): Certificate?

For Installer-provided checksums, certificate of the Installer.

Return
Certificate? This value may be null.
Exceptions
java.security.cert.CertificateException in case when certificate can't be re-created from serialized data.

getInstallerPackageName

Added in API level 31
fun getInstallerPackageName(): String?

For Installer-provided checksums, package name of the Installer.

Return
String? This value may be null.

getSplitName

Added in API level 31
fun getSplitName(): String?

Checksum for which split. Null indicates base.apk.

Return
String? This value may be null.

getValue

Added in API level 31
fun getValue(): ByteArray

Checksum value.

Return
ByteArray This value cannot be null.

toString

Added in API level 31
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 31
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 31
static val CREATOR: Parcelable.Creator<ApkChecksum!>