1# BundleInfo 2 3The **BundleInfo** module provides bundle information. Unless otherwise specified, all attributes are obtained through **GET_BUNDLE_DEFAULT**. 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8> 9> API version 9 is a canary version for trial use. The APIs of this version may be unstable. 10 11## BundleInfo 12 13 **System capability**: SystemCapability.BundleManager.BundleFramework 14 15| Name | Type | Readable| Writable| Description | 16| --------------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | 17| name | string | Yes | No | Bundle name. | 18| type | string | Yes | No | Bundle type. | 19| appId | string | Yes | No | ID of the application to which the bundle belongs. | 20| uid | number | Yes | No | UID of the application to which the bundle belongs. | 21| installTime | number | Yes | No | Time when the HAP file was installed. | 22| updateTime | number | Yes | No | Time when the HAP file was updated. | 23| appInfo | ApplicationInfo | Yes | No | Application configuration information. | 24| abilityInfos | Array\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)> | Yes | No | Ability configuration information.<br>The value is obtained by passing **GET_BUNDLE_WITH_ABILITIES**.| 25| reqPermissions | Array\<string> | Yes | No | Permissions to request from the system for running the application.<br>The value is obtained by passing **GET_BUNDLE_WITH_REQUESTED_PERMISSION**.| 26| reqPermissionDetails | Array\<[ReqPermissionDetail](#reqpermissiondetail)> | Yes | No | Detailed information of the permissions to request from the system.<br>The value is obtained by passing **GET_BUNDLE_WITH_REQUESTED_PERMISSION**.| 27| vendor | string | Yes | No | Vendor of the bundle. | 28| versionCode | number | Yes | No | Version number of the bundle. | 29| versionName | string | Yes | No | Version description of the bundle. | 30| compatibleVersion | number | Yes | No | Earliest SDK version required for running the bundle. | 31| targetVersion | number | Yes | No | Latest SDK version required for running the bundle. | 32| isCompressNativeLibs | boolean | Yes | No | Whether to compress the native library of the bundle. The default value is **true**. | 33| hapModuleInfos | Array\<[HapModuleInfo](js-apis-bundle-HapModuleInfo.md)> | Yes | No | Module configuration information. | 34| entryModuleName | string | Yes | No | Name of the entry module. | 35| cpuAbi | string | Yes | No | CPU and ABI information of the bundle. | 36| isSilentInstallation | string | Yes | No | Whether the application can be installed in silent mode. | 37| minCompatibleVersionCode | number | Yes | No | Earliest version compatible with the bundle in the distributed scenario. | 38| entryInstallationFree | boolean | Yes | No | Whether installation-free is supported for the entry module. | 39| reqPermissionStates<sup>8+</sup> | Array\<number> | Yes | No | Permission grant state. | 40| extensionAbilityInfo<sup>9+</sup> | Array\<[ExtensionAbilityInfo](js-apis-bundle-ExtensionAbilityInfo.md)> | Yes | No | Extension ability information.<br>The value is obtained by passing **GET_BUNDLE_WITH_EXTENSION_ABILITY**.| 41 42 43 44## ReqPermissionDetail 45 46Provides the detailed information of the permissions to request from the system. 47 48 **System capability**: SystemCapability.BundleManager.BundleFramework 49 50| Name | Type | Readable| Writable| Description | 51| --------------------- | ----------------------- | ---- | ---- | -------------------- | 52| name | string | Yes | Yes | Name of the permission to request. | 53| reason | string | Yes | Yes | Reason for requesting the permission. | 54| usedScene | [UsedScene](#usedscene) | Yes | Yes | Application scenario and timing for using the permission.| 55 56 57 58## UsedScene 59 60Describes the application scenario and timing for using the permission. 61 62 **System capability**: SystemCapability.BundleManager.BundleFramework 63 64| Name | Type | Readable| Writable| Description | 65| --------- | -------------- | ---- | ---- | ------------------------- | 66| abilities | Array\<string> | Yes | Yes | Abilities that use the permission.| 67| when | string | Yes | Yes | Time when the permission is used. | 68