• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ApplicationInfo
2
3The **ApplicationInfo** module provides application information. Unless otherwise specified, all attributes are obtained through **GET_BUNDLE_DEFAULT**.
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>  API version 9 is a canary version for trial use. The APIs of this version may be unstable.
10
11## ApplicationInfo
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  | Application description ID.                                            |
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  | Application label ID. |
24| icon                       | string                                                       | Yes  | No  | Application icon.                                              |
25| iconId | string                                                       | Yes  | No  | Application icon ID. |
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  | Running modes supported by the application.                                      |
28| moduleSourceDirs           | Array\<string>                                               | Yes  | No  | Relative paths for storing application resources.                                |
29| permissions                | Array\<string>                                               | Yes  | No  | Permissions required for accessing the application.<br>The value is obtained by passing **GET_APPLICATION_INFO_WITH_PERMISSION**.|
30| moduleInfos                | Array\<[ModuleInfo](js-apis-bundle-ModuleInfo.md)>           | Yes  | No  | Application module information.                                          |
31| entryDir                   | string                                                       | Yes  | No  | Path for storing application files.                                      |
32| codePath<sup>8+</sup>      | string                                                       | Yes  | No  | Installation directory of the application.                                          |
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 **GET_APPLICATION_INFO_WITH_METADATA**.|
34| metadata<sup>9+</sup>      | Map\<string, Array\<[Metadata](js-apis-bundle-Metadata.md)>> | Yes  | No  | Metadata of the application.<br>The value is obtained by passing **GET_APPLICATION_INFO_WITH_METADATA**.|
35| removable<sup>8+</sup>     | boolean                                                      | Yes  | No  | Whether the application is removable.                                      |
36| accessTokenId<sup>8+</sup> | number                                                       | Yes  | No  | Access token ID of the application.                                     |
37| uid<sup>8+</sup>           | number                                                       | Yes  | No  | UID of the application.                                               |
38| entityType<sup>8+</sup>    | string                                                       | Yes  | No  | Entity type of the application.                                          |
39