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 c0f70a5e96be9de5e610c5dbbb3fccdac2c7e1d2..b166cc4639cc186f88ce39d2bc13244014bcdaeb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -19,6 +19,7 @@ import installer from '@ohos.bundle.installer'; | ohos.permission.INSTALL_ENTERPRISE_BUNDLE | system_core | 允许应用安装企业InHouse应用。 | | ohos.permission.INSTALL_ENTERPRISE_MDM_BUNDLE | system_core | 允许在企业设备上安装企业MDM应用包。 | | ohos.permission.INSTALL_ENTERPRISE_NORMAL_BUNDLE | system_core | 允许在企业设备上安装企业NORMAL应用包。 | +| ohos.permission.INSTALL_SELF_BUNDLE | system_core | 允许企业MDM应用在企业设备上自升级。| 权限等级参考[权限等级说明](../../security/accesstoken-overview.md#权限等级说明) diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md index f4165f866c88ea888fca71850f891b4e9d4fbe39..4040a6ddaf79c5df5fc496f176ca9a17be34f855 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-bundle.md @@ -644,4 +644,30 @@ Failed to install the HAP because the code signature verification is failed. **处理步骤**
1. 检查代码签名文件对应的module是否包含在安装包路径之中。 2. 检查提供的代码签名文件的路径是否合法。 -3. 使用和安装包匹配的代码签名文件。 \ No newline at end of file +3. 使用和安装包匹配的代码签名文件。 + +## 17700049 应用自升级时安装的应用与调用方包名不同 +**错误信息**
+Failed to install the HAP because the bundleName is different from the bundleName of the caller application. + +**错误描述**
+企业mdm应用自升级时,安装的应用与调用方包名不同。 + +**可能原因**
+1. 要安装的hap或hsp不属于当前应用。 + +**处理步骤**
+1. 检查要安装的hap或hsp是否属于当前应用。 + +## 17700051 应用自升级时安装的应用与调用方包名不同 +**错误信息**
+Failed to install the HAP because the distribution type of caller application is not enterprise_mdm. + +**错误描述**
+企业mdm应用自升级时,调用方的分发类型不是企业mdm。 + +**可能原因**
+1. 调用方的分发类型不是企业mdm。 + +**处理步骤**
+1. 检查应用的签名文件是否正确配置。 \ No newline at end of file