CallingAppInfoParcelable

class CallingAppInfoParcelable : Parcelable


Information pertaining to the calling application.

The packageCertificates will either return a single byte-array corresponding to the oldest available signature for pre-P devices; for P+ devices, it will return the full rotation history (including the signature used to sign the package) or an empty list. The empty list means the package was not found or the package does not have any trust-worthy signatures.

Summary

Public companion properties

Parcelable.Creator<CallingAppInfoParcelable>

Public constructors

CallingAppInfoParcelable(
    packageName: String,
    packageCertificates: List<ByteArray>,
    origin: String?
)

constructs an instance of CallingAppInfoParcelable

Public functions

open Int
open Unit
writeToParcel(dest: Parcel, flags: Int)

Public properties

String?

the calling origin

List<ByteArray>

a list of byte arrays, one for each rotated signature in raw bytes

String

the calling app package name

Public companion properties

Public constructors

CallingAppInfoParcelable

CallingAppInfoParcelable(
    packageName: String,
    packageCertificates: List<ByteArray>,
    origin: String?
)

constructs an instance of CallingAppInfoParcelable

Parameters
packageName: String

the calling app package name

packageCertificates: List<ByteArray>

a list of byte arrays, one for each rotated signature in raw bytes

origin: String?

the calling origin

Public functions

describeContents

open fun describeContents(): Int

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Public properties

origin

val originString?

the calling origin

packageCertificates

val packageCertificatesList<ByteArray>

a list of byte arrays, one for each rotated signature in raw bytes

packageName

val packageNameString

the calling app package name