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

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

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

Returns a string representation of the object.

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

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

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

Returns a string representation of the object.

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 the following:

Properties

CREATOR

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