Skip to content

AndroidBuildVersion

从 android.os.Build.VERSION 派生的 Android 操作系统版本详情。

该对象以 version 的形式暴露。

属性 ​

名称类型默认值说明
code_namestrrequiredThe current development codename, or the string "REL" if this is a release build.
incrementalstrrequiredThe internal value used by the underlying source control to represent this build. Note: Available only on Android M (API 23) and newer.
releasestrrequiredThe user-visible version string.
sdkintrequiredThe user-visible SDK version of the framework. Possible values are defined in: https://developer.android.com/reference/android/os/Build.VERSION_CODES.html
base_osOptional[str]NoneThe base OS build the product is 基于. Note: Available only on Android M (API 23) and newer.
preview_sdkOptional[int]NoneThe developer preview revision of a pre-release SDK.
security_patchOptional[str]NoneThe user-visible security patch level. Note: Available only on Android M (API 23) and newer.

关注我,学习大模型、大数据、Python等热门技术。