openharmony 鸿蒙 multi_module_installation_update_consistency_verification

2026-08-25 浏览 (1)

Consistency Verification for Application Installation and Update

As applications become more and more complex, they are split into multiple modules for development and maintenance. Different teams are responsible for one or more modules. During application installation and update, consistency verification is performed on different fields to ensure application security and validity. This topic describes the consistency verification rules for signing certificates and configuration files during multi-module installation or update.

NOTE

If the values of the versionCode field in the app.json5 configuration file are the same, the installed or updated packages are of the same version.

During application packaging, validity verification is performed. For details, see Packing Tool.

Consistency Verification for Signing Certificate

FieldDescriptionConsistency Verification for InstallationsConsistency Verification for Updates
appIdApplication ID, which is a unique identifier of the application. For details, see What Is appId.YesEither appId or appIdentifier is the same.
appIdentifierUnique ID of the application. For details, see What Is appIdentifier.YesEither appId or appIdentifier is the same.
appDistributionTypeApplication distribution type specified in app-distribution-type of the application profile.YesNo consistency verification is performed when an application is updated to a later version.
appProvisionTypeProfile type. The value comes from type defined in the application profile. Profiles are classified into two types: debug profiles are used for local debugging and release profiles are used for application release.YesNo consistency verification is performed when an application is updated to a later version.
aplApplication APLs, which are classified into three levels: normal, system_basic, and system_core.YesNo consistency verification is performed when an application is updated to a later version.

Consistency Verification for Configuration File

FieldDescriptionConsistency Verification for InstallationsConsistency Verification for Updates
bundleNameBundle name. This field comes from the app.json5 configuration file.YesYes
versionCodeVersion code of the application. This field comes from the app.json5 configuration file.YesYes
apiReleaseTypeRelease type of the SDK used to run an application. An uninstalled application contains multiple module packages. When the modules are installed one by one, consistency verification is not performed. This field comes from the app.json5 configuration file.NoYes
singletonWhether an application is installed for a single user (User 0).NoYes
appTypeApplication type, which specifies the third-party application or system application.YesYes
isStageWhether an application is in the stage model.Yes. The FA model and stage model cannot be changed in the same version.No
targetBundleNameTarget bundle name. The application with this field has the overlay feature. This field comes from the app.json5 configuration file.YesYes
targetPriorityPriority of the target application. This field comes from the app.json5 configuration file.YesYes
bundleTypeBundle type. This field comes from the app.json5 configuration file.YesYes
installationFreeWhether installation-free is supported. This field comes from the module.json5 configuration file.YesYes
debugWhether the application can be debugged. This field comes from the app.json5 configuration file.YesNo
moduleTypeModule type. This field comes from the type field in the module.json5 configuration file.Yes. In the same version, the module name of the entry type cannot be modified.Yes

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 app-clone

openharmony 鸿蒙 har-package

openharmony 鸿蒙 application-package-install-uninstall

openharmony 鸿蒙 getting-started-with-arkts-for-java-programmers

openharmony 鸿蒙 arkts-migration-background

openharmony 鸿蒙 getting-started-with-arkts-for-swift-programmers

openharmony 鸿蒙 typescript-to-arkts-migration-guide

openharmony 鸿蒙 install-and-update-consistency-verification

openharmony 鸿蒙 application-package-glossary

openharmony 鸿蒙 application-package-structure-stage

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