CallingAppInfoParcelable

public final class CallingAppInfoParcelable implements 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 constructors

CallingAppInfoParcelable(
    @NonNull String packageName,
    @NonNull List<@NonNull byte[]> packageCertificates,
    String origin
)

constructs an instance of CallingAppInfoParcelable

Public methods

int
final String

the calling origin

final @NonNull List<@NonNull byte[]>

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

final @NonNull String

the calling app package name

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

Public constructors

CallingAppInfoParcelable

public CallingAppInfoParcelable(
    @NonNull String packageName,
    @NonNull List<@NonNull byte[]> packageCertificates,
    String origin
)

constructs an instance of CallingAppInfoParcelable

Parameters
@NonNull String packageName

the calling app package name

@NonNull List<@NonNull byte[]> packageCertificates

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

String origin

the calling origin

Public methods

describeContents

public int describeContents()

getOrigin

public final String getOrigin()

the calling origin

getPackageCertificates

public final @NonNull List<@NonNull byte[]> getPackageCertificates()

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

getPackageName

public final @NonNull String getPackageName()

the calling app package name

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)