mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
新增错误码适配隐私空间黑名单
Signed-off-by: 张欣宇 <zhangxinyu74@huawei.com> Change-Id: I5f2d516eacffffc70619e5b91ff902b31209e121
This commit is contained in:
parent
6884838900
commit
f52f0279a0
67
api/@ohos.bundle.installer.d.ts
vendored
67
api/@ohos.bundle.installer.d.ts
vendored
@ -727,6 +727,23 @@ declare namespace installer {
|
||||
* @systemapi
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* Recover an application.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
|
||||
* @param { string } bundleName - Indicates the bundle name of the application to be recovered.
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the recover.
|
||||
* @param { AsyncCallback<void> } callback - The callback of recovering application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited from being installed on this device or by specified users.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 13
|
||||
*/
|
||||
recover(bundleName: string, installParam: InstallParam, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
@ -743,6 +760,21 @@ declare namespace installer {
|
||||
* @systemapi
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* Recover an application.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
|
||||
* @param { string } bundleName - Indicates the bundle name of the application to be recovered.
|
||||
* @param { AsyncCallback<void> } callback - The callback of recovering application result.
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited from being installed on this device or by specified users.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 13
|
||||
*/
|
||||
recover(bundleName: string, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
@ -761,6 +793,23 @@ declare namespace installer {
|
||||
* @systemapi
|
||||
* @since 9
|
||||
*/
|
||||
/**
|
||||
* Recover an application.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_BUNDLE or ohos.permission.RECOVER_BUNDLE
|
||||
* @param { string } bundleName - Indicates the bundle name of the application to be recovered.
|
||||
* @param { InstallParam } installParam - Indicates other parameters required for the recover.
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE' or 'ohos.permission.RECOVER_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundle name is not found.
|
||||
* @throws { BusinessError } 17700004 - The specified user ID is not found.
|
||||
* @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited from being installed on this device or by specified users.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 13
|
||||
*/
|
||||
recover(bundleName: string, installParam?: InstallParam): Promise<void>;
|
||||
|
||||
/**
|
||||
@ -1119,6 +1168,24 @@ declare namespace installer {
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
/**
|
||||
* Install application by bundle name with specified user.
|
||||
*
|
||||
* @permission ohos.permission.INSTALL_BUNDLE
|
||||
* @param { string } bundleName - Indicates the bundle name of application.
|
||||
* @param { number } [userId] - userId Indicates the user ID.
|
||||
* @returns { Promise<void> }
|
||||
* @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'.
|
||||
* @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
|
||||
* @throws { BusinessError } 17700001 - The specified bundleName cannot be found or the bundle is not installed by the specified user.
|
||||
* @throws { BusinessError } 17700004 - The userId is invalid.
|
||||
* @throws { BusinessError } 17700071 - It is not allowed to install the enterprise bundle.
|
||||
* @throws { BusinessError } 17700058 - Failed to install the HAP because this application is prohibited from being installed on this device or by specified users.
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Core
|
||||
* @systemapi
|
||||
* @since 13
|
||||
*/
|
||||
installPreexistingApp(bundleName: string, userId?: number): Promise<void>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user