diff --git a/api/@ohos.bundle.installer.d.ts b/api/@ohos.bundle.installer.d.ts index da5b247e5..6650ed263 100644 --- a/api/@ohos.bundle.installer.d.ts +++ b/api/@ohos.bundle.installer.d.ts @@ -37,6 +37,7 @@ declare namespace installer { /** * Obtains the interface used to install bundle. * @param { AsyncCallback } callback - The callback of getting a list of BundleInstaller objects. + * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @returns { Promise } BundleInstaller object. * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi @@ -108,6 +109,7 @@ declare namespace installer { * @param { InstallParam } installParam - Indicates other parameters required for the uninstall. * @param { AsyncCallback } callback - The callback of uninstalling application result. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. + * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700004 - The specified user ID is not found. * @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled. @@ -126,6 +128,7 @@ declare namespace installer { * @param { InstallParam } installParam - Indicates other parameters required for the uninstall. * @param { AsyncCallback } callback - The callback of uninstalling application result. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. + * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700004 - The specified userId is not existed. * @throws { BusinessError } 17700020 - The specified bundle is pre-installed bundle which cannot be uninstalled. @@ -143,6 +146,7 @@ declare namespace installer { * @param { InstallParam } installParam - Indicates other parameters required for the recover. * @param { AsyncCallback } callback - The callback of recovering application result. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. + * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -159,6 +163,7 @@ declare namespace installer { * @param { InstallParam } installParam - Indicates other parameters required for the recover. * @param { AsyncCallback } callback - The callback of recovering application result. * @throws { BusinessError } 201 - Calling interface without permission 'ohos.permission.INSTALL_BUNDLE'. + * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Input parameters check failed. * @throws { BusinessError } 17700004 - The specified user ID is not found. * @syscap SystemCapability.BundleManager.BundleFramework.Core diff --git a/api/@ohos.bundle.launcherBundleManager.d.ts b/api/@ohos.bundle.launcherBundleManager.d.ts index 7e7960d78..d842e184d 100644 --- a/api/@ohos.bundle.launcherBundleManager.d.ts +++ b/api/@ohos.bundle.launcherBundleManager.d.ts @@ -51,6 +51,7 @@ declare namespace launcherBundleManager { * @param { number } userId - Indicates the id for the user. * @returns { Promise> } the LauncherAbilityInfo object. * @throws {BusinessError} 201 - Verify permission denied. + * @throws {BusinessError} 202 - Permission denied, non-system app called system api. * @throws {BusinessError} 401 - The parameter check failed. * @throws {BusinessError} 801 - Capability not support. * @throws {BusinessError} 17700001 - The specified bundle name is not found. @@ -83,6 +84,7 @@ declare namespace launcherBundleManager { * @param { number } userId - Indicates the id for the user. * @returns { Promise> } the LauncherAbilityInfo object. * @throws {BusinessError} 201 - Verify permission denied. + * @throws {BusinessError} 202 - Permission denied, non-system app called system api. * @throws {BusinessError} 401 - The parameter check failed. * @throws {BusinessError} 801 - Capability not support. * @throws {BusinessError} 17700004 - The specified user ID is not found.