主题
AndroidBuildVersion
从 android.os.Build.VERSION 派生的 Android 操作系统版本详情。
该对象以 version 的形式暴露。
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
code_name | str | required | The current development codename, or the string "REL" if this is a release build. |
incremental | str | required | The internal value used by the underlying source control to represent this build. Note: Available only on Android M (API 23) and newer. |
release | str | required | The user-visible version string. |
sdk | int | required | The user-visible SDK version of the framework. Possible values are defined in: https://developer.android.com/reference/android/os/Build.VERSION_CODES.html |
base_os | Optional[str] | None | The base OS build the product is 基于. Note: Available only on Android M (API 23) and newer. |
preview_sdk | Optional[int] | None | The developer preview revision of a pre-release SDK. |
security_patch | Optional[str] | None | The user-visible security patch level. Note: Available only on Android M (API 23) and newer. |