Skip to content

AndroidBuildVersion

Properties

  • base_os(str | None) –

    The base OS build the product is based on.

  • code_name(str) –

    The current development codename, or the string "REL" if this is a release build.

  • incremental(str) –

    The internal value used by the underlying source control to represent this build.

  • preview_sdk(int | None) –

    The developer preview revision of a pre-release SDK.

  • release(str) –

    The user-visible version string.

  • sdk(int) –

    The user-visible SDK version of the framework.

  • security_patch(str | None) –

    The user-visible security patch level.

Properties#

base_os #

base_os: str | None = None

The base OS build the product is based on.

Note

Available only on Android M (API 23) and newer.

code_name #

code_name: str

The current development codename, or the string "REL" if this is a release build.

incremental #

incremental: str

The internal value used by the underlying source control to represent this build.

Note

Available only on Android M (API 23) and newer.

preview_sdk #

preview_sdk: int | None = None

The developer preview revision of a pre-release SDK.

release #

release: str

The user-visible version string.

sdk #

sdk: int

The user-visible SDK version of the framework.

Possible values are defined in: https://developer.android.com/reference/android/os/Build.VERSION_CODES.html

security_patch #

security_patch: str | None = None

The user-visible security patch level.

Note

Available only on Android M (API 23) and newer.