diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 1a8ae9a8a..586e586b1 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -1759,6 +1759,38 @@ declare namespace bundleManager { */ function getAppProvisionInfo(bundleName: string, userId?: number): Promise; + /** + * 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. * diff --git a/api/@ohos.bundle.installer.d.ts b/api/@ohos.bundle.installer.d.ts index e34b612d0..5c12f691f 100644 --- a/api/@ohos.bundle.installer.d.ts +++ b/api/@ohos.bundle.installer.d.ts @@ -47,38 +47,6 @@ declare namespace installer { */ function getBundleInstaller(): Promise; - /** - * 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. *