1e41f4b71Sopenharmony_ci# BundleInfo 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **BundleInfo** module defines the bundle information, which can be obtained through [bundle.getBundleInfo](js-apis-Bundle.md#bundlegetbundleinfodeprecated). 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> 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. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci## BundleInfo<sup>(deprecated)<sup> 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleManager-BundleInfo](js-apis-bundleManager-bundleInfo.md) instead. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci **System capability**: SystemCapability.BundleManager.BundleFramework 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci| Name | Type | Read-Only| Optional| Description | 16e41f4b71Sopenharmony_ci| -------------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | 17e41f4b71Sopenharmony_ci| name | string | Yes | No | Bundle name. | 18e41f4b71Sopenharmony_ci| type | string | Yes | No | Bundle type. | 19e41f4b71Sopenharmony_ci| appId | string | Yes | No | ID of the application to which the bundle belongs. | 20e41f4b71Sopenharmony_ci| uid | number | Yes | No | UID of the application to which the bundle belongs. | 21e41f4b71Sopenharmony_ci| installTime | number | Yes | No | Time when the HAP file was installed. | 22e41f4b71Sopenharmony_ci| updateTime | number | Yes | No | Time when the HAP file was updated. | 23e41f4b71Sopenharmony_ci| appInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | Yes | No | Application configuration information. | 24e41f4b71Sopenharmony_ci| 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).| 25e41f4b71Sopenharmony_ci| 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).| 26e41f4b71Sopenharmony_ci| 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).| 27e41f4b71Sopenharmony_ci| vendor | string | Yes | No | Vendor of the bundle. | 28e41f4b71Sopenharmony_ci| versionCode | number | Yes | No | Version number of the bundle. | 29e41f4b71Sopenharmony_ci| versionName | string | Yes | No | Version description of the bundle. | 30e41f4b71Sopenharmony_ci| compatibleVersion | number | Yes | No | Earliest SDK version required for running the bundle. | 31e41f4b71Sopenharmony_ci| targetVersion | number | Yes | No | Latest SDK version required for running the bundle. | 32e41f4b71Sopenharmony_ci| isCompressNativeLibs | boolean | Yes | No | Whether to compress the native library of the bundle. The default value is **true**. | 33e41f4b71Sopenharmony_ci| hapModuleInfos | Array\<[HapModuleInfo](js-apis-bundle-HapModuleInfo.md)> | Yes | No | Module configuration information. | 34e41f4b71Sopenharmony_ci| entryModuleName | string | Yes | No | Name of the entry module. | 35e41f4b71Sopenharmony_ci| cpuAbi | string | Yes | No | CPU and ABI information of the bundle. | 36e41f4b71Sopenharmony_ci| isSilentInstallation | string | Yes | No | Whether the application can be installed in silent mode. | 37e41f4b71Sopenharmony_ci| minCompatibleVersionCode | number | Yes | No | Earliest version compatible with the bundle in the distributed scenario. | 38e41f4b71Sopenharmony_ci| entryInstallationFree | boolean | Yes | No | Whether installation-free is supported for the entry module. | 39e41f4b71Sopenharmony_ci| 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. | 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci## ReqPermissionDetail<sup>(deprecated)<sup> 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [ReqPermissionDetail](js-apis-bundleManager-bundleInfo.md) instead. 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ciProvides the detailed information of the permissions to request from the system. 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci **System capability**: SystemCapability.BundleManager.BundleFramework 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ci| Name | Type | Read-Only| Optional| Description | 52e41f4b71Sopenharmony_ci| --------------------- | ----------------------- | ---- | ---- | ---------------------- | 53e41f4b71Sopenharmony_ci| name | string | No | No | Name of the permission to request. | 54e41f4b71Sopenharmony_ci| reason | string | No | No | Reason for requesting the permission. | 55e41f4b71Sopenharmony_ci| usedScene | [UsedScene](#usedscenedeprecated) | No | No | Application scenario and timing for using the permission.| 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ci## UsedScene<sup>(deprecated)<sup> 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [UsedScene](js-apis-bundleManager-bundleInfo.md) instead. 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ciDescribes the application scenario and timing for using the permission. 64e41f4b71Sopenharmony_ci 65e41f4b71Sopenharmony_ci **System capability**: SystemCapability.BundleManager.BundleFramework 66e41f4b71Sopenharmony_ci 67e41f4b71Sopenharmony_ci| Name | Type | Read-Only| Optional| Description | 68e41f4b71Sopenharmony_ci| --------- | -------------- | ---- | ---- | --------------------------- | 69e41f4b71Sopenharmony_ci| abilities | Array\<string> | No | No | Abilities that use the permission.| 70e41f4b71Sopenharmony_ci| when | string | No | No | Time when the permission is used. | 71