From c766e45f4815c8e586312ba651721c63183756eb Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Mon, 21 Feb 2022 16:13:45 +0800 Subject: [PATCH] IssueNo: #I4UGDW:delete checkPermission Description:delete checkPermission Sig:SIG_ApplicaitonFramework Feature or Bugfix:BugFix Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.bundle.d.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index f141e049df..183fcd6b89 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -399,18 +399,6 @@ declare namespace bundle { function getApplicationInfo(bundleName: string, bundleFlags: number, userId: number, callback: AsyncCallback) : void; function getApplicationInfo(bundleName: string, bundleFlags: number, userId: number) : Promise; - /** - * Checks whether a specified bundle has been granted a specific permission. - * - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param bundleName Indicates the name of the bundle to check. - * @param permission Indicates the permission to check. - * @return Returns 0 if the bundle has the permission; returns -1 otherwise. - */ - function checkPermission(bundleName: string, permission: string, callback: AsyncCallback): void; - function checkPermission(bundleName: string, permission: string): Promise; - /** * Query the AbilityInfo by the given Want. * -- Gitee