未验证 提交 9866320a 编写于 作者: O openharmony_ci 提交者: Gitee

!18140 【同步d.ts】uninstall接口新增错误码

Merge pull request !18140 from junyi233/myfeature
...@@ -318,6 +318,7 @@ uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallbac ...@@ -318,6 +318,7 @@ uninstall(bundleName: string, installParam: InstallParam, callback: AsyncCallbac
| 17700004 | The specified user ID is not found. | | 17700004 | The specified user ID is not found. |
| 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. | | 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. |
| 17700040 | The specified bundle is a shared bundle which cannot be uninstalled. | | 17700040 | The specified bundle is a shared bundle which cannot be uninstalled. |
| 17700045 | Failed to uninstall because enterprise device management disallow uninstall. |
**示例:** **示例:**
...@@ -375,6 +376,7 @@ uninstall(bundleName: string, callback: AsyncCallback<void>): void; ...@@ -375,6 +376,7 @@ uninstall(bundleName: string, callback: AsyncCallback<void>): void;
| 17700001 | The specified bundle name is not found. | | 17700001 | The specified bundle name is not found. |
| 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. | | 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. |
| 17700040 | The specified bundle is a shared bundle which cannot be uninstalled. | | 17700040 | The specified bundle is a shared bundle which cannot be uninstalled. |
| 17700045 | Failed to uninstall because enterprise device management disallow uninstall. |
**示例:** **示例:**
...@@ -433,6 +435,7 @@ uninstall(bundleName: string, installParam?: InstallParam) : Promise\<void\>; ...@@ -433,6 +435,7 @@ uninstall(bundleName: string, installParam?: InstallParam) : Promise\<void\>;
| 17700004 | The specified user ID is not found. | | 17700004 | The specified user ID is not found. |
| 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. | | 17700020 | The specified bundle is pre-installed bundle which cannot be uninstalled. |
| 17700040 | The specified bundle is a shared bundle which cannot be uninstalled. | | 17700040 | The specified bundle is a shared bundle which cannot be uninstalled. |
| 17700045 | Failed to uninstall because enterprise device management disallow uninstall. |
**示例:** **示例:**
```ts ```ts
......
...@@ -544,6 +544,19 @@ The specified bundle is a shared bundle which cannot be uninstalled. ...@@ -544,6 +544,19 @@ The specified bundle is a shared bundle which cannot be uninstalled.
1. 通过-s参数指定卸载的应用为共享库应用。 1. 通过-s参数指定卸载的应用为共享库应用。
2. 通过UninstallParam参数的bundleName及versionCode指定卸载的共享库的包名及版本。 2. 通过UninstallParam参数的bundleName及versionCode指定卸载的共享库的包名及版本。
## 17700041 企业设备管理不允许安装该应用
**错误信息**<br/>
Failed to install because enterprise device management disallow install.
**错误描述**<br/>
安装应用时,企业设备管理不允许安装。
**可能原因**<br/>
1. 企业设备管理不允许安装该应用。
**处理步骤**<br/>
1. 请在设备中检查应用是否被企业设备管理禁止安装。
## 17700042 数据代理中的uri配置错误 ## 17700042 数据代理中的uri配置错误
**错误信息**<br/> **错误信息**<br/>
Failed to install the HAP because of incorrect URI in the data proxy. Failed to install the HAP because of incorrect URI in the data proxy.
...@@ -587,3 +600,16 @@ Failed to install the HAP because the isolationMode configured is not supported. ...@@ -587,3 +600,16 @@ Failed to install the HAP because the isolationMode configured is not supported.
**处理步骤**<br/> **处理步骤**<br/>
1. 按照设备的隔离模式正确配置HAP字段isolationMode。 1. 按照设备的隔离模式正确配置HAP字段isolationMode。
## 17700045 企业设备管理不允许卸载该应用
**错误信息**<br/>
Failed to uninstall because enterprise device management disallow uninstall.
**错误描述**<br/>
卸载应用时,企业设备管理不允许卸载。
**可能原因**<br/>
1. 企业设备管理不允许安装该应用。
**处理步骤**<br/>
1. 请在设备中检查应用是否被企业设备管理禁止卸载安装。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册