diff --git a/zh-cn/application-dev/reference/apis/js-apis-installer.md b/zh-cn/application-dev/reference/apis/js-apis-installer.md index 11d978539c41c110aa13df1ac218abb1d53c5aaa..51d36bb09d978f4333dce48c75b7120b575eecba 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -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\, installParam?: InstallParam) : Promise\10+ | Array\ | 否 |共享包文件所在路径,默认值为空。 | | specifiedDistributionType10+ | string | 否 |应用安装时指定的分发类型,默认值为空,最大长度为128字节。该字段通常由操作系统运营方的应用市场指定。 | | additionalInfo10+ | string | 否 |应用安装时的额外信息,默认值为空,最大长度为3000字节。该字段通常由操作系统运营方的应用市场在安装企业应用时指定,用于保存应用的额外信息。 | +| verifyCodeParams10+ | Array<[VerifyCodeParam](#verifycodeparam10)> | 否 | 代码签名文件参数,默认值为空。 | ## UninstallParam10+ @@ -897,4 +901,17 @@ try { | 名称 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ------------------------------------------------------------ | | bundleName | string | 是 | 共享包包名。 | -| versionCode | number | 否 | 指示共享包的版本号。默认值:如果不填写versionCode,则卸载该包名的所有共享包。 | \ No newline at end of file +| versionCode | number | 否 | 指示共享包的版本号。默认值:如果不填写versionCode,则卸载该包名的所有共享包。 | + +## VerifyCodeParam10+ + +应用程序代码签名文件信息。 + + **系统能力:** SystemCapability.BundleManager.BundleFramework.Core + + **系统接口:** 此接口为系统接口。 + +| 名称 | 类型 | 必填 | 说明 | +| ---------- | ------ | ---------------- | ---------------- | +| moduleName | string | 是 | 应用程序模块名称。 | +| signatureFilePath | string | 是 | 代码签名文件路径。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md index 782e3043d48da29eaa88922aacc3506c8a174d99..f4165f866c88ea888fca71850f891b4e9d4fbe39 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md @@ -627,4 +627,21 @@ Failed to install the HAP because the VersionCode to be updated is not greater t **处理步骤**
1. 设置应用的版本号大于当前版本。 -2. 如果希望应用更新但版本号不升级,需要设置installFlag为REPLACE_EXISTING。 \ No newline at end of file +2. 如果希望应用更新但版本号不升级,需要设置installFlag为REPLACE_EXISTING。 + +## 17700048 代码签名校验失败 +**错误信息**
+Failed to install the HAP because the code signature verification is failed. + +**错误描述**
+安装应用时,安装包的代码签名文件校验失败。 + +**可能原因**
+1. 代码签名文件对应的module在安装包中不存在。 +2. 代码签名文件路径无效。 +3. 代码签名文件和对应的安装包不匹配。 + +**处理步骤**
+1. 检查代码签名文件对应的module是否包含在安装包路径之中。 +2. 检查提供的代码签名文件的路径是否合法。 +3. 使用和安装包匹配的代码签名文件。 \ No newline at end of file