SoftwareInfo.Builder

abstract class SoftwareInfo.Builder


Builder for SoftwareInfo.

Summary

Public functions

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 functions

build

abstract fun build(): SoftwareInfo!

clearAndroidDevicePolicyVersionCodeMetadata

fun clearAndroidDevicePolicyVersionCodeMetadata(): SoftwareInfo.Builder!

Clears androidDevicePolicyVersionCodeMetadata.

clearAndroidDevicePolicyVersionNameMetadata

fun clearAndroidDevicePolicyVersionNameMetadata(): SoftwareInfo.Builder!

Clears androidDevicePolicyVersionNameMetadata.

clearAndroidSdkVersionMetadata

fun clearAndroidSdkVersionMetadata(): SoftwareInfo.Builder!

Clears androidSdkVersionMetadata.

clearAndroidVersionMetadata

fun clearAndroidVersionMetadata(): SoftwareInfo.Builder!

Clears androidVersionMetadata.

clearDeviceSecurityPatchInfosMetadata

fun clearDeviceSecurityPatchInfosMetadata(): SoftwareInfo.Builder!

Clears deviceSecurityPatchInfosMetadata.

clearPublishedSecurityPatchInfosMetadata

fun clearPublishedSecurityPatchInfosMetadata(): SoftwareInfo.Builder!

Clears publishedSecurityPatchInfosMetadata.

clearSystemUpdateInfo

fun clearSystemUpdateInfo(): SoftwareInfo.Builder!

Clears systemUpdateInfo.

clearSystemUpdateInfoMetadata

fun clearSystemUpdateInfoMetadata(): SoftwareInfo.Builder!

Clears systemUpdateInfoMetadata.

clearWebviewPackageMetadata

fun clearWebviewPackageMetadata(): SoftwareInfo.Builder!

Clears webviewPackageMetadata.

setAndroidDevicePolicyVersionCode

abstract fun setAndroidDevicePolicyVersionCode(value: Int!): SoftwareInfo.Builder!

The Android Device Policy app version code.

setAndroidDevicePolicyVersionCodeMetadata

fun setAndroidDevicePolicyVersionCodeMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about android device policy version code.

setAndroidDevicePolicyVersionName

abstract fun setAndroidDevicePolicyVersionName(value: String!): SoftwareInfo.Builder!

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

setAndroidDevicePolicyVersionNameMetadata

fun setAndroidDevicePolicyVersionNameMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about android device policy version name.

setAndroidSdkVersion

abstract fun setAndroidSdkVersion(value: Int!): SoftwareInfo.Builder!

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

setAndroidSdkVersionMetadata

fun setAndroidSdkVersionMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about android sdk version.

setAndroidVersion

abstract fun setAndroidVersion(value: String!): SoftwareInfo.Builder!

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

setAndroidVersionMetadata

fun setAndroidVersionMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about android version.

setDeviceSecurityPatchInfos

fun setDeviceSecurityPatchInfos(
    value: (Mutable)Iterable<SoftwareInfo.SecurityPatchInfo!>!
): SoftwareInfo.Builder!

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

fun setDeviceSecurityPatchInfosMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about device security patch infos.

setPublishedSecurityPatchInfos

fun setPublishedSecurityPatchInfos(
    value: (Mutable)Iterable<SoftwareInfo.SecurityPatchInfo!>!
): SoftwareInfo.Builder!

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

fun setPublishedSecurityPatchInfosMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about published security patch infos.

setSystemUpdateInfo

fun setSystemUpdateInfo(value: SoftwareInfo.SystemUpdateInfo!): 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.

setSystemUpdateInfoMetadata

fun setSystemUpdateInfoMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about system update info.

setWebviewPackage

abstract fun setWebviewPackage(value: String!): SoftwareInfo.Builder!

Name of the current WebView package.

setWebviewPackageMetadata

fun setWebviewPackageMetadata(value: Metadata!): SoftwareInfo.Builder!

Metadata about webview package.