• 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. A resource file cannot be accessed by combining paths. Use [Resource Manager](js-apis-resource-manager.md) to access it.                            |
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. A resource file cannot be accessed by combining paths. Use [Resource Manager](js-apis-resource-manager.md) to access it.                               |
32| codePath<sup>8+</sup>      | string                                                                 | Yes  | No  | Installation directory of the application. A resource file cannot be accessed by combining paths. Use [Resource Manager](js-apis-resource-manager.md) to access it.                                 |
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<sup>8+</sup>    | string                                                                 | Yes  | No  | Category of the application, which can be **game**, **media**, **communication**, **news**, **travel**, **utility**, **shopping**, **education**, **kids**, **business**, and **photography**.|
38