From 181cd252e91444a62e147deac88b20fd1dc8fdd2 Mon Sep 17 00:00:00 2001 From: zhaogan Date: Tue, 8 Aug 2023 20:02:03 +0800 Subject: [PATCH] =?UTF-8?q?Issue:=20#I7RKRZ=20Description:[=E6=96=B0?= =?UTF-8?q?=E9=9C=80=E6=B1=82]:=20BMS=E5=8C=85=E7=AE=A1=E7=90=86=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=8D=B8=E8=BD=BD=E6=9D=83=E9=99=90=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=8C=96=20Sig:=20SIG=5FApplicaitonFramework=20Feature=20or=20?= =?UTF-8?q?Bugfix:=20Feature=20Binary=20Source:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaogan --- .../reference/apis/js-apis-installer.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 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 ee690cbd2b..361164e8e5 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,8 @@ 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.UNINSTALL_BUNDLE | system_core | 允许应用卸载应用。 | +| ohos.permission.RECOVER_BUNDLE | system_core | 允许应用恢复预置应用。 | 权限等级参考[权限等级说明](../../security/accesstoken-overview.md#权限等级说明) @@ -321,7 +323,7 @@ uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallbac **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -381,7 +383,7 @@ uninstall(bundleName: string, callback: AsyncCallback<void>): void; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -433,7 +435,7 @@ uninstall(bundleName: string, installParam?: InstallParam) : Promise\; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -496,7 +498,7 @@ recover(bundleName: string, installParam: InstallParam, callback: AsyncCallback& **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -554,7 +556,7 @@ recover(bundleName: string, callback: AsyncCallback<void>): void; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -604,7 +606,7 @@ recover(bundleName: string, installParam?: InstallParam) : Promise\; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.RECOVER_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -664,7 +666,7 @@ uninstall(uninstallParam: UninstallParam, callback : AsyncCallback\) : voi **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core @@ -718,7 +720,7 @@ uninstall(uninstallParam: UninstallParam) : Promise\; **系统接口:** 此接口为系统接口。 -**需要权限:** ohos.permission.INSTALL_BUNDLE +**需要权限:** ohos.permission.INSTALL_BUNDLE 或 ohos.permission.UNINSTALL_BUNDLE10+ **系统能力:** SystemCapability.BundleManager.BundleFramework.Core -- GitLab