1e41f4b71Sopenharmony_ci# AbilityInfo 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **AbilityInfo** module provides information about an ability. Unless otherwise specified, the information is obtained through [bundle.getAbilityInfo](js-apis-Bundle.md#bundlegetabilityinfodeprecated). 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## AbilityInfo<sup>(deprecated)<sup> 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci> This API is deprecated since API version 9. You are advised to use [bundleManager-AbilityInfo](js-apis-bundleManager-abilityInfo.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| bundleName | string | Yes | No | Bundle name. | 18e41f4b71Sopenharmony_ci| name | string | Yes | No | Ability name. | 19e41f4b71Sopenharmony_ci| label | string | Yes | No | Ability name visible to users. | 20e41f4b71Sopenharmony_ci| description | string | Yes | No | Ability description. | 21e41f4b71Sopenharmony_ci| icon | string | Yes | No | Index of the ability icon resource file. | 22e41f4b71Sopenharmony_ci| descriptionId | number | Yes | No | ID of the ability description. | 23e41f4b71Sopenharmony_ci| iconId | number | Yes | No | ID of the ability icon. | 24e41f4b71Sopenharmony_ci| moduleName | string | Yes | No | Name of the HAP file to which the ability belongs. | 25e41f4b71Sopenharmony_ci| process | string | Yes | No | Process in which the ability runs. If this parameter is not set, the bundle name is used. | 26e41f4b71Sopenharmony_ci| targetAbility | string | Yes | No | Target ability that the ability alias points to.<br>**Model restriction**: This API can be used only in the FA model.| 27e41f4b71Sopenharmony_ci| backgroundModes | number | Yes | No | Background service mode of the ability.<br>**Model restriction**: This API can be used only in the FA model. | 28e41f4b71Sopenharmony_ci| isVisible | boolean | Yes | No | Whether the ability can be called by other bundles. | 29e41f4b71Sopenharmony_ci| formEnabled | boolean | Yes | No | Whether the ability provides the service widget capability.<br>**Model restriction**: This API can be used only in the FA model.| 30e41f4b71Sopenharmony_ci| type | bundle.AbilityType | Yes | No | Ability type.<br>**Model restriction**: This API can be used only in the FA model. | 31e41f4b71Sopenharmony_ci| orientation | [bundle.DisplayOrientation](js-apis-Bundle.md#displayorientationdeprecated) | Yes | No | Ability display orientation. | 32e41f4b71Sopenharmony_ci| launchMode | [bundle.LaunchMode](js-apis-Bundle.md#launchmodedeprecated) | Yes | No | Ability launch mode. | 33e41f4b71Sopenharmony_ci| permissions | Array\<string> | Yes | No | Permissions required for other applications to call the ability.<br>The value is obtained by passing in GET_ABILITY_INFO_WITH_PERMISSION to [bundle.getAbilityInfo](js-apis-Bundle.md#bundlegetabilityinfodeprecated).| 34e41f4b71Sopenharmony_ci| deviceTypes | Array\<string> | Yes | No | Device types supported by the ability. | 35e41f4b71Sopenharmony_ci| deviceCapabilities | Array\<string> | Yes | No | Device capabilities required for the ability. | 36e41f4b71Sopenharmony_ci| readPermission | string | Yes | No | Permission required for reading the ability data.<br>**Model restriction**: This API can be used only in the FA model. | 37e41f4b71Sopenharmony_ci| writePermission | string | Yes | No | Permission required for writing data to the ability.<br>**Model restriction**: This API can be used only in the FA model. | 38e41f4b71Sopenharmony_ci| applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | Yes | No | Application configuration information.<br>The value is obtained by passing in GET_ABILITY_INFO_WITH_APPLICATION to [bundle.getAbilityInfo](js-apis-Bundle.md#bundlegetabilityinfodeprecated).| 39e41f4b71Sopenharmony_ci| uri | string | Yes | No | URI of the ability.<br>**Model restriction**: This API can be used only in the FA model.| 40e41f4b71Sopenharmony_ci| labelId | number | Yes | No | ID of the ability label. | 41e41f4b71Sopenharmony_ci| subType | bundle.AbilitySubType | Yes | No | Subtype of the template that can be used by the ability.<br>**Model restriction**: This API can be used only in the FA model.| 42e41f4b71Sopenharmony_ci| metaData<sup>8+</sup> | Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)> | Yes | No | Metadata of the ability.<br>The value is obtained by passing in GET_ABILITY_INFO_WITH_METADATA to [bundle.getAbilityInfo](js-apis-Bundle.md#bundlegetabilityinfodeprecated).| 43e41f4b71Sopenharmony_ci| enabled<sup>8+</sup> | boolean | Yes | No | Whether the ability is enabled. | 44