openharmony 鸿蒙 mappings-between-label-and-system-versions

2023-06-24 浏览 (602)

Mappings Between Label Versions and System Versions

A system version consists of the operating system name and software version number, separated by a hyphen (-). The software version number contains four digits, representing the major, minor, feature, and build versions in sequence. A system version can have a maximum of 64 characters (spaces not allowed) and can be obtained by running the API GetOsFullName().

The label versions released in the OpenHarmony community, for example, 1.1.x, 3.0.x, and 3.1.x, use 3-digit version numbers. To avoid troubles, the following table lists the mappings between the label versions released in the community and their system versions.

Mappings between label versions and system versions

Label VersionSmall/Mini System VersionStandard System VersionRemarks
OpenHarmony_release_v1.1.0NANANo system version is defined.
OpenHarmony-v1.1.1-LTSNANANo system version is defined.
OpenHarmony-v1.1.2-LTSNANANo system version is defined.
OpenHarmony-v1.1.3-LTSNANANo system version is defined.
OpenHarmony-v1.1.4-LTSNANANo system version is defined.
OpenHarmony-v1.1.5-LTSNANANo system version is defined.
OpenHarmony-v3.0-LTSOpenHarmony-3.0.0.0OpenHarmony-3.0.0.0The OsFullName field is not modified.
OpenHarmony-v3.0.1-LTSOpenHarmony-3.0.0.0OpenHarmony-3.0.0.0The OsFullName field is not modified.
OpenHarmony-v3.0.2-LTSOpenHarmony-3.0.0.0OpenHarmony-3.0.0.0The OsFullName field is not modified.
OpenHarmony-v3.0.3-LTSOpenHarmony-3.0.0.0OpenHarmony-3.0.0.0The OsFullName field is not modified.
OpenHarmony-v3.0.5-LTSOpenHarmony-3.0.0.0OpenHarmony-3.0.0.0The OsFullName field is not modified.
OpenHarmony-v3.0.6-LTSOpenHarmony-3.0.0.0OpenHarmony-3.0.0.0The OsFullName field is not modified.
OpenHarmony-v3.0.7-LTSOpenHarmony-3.0.7.2OpenHarmony-3.0.7.2NA
OpenHarmony-v3.1-ReleaseOpenHarmony-1.0.1.0OpenHarmony-2.2.0.0The OsFullName field is not modified.
OpenHarmony-v3.1.1-ReleaseOpenHarmony-1.0.1.0OpenHarmony-2.2.0.0The OsFullName field is not modified.
OpenHarmony-v3.1.2-ReleaseOpenHarmony-1.0.1.0OpenHarmony-2.2.0.0The OsFullName field is not modified.
OpenHarmony-v3.1.3-ReleaseOpenHarmony-3.1.8.5OpenHarmony-2.2.0.0The OsFullName field is not modified.
OpenHarmony-v3.1.4-ReleaseOpenHarmony-3.1.9.6OpenHarmony-3.1.9.6NA
OpenHarmony-v3.1.5-ReleaseOpenHarmony-3.1.11.5OpenHarmony-3.1.11.5NA

Changing System Versions

For 1.0.x, 3.0.x, and 3.1.x

Integration configuration is unavailable for 1.0.x, 3.0.x, and 3.1.x in the community, so you need to modify the configuration in different files for small or mini systems and standard systems.

For the small or mini system, the OsFullName field is in the following file: startup_syspara_lite/ frameworks / parameter / src / parameter_common.c

For the standard system, the OsFullName field is in the following file: startup_syspara_lite/ interfaces / innerkits / native / syspara / src / sysversion.c

Change the static const int MAJOR_VERSION, static const int SENIOR_VERSION, static const int FEATURE_VERSION, and static const int BUILD_VERSION fields to the corresponding system versions.

For 3.2.x and Later Versions

Change the const.ohos.fullname field in the file startup_init_lite/ services / etc_lite / param / ohos_const / ohos.para

to the corresponding system version.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙OpenHarmony Version Definitions

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/1f7270c01ffe40a2babc4a4093e0d00f