1# BundleInfo 2 3The **BundleInfo** module defines the bundle information, which can be obtained through [bundle.getBundleInfo](js-apis-Bundle.md#bundlegetbundleinfodeprecated). 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## BundleInfo<sup>(deprecated)<sup> 10 11> This API is deprecated since API version 9. You are advised to use [bundleManager-BundleInfo](js-apis-bundleManager-bundleInfo.md) instead. 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](js-apis-bundle-ApplicationInfo.md) | 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 in GET_BUNDLE_WITH_ABILITIES to [bundle.getBundleInfo](js-apis-Bundle.md#bundlegetbundleinfodeprecated).| 25| reqPermissions | Array\<string> | Yes | No | Permissions to request from the system for running the application.<br>The value is obtained by passing in GET_BUNDLE_WITH_REQUESTED_PERMISSION to [bundle.getBundleInfo](js-apis-Bundle.md#bundlegetbundleinfodeprecated).| 26| reqPermissionDetails | Array\<[ReqPermissionDetail](#reqpermissiondetaildeprecated)> | Yes | No | Detailed information of the permissions to request from the system.<br>The value is obtained by passing in GET_BUNDLE_WITH_REQUESTED_PERMISSION to [bundle.getBundleInfo](js-apis-Bundle.md#bundlegetbundleinfodeprecated).| 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. The value **0** means that the request is successful, and **-1** means the opposite. | 40 41 42 43## ReqPermissionDetail<sup>(deprecated)<sup> 44 45> This API is deprecated since API version 9. You are advised to use [ReqPermissionDetail](js-apis-bundleManager-bundleInfo.md) instead. 46 47Provides the detailed information of the permissions to request from the system. 48 49 **System capability**: SystemCapability.BundleManager.BundleFramework 50 51| Name | Type | Readable| Writable| Description | 52| --------------------- | ----------------------- | ---- | ---- | ---------------------- | 53| name | string | Yes | Yes | Name of the permission to request. | 54| reason | string | Yes | Yes | Reason for requesting the permission. | 55| usedScene | [UsedScene](#usedscenedeprecated) | Yes | Yes | Application scenario and timing for using the permission.| 56 57 58 59## UsedScene<sup>(deprecated)<sup> 60 61> This API is deprecated since API version 9. You are advised to use [UsedScene](js-apis-bundleManager-bundleInfo.md) instead. 62 63Describes the application scenario and timing for using the permission. 64 65 **System capability**: SystemCapability.BundleManager.BundleFramework 66 67| Name | Type | Readable| Writable| Description | 68| --------- | -------------- | ---- | ---- | --------------------------- | 69| abilities | Array\<string> | Yes | Yes | Abilities that use the permission.| 70| when | string | Yes | Yes | Time when the permission is used. | 71