• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ApplicationInfo
2
3The **ApplicationInfo** module provides application information. Unless otherwise specified, the information is obtained through [bundle.getApplicationInfo](js-apis-Bundle.md#bundlegetapplicationinfodeprecated).
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## ApplicationInfo<sup>(deprecated)<sup>
10
11> This API is deprecated since API version 9. You are advised to use [bundleManager-ApplicationInfo](js-apis-bundleManager-applicationInfo.md) instead.
12
13**System capability**: SystemCapability.BundleManager.BundleFramework
14
15| Name                      | Type                                                        | Readable| Writable| Description                                                        |
16| -------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ |
17| name                       | string                                                       | Yes  | No  | Application name.                                            |
18| description                | string                                                       | Yes  | No  | Application description.                                        |
19| descriptionId              | number                                                       | Yes  | No  | ID of the application description.                                |
20| systemApp                  | boolean                                                      | Yes  | No  | Whether the application is a system application. The default value is **false**.                       |
21| enabled                    | boolean                                                      | Yes  | No  | Whether the application is enabled. The default value is **true**.                      |
22| label                      | string                                                       | Yes  | No  | Application label.                                        |
23| labelId                    | string                                                       | Yes  | No  | ID of the application label.                                  |
24| icon                       | string                                                       | Yes  | No  | Application icon.                                            |
25| iconId                     | string                                                       | Yes  | No  | ID of the application icon.                                    |
26| process                    | string                                                       | Yes  | No  | Process in which the application runs. If this parameter is not set, the bundle name is used.                |
27| supportedModes             | number                                                       | Yes  | No  | Modes supported by the application. Currently, only the **drive** mode is defined. This attribute applies only to telematics devices.|
28| moduleSourceDirs           | Array\<string>                                               | Yes  | No  | Relative paths for storing application resources. Do not access resource files by concatenating paths. Use the [resourceManager API](js-apis-resource-manager.md) instead.                              |
29| permissions                | Array\<string>                                               | Yes  | No  | Permissions required for accessing the application.<br>The value is obtained by passing in GET_APPLICATION_INFO_WITH_PERMISSION to [bundle.getApplicationInfo](js-apis-Bundle.md#bundlegetapplicationinfodeprecated).|
30| moduleInfos                | Array\<[ModuleInfo](js-apis-bundle-ModuleInfo.md)>           | Yes  | No  | Application module information.                                        |
31| entryDir                   | string                                                       | Yes  | No  | Path for storing application files. Do not access resource files by concatenating paths. Use the [resourceManager API](js-apis-resource-manager.md) instead.                                    |
32| codePath<sup>8+</sup>      | string                                                       | Yes  | No  | Installation directory of the application. Do not access resource files by concatenating paths. Use the [resourceManager API](js-apis-resource-manager.md) instead.                                        |
33| metaData<sup>8+</sup>      | Map\<string, Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)>> | Yes  | No  | Custom metadata of the application.<br>The value is obtained by passing in GET_APPLICATION_INFO_WITH_METADATA to [bundle.getApplicationInfo](js-apis-Bundle.md#bundlegetapplicationinfodeprecated).|
34| removable<sup>8+</sup>     | boolean                                                      | Yes  | No  | Whether the application is removable.                                    |
35| accessTokenId<sup>8+</sup> | number                                                       | Yes  | No  | Access token ID of the application.                                   |
36| uid<sup>8+</sup>           | number                                                       | Yes  | No  | UID of the application.                                             |
37| entityType                 | string                                                       | Yes  | No  | Type of the application, for example, gaming, social networking, movies, and news.|
38