未验证 提交 2e62eefd 编写于 作者: O openharmony_ci 提交者: Gitee

!20223 【包管理】新增代码签名校验特性

Merge pull request !20223 from shilei91/master
......@@ -131,6 +131,7 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback:
| 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
| 17700047 | Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode. |
| 17700048 | Failed to install the HAP because the code signature verification is failed. |
**示例:**
......@@ -203,6 +204,7 @@ install(hapFilePaths: Array<string>, callback: AsyncCallback<void>):
| 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
| 17700047 | Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode. |
| 17700048 | Failed to install the HAP because the code signature verification is failed. |
**示例:**
......@@ -279,6 +281,7 @@ install(hapFilePaths: Array\<string\>, installParam?: InstallParam) : Promise\<v
| 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). |
| 17700044 | Failed to install the HAP because the isolationMode configured is not supported. |
| 17700047 | Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode. |
| 17700048 | Failed to install the HAP because the code signature verification is failed. |
**示例:**
......@@ -885,6 +888,7 @@ try {
| sharedBundleDirPaths<sup>10+</sup> | Array\<String> | 否 |共享包文件所在路径,默认值为空。 |
| specifiedDistributionType<sup>10+</sup> | string | 否 |应用安装时指定的分发类型,默认值为空,最大长度为128字节。该字段通常由操作系统运营方的应用市场指定。 |
| additionalInfo<sup>10+</sup> | string | 否 |应用安装时的额外信息,默认值为空,最大长度为3000字节。该字段通常由操作系统运营方的应用市场在安装企业应用时指定,用于保存应用的额外信息。 |
| verifyCodeParams<sup>10+</sup> | Array<[VerifyCodeParam](#verifycodeparam10)> | 否 | 代码签名文件参数,默认值为空。 |
## UninstallParam<sup>10+</sup>
......@@ -897,4 +901,17 @@ try {
| 名称 | 类型 | 必填 | 说明 |
| ----------- | ------ | ---- | ------------------------------------------------------------ |
| bundleName | string | 是 | 共享包包名。 |
| versionCode | number | 否 | 指示共享包的版本号。默认值:如果不填写versionCode,则卸载该包名的所有共享包。 |
\ No newline at end of file
| versionCode | number | 否 | 指示共享包的版本号。默认值:如果不填写versionCode,则卸载该包名的所有共享包。 |
## VerifyCodeParam<sup>10+</sup>
应用程序代码签名文件信息。
**系统能力:** SystemCapability.BundleManager.BundleFramework.Core
**系统接口:** 此接口为系统接口。
| 名称 | 类型 | 必填 | 说明 |
| ---------- | ------ | ---------------- | ---------------- |
| moduleName | string | 是 | 应用程序模块名称。 |
| signatureFilePath | string | 是 | 代码签名文件路径。 |
\ No newline at end of file
......@@ -627,4 +627,21 @@ Failed to install the HAP because the VersionCode to be updated is not greater t
**处理步骤**<br/>
1. 设置应用的版本号大于当前版本。
2. 如果希望应用更新但版本号不升级,需要设置installFlag为REPLACE_EXISTING。
\ No newline at end of file
2. 如果希望应用更新但版本号不升级,需要设置installFlag为REPLACE_EXISTING。
## 17700048 代码签名校验失败
**错误信息**<br/>
Failed to install the HAP because the code signature verification is failed.
**错误描述**<br/>
安装应用时,安装包的代码签名文件校验失败。
**可能原因**<br/>
1. 代码签名文件对应的module在安装包中不存在。
2. 代码签名文件路径无效。
3. 代码签名文件和对应的安装包不匹配。
**处理步骤**<br/>
1. 检查代码签名文件对应的module是否包含在安装包路径之中。
2. 检查提供的代码签名文件的路径是否合法。
3. 使用和安装包匹配的代码签名文件。
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册