From 64e0de6e4512b37f6ceb63a5e02db09fa1e41781 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Wed, 3 Aug 2022 16:56:59 +0800 Subject: [PATCH 1/2] IssueNo: :bms add interface Description:bms add interface Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.bundle.d.ts | 28 ++++++++++++++++++++-------- api/bundle/applicationInfo.d.ts | 7 +++++++ 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 11ebcb70bd..41cf071028 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -907,27 +907,39 @@ declare namespace bundle { * * @since 9 * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. - * @param status Indicates the disposed status. - * @return Returns the disposed status of a specified bundle. + * @param appId Indicates the appId of the application. + * @param disposedWant Indicates the disposed want. * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @systemapi Hide this for inner system use */ - function setDisposedStatus(bundleName: string, status: number, callback: AsyncCallback): void; - function setDisposedStatus(bundleName: string, status: number): Promise; + function setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback): void; + function setDisposedStatus(appId: string, disposedWant: Want): Promise; /** * Obtains the disposed status of a specified bundle. * * @since 9 * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the bundle name of the application. + * @param appId Indicates the appId of the application. + * @return Returns the disposed status of a specified bundle. + * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS + * @systemapi Hide this for inner system use + */ + function getDisposedStatus(appId: string, callback: AsyncCallback): void; + function getDisposedStatus(appId: string): Promise; + + /** + * Delete the disposed status of a specified bundle. + * + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @param appId Indicates the appId of the application. * @return Returns the disposed status of a specified bundle. * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @systemapi Hide this for inner system use */ - function getDisposedStatus(bundleName: string, callback: AsyncCallback): void; - function getDisposedStatus(bundleName: string): Promise; + function deleteDisposedStatus(appId: string, callback: AsyncCallback): void; + function deleteDisposedStatus(appId: string): Promise; /** * Obtains configuration information about an application. diff --git a/api/bundle/applicationInfo.d.ts b/api/bundle/applicationInfo.d.ts index 3219bbd647..713816bcf8 100644 --- a/api/bundle/applicationInfo.d.ts +++ b/api/bundle/applicationInfo.d.ts @@ -220,4 +220,11 @@ export interface ApplicationInfo { * @syscap SystemCapability.BundleManager.BundleFramework */ readonly appProvisionType: string; + + /** + * @default Indicates whether the application type is debug + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly debug: boolean; } -- Gitee From b486d928d4d0b49cf93ad10bba3b665ec7167649 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Fri, 12 Aug 2022 01:14:26 +0000 Subject: [PATCH 2/2] IssueNo: :bms add interface Description:bms add interface Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.bundle.d.ts | 9 ++++----- api/bundle/applicationInfo.d.ts | 7 ------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 41cf071028..c5dc6f9b9d 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -903,7 +903,7 @@ declare namespace bundle { function getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise>; /** - * Set the disposed status of a specified bundle. + * Set the disposed status of a specified application. * * @since 9 * @syscap SystemCapability.BundleManager.BundleFramework @@ -916,12 +916,12 @@ declare namespace bundle { function setDisposedStatus(appId: string, disposedWant: Want): Promise; /** - * Obtains the disposed status of a specified bundle. + * Obtains the disposed status of a specified application. * * @since 9 * @syscap SystemCapability.BundleManager.BundleFramework * @param appId Indicates the appId of the application. - * @return Returns the disposed status of a specified bundle. + * @return Returns the disposed status of a specified application. * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @systemapi Hide this for inner system use */ @@ -929,12 +929,11 @@ declare namespace bundle { function getDisposedStatus(appId: string): Promise; /** - * Delete the disposed status of a specified bundle. + * Delete the disposed status of a specified application. * * @since 9 * @syscap SystemCapability.BundleManager.BundleFramework * @param appId Indicates the appId of the application. - * @return Returns the disposed status of a specified bundle. * @permission ohos.permission.MANAGE_DISPOSED_APP_STATUS * @systemapi Hide this for inner system use */ diff --git a/api/bundle/applicationInfo.d.ts b/api/bundle/applicationInfo.d.ts index 713816bcf8..3219bbd647 100644 --- a/api/bundle/applicationInfo.d.ts +++ b/api/bundle/applicationInfo.d.ts @@ -220,11 +220,4 @@ export interface ApplicationInfo { * @syscap SystemCapability.BundleManager.BundleFramework */ readonly appProvisionType: string; - - /** - * @default Indicates whether the application type is debug - * @since 9 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly debug: boolean; } -- Gitee