CallingAppInfo

public final class CallingAppInfo


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

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

constructs an instance of CallingAppInfo

Public methods

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

Public constructors

CallingAppInfo

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

constructs an instance of CallingAppInfo

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

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