ApplicationReport

abstract class ApplicationReport


Information reported about an installed app.

Summary

Nested types

The source that provided an app.

Builder for ApplicationReport.

Public functions

java-static ApplicationReport.Builder!
abstract ApplicationReport.ApplicationSource!

The source of the package.

Metadata!

Metadata about application source.

java-static ApplicationReport!
abstract String!

The package name of the app that installed this app.

Metadata!

Metadata about installer package name.

abstract Instant!

The time the app was last updated on the device.

Metadata!

Metadata about last update time.

abstract Long!

Contains app versionCode and versionCodeMajor combined together as a single long value.

Metadata!

Metadata about long version code.

abstract String!

Package name of the app.

Metadata!

Metadata about package name.

abstract ImmutableList<String!>!

The SHA-256 hash of each android.content.pm.Signature associated with the app package.

Metadata!

Metadata about signing key cert sha256 fingerprints.

abstract String!

The app version as displayed to the user.

Metadata!

Metadata about version name.

Boolean

Returns true if applicationSourceMetadata is set.

Boolean

Returns true if installerPackageNameMetadata is set.

Boolean

Returns true if lastUpdateTimeMetadata is set.

Boolean

Returns true if longVersionCodeMetadata is set.

Boolean

Returns true if packageNameMetadata is set.

Boolean

Returns true if signingKeyCertSha256FingerprintsMetadata is set.

Boolean

Returns true if versionNameMetadata is set.

abstract ApplicationReport.Builder!

Public functions

builder

java-static fun builder(): ApplicationReport.Builder!

getApplicationSource

abstract fun getApplicationSource(): ApplicationReport.ApplicationSource!

The source of the package.

getApplicationSourceMetadata

fun getApplicationSourceMetadata(): Metadata!

Metadata about application source.

getDefaultInstance

java-static fun getDefaultInstance(): ApplicationReport!

getInstallerPackageName

abstract fun getInstallerPackageName(): String!

The package name of the app that installed this app.

getInstallerPackageNameMetadata

fun getInstallerPackageNameMetadata(): Metadata!

Metadata about installer package name.

getLastUpdateTime

abstract fun getLastUpdateTime(): Instant!

The time the app was last updated on the device.

getLastUpdateTimeMetadata

fun getLastUpdateTimeMetadata(): Metadata!

Metadata about last update time.

getLongVersionCode

abstract fun getLongVersionCode(): Long!

Contains app versionCode and versionCodeMajor combined together as a single long value. The versionCodeMajor is placed in the upper 32 bits.

getLongVersionCodeMetadata

fun getLongVersionCodeMetadata(): Metadata!

Metadata about long version code.

getPackageName

abstract fun getPackageName(): String!

Package name of the app.

getPackageNameMetadata

fun getPackageNameMetadata(): Metadata!

Metadata about package name.

getSigningKeyCertSha256Fingerprints

abstract fun getSigningKeyCertSha256Fingerprints(): ImmutableList<String!>!

The SHA-256 hash of each android.content.pm.Signature associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number.

getSigningKeyCertSha256FingerprintsMetadata

fun getSigningKeyCertSha256FingerprintsMetadata(): Metadata!

Metadata about signing key cert sha256 fingerprints.

getVersionName

abstract fun getVersionName(): String!

The app version as displayed to the user.

getVersionNameMetadata

fun getVersionNameMetadata(): Metadata!

Metadata about version name.

hasApplicationSourceMetadata

fun hasApplicationSourceMetadata(): Boolean

Returns true if applicationSourceMetadata is set.

hasInstallerPackageNameMetadata

fun hasInstallerPackageNameMetadata(): Boolean

Returns true if installerPackageNameMetadata is set.

hasLastUpdateTimeMetadata

fun hasLastUpdateTimeMetadata(): Boolean

Returns true if lastUpdateTimeMetadata is set.

hasLongVersionCodeMetadata

fun hasLongVersionCodeMetadata(): Boolean

Returns true if longVersionCodeMetadata is set.

hasPackageNameMetadata

fun hasPackageNameMetadata(): Boolean

Returns true if packageNameMetadata is set.

hasSigningKeyCertSha256FingerprintsMetadata

fun hasSigningKeyCertSha256FingerprintsMetadata(): Boolean

Returns true if signingKeyCertSha256FingerprintsMetadata is set.

hasVersionNameMetadata

fun hasVersionNameMetadata(): Boolean

Returns true if versionNameMetadata is set.

toBuilder

abstract fun toBuilder(): ApplicationReport.Builder!