diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index f141e049dfdd620566983f8504fb2e28af562f9d..183fcd6b89c158b9032ea388213251e558ecf920 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. *