SoftwareInfo.Builder

public abstract class SoftwareInfo.Builder


Builder for SoftwareInfo.

Summary

Public methods

abstract SoftwareInfo
SoftwareInfo.Builder

Clears androidDevicePolicyVersionCodeMetadata.

SoftwareInfo.Builder

Clears androidDevicePolicyVersionNameMetadata.

SoftwareInfo.Builder

Clears androidSdkVersionMetadata.

SoftwareInfo.Builder

Clears androidVersionMetadata.

SoftwareInfo.Builder

Clears deviceSecurityPatchInfosMetadata.

SoftwareInfo.Builder

Clears publishedSecurityPatchInfosMetadata.

SoftwareInfo.Builder

Clears systemUpdateInfo.

SoftwareInfo.Builder

Clears systemUpdateInfoMetadata.

SoftwareInfo.Builder

Clears webviewPackageMetadata.

abstract SoftwareInfo.Builder

The Android Device Policy app version code.

SoftwareInfo.Builder

Metadata about android device policy version code.

abstract SoftwareInfo.Builder

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

SoftwareInfo.Builder

Metadata about android device policy version name.

abstract SoftwareInfo.Builder

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

SoftwareInfo.Builder

Metadata about android sdk version.

abstract SoftwareInfo.Builder

The user-visible Android version string.

SoftwareInfo.Builder

Metadata about android version.

SoftwareInfo.Builder

Security patch level(SPL) information of the device.

SoftwareInfo.Builder

Metadata about device security patch infos.

SoftwareInfo.Builder

Published Security patch level information.

SoftwareInfo.Builder

Metadata about published security patch infos.

SoftwareInfo.Builder

Information about a potential pending system update. * On Android 15 and above this signal is available in all scenarios. * On Android 14 and below this signal is only available if the device is managed by the Android Device Policy app.

SoftwareInfo.Builder

Metadata about system update info.

abstract SoftwareInfo.Builder

Name of the current WebView package.

SoftwareInfo.Builder

Metadata about webview package.

Public methods

build

public abstract SoftwareInfo build()

clearAndroidDevicePolicyVersionCodeMetadata

public SoftwareInfo.Builder clearAndroidDevicePolicyVersionCodeMetadata()

Clears androidDevicePolicyVersionCodeMetadata.

clearAndroidDevicePolicyVersionNameMetadata

public SoftwareInfo.Builder clearAndroidDevicePolicyVersionNameMetadata()

Clears androidDevicePolicyVersionNameMetadata.

clearAndroidSdkVersionMetadata

public SoftwareInfo.Builder clearAndroidSdkVersionMetadata()

Clears androidSdkVersionMetadata.

clearAndroidVersionMetadata

public SoftwareInfo.Builder clearAndroidVersionMetadata()

Clears androidVersionMetadata.

clearDeviceSecurityPatchInfosMetadata

public SoftwareInfo.Builder clearDeviceSecurityPatchInfosMetadata()

Clears deviceSecurityPatchInfosMetadata.

clearPublishedSecurityPatchInfosMetadata

public SoftwareInfo.Builder clearPublishedSecurityPatchInfosMetadata()

Clears publishedSecurityPatchInfosMetadata.

clearSystemUpdateInfo

public SoftwareInfo.Builder clearSystemUpdateInfo()

Clears systemUpdateInfo.

clearSystemUpdateInfoMetadata

public SoftwareInfo.Builder clearSystemUpdateInfoMetadata()

Clears systemUpdateInfoMetadata.

clearWebviewPackageMetadata

public SoftwareInfo.Builder clearWebviewPackageMetadata()

Clears webviewPackageMetadata.

setAndroidDevicePolicyVersionCode

public abstract SoftwareInfo.Builder setAndroidDevicePolicyVersionCode(Integer value)

The Android Device Policy app version code.

setAndroidDevicePolicyVersionCodeMetadata

public SoftwareInfo.Builder setAndroidDevicePolicyVersionCodeMetadata(Metadata value)

Metadata about android device policy version code.

setAndroidDevicePolicyVersionName

public abstract SoftwareInfo.Builder setAndroidDevicePolicyVersionName(String value)

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

setAndroidDevicePolicyVersionNameMetadata

public SoftwareInfo.Builder setAndroidDevicePolicyVersionNameMetadata(Metadata value)

Metadata about android device policy version name.

setAndroidSdkVersion

public abstract SoftwareInfo.Builder setAndroidSdkVersion(Integer value)

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

setAndroidSdkVersionMetadata

public SoftwareInfo.Builder setAndroidSdkVersionMetadata(Metadata value)

Metadata about android sdk version.

setAndroidVersion

public abstract SoftwareInfo.Builder setAndroidVersion(String value)

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

setAndroidVersionMetadata

public SoftwareInfo.Builder setAndroidVersionMetadata(Metadata value)

Metadata about android version.

setDeviceSecurityPatchInfos

public SoftwareInfo.Builder setDeviceSecurityPatchInfos(
    Iterable<SoftwareInfo.SecurityPatchInfo> value
)

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.

setDeviceSecurityPatchInfosMetadata

public SoftwareInfo.Builder setDeviceSecurityPatchInfosMetadata(Metadata value)

Metadata about device security patch infos.

setPublishedSecurityPatchInfos

public SoftwareInfo.Builder setPublishedSecurityPatchInfos(
    Iterable<SoftwareInfo.SecurityPatchInfo> value
)

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.

setPublishedSecurityPatchInfosMetadata

public SoftwareInfo.Builder setPublishedSecurityPatchInfosMetadata(Metadata value)

Metadata about published security patch infos.

setSystemUpdateInfo

public SoftwareInfo.Builder setSystemUpdateInfo(SoftwareInfo.SystemUpdateInfo value)

Information about a potential pending system update. * On Android 15 and above this signal is available in all scenarios. * On Android 14 and below this signal is only available if the device is managed by the Android Device Policy app.

setSystemUpdateInfoMetadata

public SoftwareInfo.Builder setSystemUpdateInfoMetadata(Metadata value)

Metadata about system update info.

setWebviewPackage

public abstract SoftwareInfo.Builder setWebviewPackage(String value)

Name of the current WebView package.

setWebviewPackageMetadata

public SoftwareInfo.Builder setWebviewPackageMetadata(Metadata value)

Metadata about webview package.