From c782113476f05f1810072551de313751c5d852e9 Mon Sep 17 00:00:00 2001 From: junyi233 Date: Mon, 21 Aug 2023 14:56:01 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20a35d102=20from=20https://gitee.com/juny?= =?UTF-8?q?i233/docs=5F1/pulls/22592=20=E8=B5=84=E6=96=99=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7=E9=97=AE=E9=A2=98=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: junyi233 --- .../reference/apis/js-apis-installer.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) 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 a7ce7fe8c3..e780af2ce6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -339,7 +339,7 @@ uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallbac **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -399,7 +399,7 @@ uninstall(bundleName: string, callback: AsyncCallback<void>): void; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -451,7 +451,7 @@ uninstall(bundleName: string, installParam?: InstallParam) : Promise\; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -514,7 +514,7 @@ recover(bundleName: string, installParam: InstallParam, callback: AsyncCallback& **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -572,7 +572,7 @@ recover(bundleName: string, callback: AsyncCallback<void>): void; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -622,7 +622,7 @@ recover(bundleName: string, installParam?: InstallParam) : Promise\; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -682,7 +682,7 @@ uninstall(uninstallParam: UninstallParam, callback : AsyncCallback\) : voi **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -736,7 +736,7 @@ uninstall(uninstallParam: UninstallParam) : Promise\; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -789,7 +789,7 @@ try { ## BundleInstaller.updateBundleForSelf10+ -updateBundleForSelf(hapFilePaths: Array, installParam: InstallParam, callback: AsyncCallback): void; +updateBundleForSelf(hapFilePaths: Array\, installParam: InstallParam, callback: AsyncCallback\): void; 以异步方法更新当前应用,仅限企业设备上的企业MDM应用调用,且传入的hapFilePaths中的hap必须都属于当前应用,使用callback形式返回结果。 @@ -821,7 +821,6 @@ updateBundleForSelf(hapFilePaths: Array, installParam: InstallParam, cal | 17700016 | Failed to install the HAP because of insufficient system disk space. | | 17700017 | Failed to install the HAP since the version of the HAP to install is too early. | | 17700018 | Failed to install because the dependent module does not exist. | -| 17700031 | Failed to install the HAP because the overlay check of the HAP is failed. | | 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. | | 17700041 | Failed to install because enterprise device management disallow install. | | 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. | @@ -863,7 +862,7 @@ try { ## BundleInstaller.updateBundleForSelf10+ -updateBundleForSelf(hapFilePaths: Array, callback: AsyncCallback): void; +updateBundleForSelf(hapFilePaths: Array\, callback: AsyncCallback\): void; 以异步方法更新当前应用,仅限企业设备上的企业MDM应用调用,且传入的hapFilePaths中的hap必须都属于当前应用,使用callback形式返回结果。 @@ -886,7 +885,6 @@ updateBundleForSelf(hapFilePaths: Array, callback: AsyncCallback): | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | -| 17700004 | The specified user ID is not found. | | 17700010 | Failed to install the HAP because the HAP fails to be parsed. | | 17700011 | Failed to install the HAP because the HAP signature fails to be verified. | | 17700012 | Failed to install the HAP because the HAP path is invalid or the HAP is too large. | @@ -894,7 +892,6 @@ updateBundleForSelf(hapFilePaths: Array, callback: AsyncCallback): | 17700016 | Failed to install the HAP because of insufficient system disk space. | | 17700017 | Failed to install the HAP since the version of the HAP to install is too early. | | 17700018 | Failed to install because the dependent module does not exist. | -| 17700031 | Failed to install the HAP because the overlay check of the HAP is failed. | | 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. | | 17700041 | Failed to install because enterprise device management disallow install. | | 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. | @@ -931,7 +928,7 @@ try { ## BundleInstaller.updateBundleForSelf10+ -updateBundleForSelf(hapFilePaths: Array, installParam?: InstallParam): Promise; +updateBundleForSelf(hapFilePaths: Array\, installParam?: InstallParam): Promise\; 以异步方法更新当前应用,仅限企业设备上的企业MDM应用调用,且传入的hapFilePaths中的hap必须都属于当前应用,使用promise形式返回结果。 @@ -962,7 +959,6 @@ updateBundleForSelf(hapFilePaths: Array, installParam?: InstallParam): P | 17700016 | Failed to install the HAP because of insufficient system disk space. | | 17700017 | Failed to install the HAP since the version of the HAP to install is too early. | | 17700018 | Failed to install because the dependent module does not exist. | -| 17700031 | Failed to install the HAP because the overlay check of the HAP is failed. | | 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. | | 17700041 | Failed to install because enterprise device management disallow install. | | 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. | -- GitLab