IssueNo:#I7FIXW

Description:modify api
Sig:SIG_ApplicaitonFramework
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
wangtiantian 2023-06-24 15:39:20 +08:00
parent 612f56d017
commit 23da77f244
2 changed files with 32 additions and 32 deletions

View File

@ -1759,6 +1759,38 @@ declare namespace bundleManager {
*/
function getAppProvisionInfo(bundleName: string, userId?: number): Promise<AppProvisionInfo>;
/**
* Obtains the distribution type specified during bundle installation.
*
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
* @param { string } bundleName - Indicates the application bundle name to be queried.
* @returns { string } The specified distribution type.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 401 - Input parameters check failed.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
function getSpecifiedDistributionType(bundleName: string): string;
/**
* Obtains the additional information during bundle installation.
*
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
* @param { string } bundleName - Indicates the application bundle name to be queried.
* @returns { string } The additional information.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 401 - Input parameters check failed.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
function getAdditionalInfo(bundleName: string): string;
/**
* Obtains configuration information about an application.
*

View File

@ -47,38 +47,6 @@ declare namespace installer {
*/
function getBundleInstaller(): Promise<BundleInstaller>;
/**
* Obtains the distribution type specified during bundle installation.
*
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
* @param { string } bundleName - Indicates the application bundle name to be queried.
* @returns { string } The specified distribution type.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 401 - Input parameters check failed.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
function getSpecifiedDistributionType(bundleName: string): string;
/**
* Obtains the additional information during bundle installation.
*
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
* @param { string } bundleName - Indicates the application bundle name to be queried.
* @returns { string } The additional information.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Permission denied, non-system app called system api.
* @throws { BusinessError } 401 - Input parameters check failed.
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10
*/
function getAdditionalInfo(bundleName: string): string;
/**
* Bundle installer interface, include install uninstall recover.
*