From 18826f4a1c504033c16e4079116ca80cbf6716a5 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Tue, 18 Jan 2022 11:48:02 +0800 Subject: [PATCH] add accessTokenId and reqPermissionStates Signed-off-by: wangtiantian --- api/@ohos.bundle.d.ts | 3 ++- api/bundle/applicationInfo.d.ts | 11 +++++++++-- api/bundle/bundleInfo.d.ts | 7 +++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index cbdab0cafc..52be838b03 100755 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -258,7 +258,8 @@ declare namespace bundle { STATUS_INSTALL_FAILURE_DOWNLOAD_FAILED = 0x0C, STATUS_RECOVER_FAILURE_INVALID = 0x0D, STATUS_ABILITY_NOT_FOUND = 0x40, - STATUS_BMS_SERVICE_ERROR = 0x41 + STATUS_BMS_SERVICE_ERROR = 0x41, + STATUS_GRANT_REQUEST_PERMISSIONS_FAILED = 0x43, } /** diff --git a/api/bundle/applicationInfo.d.ts b/api/bundle/applicationInfo.d.ts index d57fbd7bc8..ad0f33ad84 100644 --- a/api/bundle/applicationInfo.d.ts +++ b/api/bundle/applicationInfo.d.ts @@ -148,12 +148,19 @@ export interface ApplicationInfo { * @since 8 * @SysCap SystemCapability.Appexecfwk */ - readonly metaData: Map>; + readonly metaData: Map>; /** * @default Indicates whether or not this application may be removable * @since 8 * @SysCap SystemCapability.Appexecfwk */ - readonly removable: boolean; + readonly removable: boolean; + + /** + * @default Indicates the accessToken id of the application + * @since 8 + * @SysCap SystemCapability.Appexecfwk + */ + readonly accessTokenId: number; } \ No newline at end of file diff --git a/api/bundle/bundleInfo.d.ts b/api/bundle/bundleInfo.d.ts index 6353eaef99..5c4daf73ba 100644 --- a/api/bundle/bundleInfo.d.ts +++ b/api/bundle/bundleInfo.d.ts @@ -234,4 +234,11 @@ export interface BundleInfo { * @SysCap SystemCapability.Appexecfwk */ readonly entryInstallationFree: boolean; + + /** + * @default Indicates the grant status of required permissions + * @since 8 + * @SysCap SystemCapability.Appexecfwk + */ + readonly reqPermissionStates: Array; } -- Gitee