SoftwareInfo

abstract class SoftwareInfo


Information about device software.

Summary

Nested types

abstract class SoftwareInfo.Builder

Builder for SoftwareInfo.

Information about security patch level of a component.

Builder for SoftwareInfo.SecurityPatchInfo.

Types of component for security patch level.

Information about security patch level.

Builder for SoftwareInfo.SecurityPatchInfo.SecurityPatchLevel.

Version information of the security patch.

Builder for .

The possible value of SoftwareInfo.SecurityPatchInfo.SecurityPatchLevel.

The possible kind of SoftwareInfo.SecurityPatchInfo.SecurityPatchLevel.ValueCase.

Information about a potential pending system update.

Builder for SoftwareInfo.SystemUpdateInfo.

The status of an update: whether an update exists and what type it is.

Public functions

java-static SoftwareInfo.Builder!
abstract Int!

The Android Device Policy app version code.

Metadata!

Metadata about android device policy version code.

abstract String!

The Android Device Policy app version as displayed to the user.

Metadata!

Metadata about android device policy version name.

abstract Int!

The API level of the Android platform version running on the device.

Metadata!

Metadata about android sdk version.

abstract String!

The user-visible Android version string.

Metadata!

Metadata about android version.

java-static SoftwareInfo!
abstract ImmutableList<SoftwareInfo.SecurityPatchInfo!>!

Security patch level(SPL) information of the device.

Metadata!

Metadata about device security patch infos.

abstract ImmutableList<SoftwareInfo.SecurityPatchInfo!>!

Published Security patch level information.

Metadata!

Metadata about published security patch infos.

SoftwareInfo.SystemUpdateInfo!

Information about a potential pending system update.

Metadata!

Metadata about system update info.

abstract String!

Name of the current WebView package.

Metadata!

Metadata about webview package.

Boolean

Returns true if androidDevicePolicyVersionCodeMetadata is set.

Boolean

Returns true if androidDevicePolicyVersionNameMetadata is set.

Boolean

Returns true if androidSdkVersionMetadata is set.

Boolean

Returns true if androidVersionMetadata is set.

Boolean

Returns true if deviceSecurityPatchInfosMetadata is set.

Boolean

Returns true if publishedSecurityPatchInfosMetadata is set.

Boolean

Returns true if systemUpdateInfo is set.

Boolean

Returns true if systemUpdateInfoMetadata is set.

Boolean

Returns true if webviewPackageMetadata is set.

abstract SoftwareInfo.Builder!

Public functions

builder

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

getAndroidDevicePolicyVersionCode

abstract fun getAndroidDevicePolicyVersionCode(): Int!

The Android Device Policy app version code.

getAndroidDevicePolicyVersionCodeMetadata

fun getAndroidDevicePolicyVersionCodeMetadata(): Metadata!

Metadata about android device policy version code.

getAndroidDevicePolicyVersionName

abstract fun getAndroidDevicePolicyVersionName(): String!

The Android Device Policy app version as displayed to the user.

getAndroidDevicePolicyVersionNameMetadata

fun getAndroidDevicePolicyVersionNameMetadata(): Metadata!

Metadata about android device policy version name.

getAndroidSdkVersion

abstract fun getAndroidSdkVersion(): Int!

The API level of the Android platform version running on the device. A zero value indicates that this field is not set.

getAndroidSdkVersionMetadata

fun getAndroidSdkVersionMetadata(): Metadata!

Metadata about android sdk version.

getAndroidVersion

abstract fun getAndroidVersion(): String!

The user-visible Android version string. For example, `6.0.1`.

getAndroidVersionMetadata

fun getAndroidVersionMetadata(): Metadata!

Metadata about android version.

getDefaultInstance

java-static fun getDefaultInstance(): SoftwareInfo!

getDeviceSecurityPatchInfos

abstract fun getDeviceSecurityPatchInfos(): ImmutableList<SoftwareInfo.SecurityPatchInfo!>!

Security patch level(SPL) information of the device.

SecurityPatchInfo for SYSTEM_MODULES depends on the most recent vulnerability reports, which is machine-readable data from Android and other security bulletins.

The Device SPL for this component is determined by :

  • the maximum SPL of system modules, if they are all fully patched, or
  • the minimum SPL of unpatched system modules otherwise.
In some scenarios a cached vulnerability report is used to get published security patch info for SYSTEM_MODULES. When cached reports are used it is reflected in getSecurityPatchLevelMetadata in SecurityPatchInfo of SYSTEM_MODULES.

getDeviceSecurityPatchInfosMetadata

fun getDeviceSecurityPatchInfosMetadata(): Metadata!

Metadata about device security patch infos.

getPublishedSecurityPatchInfos

abstract fun getPublishedSecurityPatchInfos(): ImmutableList<SoftwareInfo.SecurityPatchInfo!>!

Published Security patch level information. These patch levels are based on the most recent vulnerability reports, which is a machine-readable data from Android and other security bulletins. The published security patch level is the most recent value published in a bulletin. In some scenarios cached vulnerability report will be used to get published security patch info. When cached report is used, it would be reflected in getSecurityPatchLevelMetadata in SecurityPatchInfo.

getPublishedSecurityPatchInfosMetadata

fun getPublishedSecurityPatchInfosMetadata(): Metadata!

Metadata about published security patch infos.

getSystemUpdateInfo

fun getSystemUpdateInfo(): SoftwareInfo.SystemUpdateInfo!

Information about a potential pending system update. This is only available on devices with Android API level 35 and above.

getSystemUpdateInfoMetadata

fun getSystemUpdateInfoMetadata(): Metadata!

Metadata about system update info.

getWebviewPackage

abstract fun getWebviewPackage(): String!

Name of the current WebView package.

getWebviewPackageMetadata

fun getWebviewPackageMetadata(): Metadata!

Metadata about webview package.

hasAndroidDevicePolicyVersionCodeMetadata

fun hasAndroidDevicePolicyVersionCodeMetadata(): Boolean

Returns true if androidDevicePolicyVersionCodeMetadata is set.

hasAndroidDevicePolicyVersionNameMetadata

fun hasAndroidDevicePolicyVersionNameMetadata(): Boolean

Returns true if androidDevicePolicyVersionNameMetadata is set.

hasAndroidSdkVersionMetadata

fun hasAndroidSdkVersionMetadata(): Boolean

Returns true if androidSdkVersionMetadata is set.

hasAndroidVersionMetadata

fun hasAndroidVersionMetadata(): Boolean

Returns true if androidVersionMetadata is set.

hasDeviceSecurityPatchInfosMetadata

fun hasDeviceSecurityPatchInfosMetadata(): Boolean

Returns true if deviceSecurityPatchInfosMetadata is set.

hasPublishedSecurityPatchInfosMetadata

fun hasPublishedSecurityPatchInfosMetadata(): Boolean

Returns true if publishedSecurityPatchInfosMetadata is set.

hasSystemUpdateInfo

fun hasSystemUpdateInfo(): Boolean

Returns true if systemUpdateInfo is set.

hasSystemUpdateInfoMetadata

fun hasSystemUpdateInfoMetadata(): Boolean

Returns true if systemUpdateInfoMetadata is set.

hasWebviewPackageMetadata

fun hasWebviewPackageMetadata(): Boolean

Returns true if webviewPackageMetadata is set.

toBuilder

abstract fun toBuilder(): SoftwareInfo.Builder!