SoftwareInfo

public abstract class SoftwareInfo


Information about device software.

Summary

Nested types

public abstract class SoftwareInfo.Builder

Builder for SoftwareInfo.

public abstract class SoftwareInfo.SecurityPatchInfo

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.

public abstract class SoftwareInfo.SystemUpdateInfo

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 methods

static SoftwareInfo.Builder
abstract Integer

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 Integer

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.

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 methods

builder

public static SoftwareInfo.Builder builder()

getAndroidDevicePolicyVersionCode

public abstract Integer getAndroidDevicePolicyVersionCode()

The Android Device Policy app version code.

getAndroidDevicePolicyVersionCodeMetadata

public Metadata getAndroidDevicePolicyVersionCodeMetadata()

Metadata about android device policy version code.

getAndroidDevicePolicyVersionName

public abstract String getAndroidDevicePolicyVersionName()

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

getAndroidDevicePolicyVersionNameMetadata

public Metadata getAndroidDevicePolicyVersionNameMetadata()

Metadata about android device policy version name.

getAndroidSdkVersion

public abstract Integer getAndroidSdkVersion()

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

getAndroidSdkVersionMetadata

public Metadata getAndroidSdkVersionMetadata()

Metadata about android sdk version.

getAndroidVersion

public abstract String getAndroidVersion()

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

getAndroidVersionMetadata

public Metadata getAndroidVersionMetadata()

Metadata about android version.

getDefaultInstance

public static SoftwareInfo getDefaultInstance()

getDeviceSecurityPatchInfos

public abstract ImmutableList<SoftwareInfo.SecurityPatchInfogetDeviceSecurityPatchInfos()

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

public Metadata getDeviceSecurityPatchInfosMetadata()

Metadata about device security patch infos.

getPublishedSecurityPatchInfos

public abstract ImmutableList<SoftwareInfo.SecurityPatchInfogetPublishedSecurityPatchInfos()

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

public Metadata getPublishedSecurityPatchInfosMetadata()

Metadata about published security patch infos.

getSystemUpdateInfo

public SoftwareInfo.SystemUpdateInfo getSystemUpdateInfo()

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

getSystemUpdateInfoMetadata

public Metadata getSystemUpdateInfoMetadata()

Metadata about system update info.

getWebviewPackage

public abstract String getWebviewPackage()

Name of the current WebView package.

getWebviewPackageMetadata

public Metadata getWebviewPackageMetadata()

Metadata about webview package.

hasAndroidDevicePolicyVersionCodeMetadata

public boolean hasAndroidDevicePolicyVersionCodeMetadata()

Returns true if androidDevicePolicyVersionCodeMetadata is set.

hasAndroidDevicePolicyVersionNameMetadata

public boolean hasAndroidDevicePolicyVersionNameMetadata()

Returns true if androidDevicePolicyVersionNameMetadata is set.

hasAndroidSdkVersionMetadata

public boolean hasAndroidSdkVersionMetadata()

Returns true if androidSdkVersionMetadata is set.

hasAndroidVersionMetadata

public boolean hasAndroidVersionMetadata()

Returns true if androidVersionMetadata is set.

hasDeviceSecurityPatchInfosMetadata

public boolean hasDeviceSecurityPatchInfosMetadata()

Returns true if deviceSecurityPatchInfosMetadata is set.

hasPublishedSecurityPatchInfosMetadata

public boolean hasPublishedSecurityPatchInfosMetadata()

Returns true if publishedSecurityPatchInfosMetadata is set.

hasSystemUpdateInfo

public boolean hasSystemUpdateInfo()

Returns true if systemUpdateInfo is set.

hasSystemUpdateInfoMetadata

public boolean hasSystemUpdateInfoMetadata()

Returns true if systemUpdateInfoMetadata is set.

hasWebviewPackageMetadata

public boolean hasWebviewPackageMetadata()

Returns true if webviewPackageMetadata is set.

toBuilder

public abstract SoftwareInfo.Builder toBuilder()