• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ApplicationInfo
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The module provides application information. Unless otherwise specified, the information is obtained through [bundle.getApplicationInfo](js-apis-Bundle.md#bundlegetapplicationinfodeprecated).
10
11> **NOTE**
12>
13> 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.
14>
15> The APIs of this module are deprecated since API version 9. You are advised to use [bundleManager-ApplicationInfo](js-apis-bundleManager-applicationInfo.md) instead.
16
17## ApplicationInfo<sup>(deprecated)<sup>
18
19This API is deprecated since API version 9. You are advised to use [bundleManager-ApplicationInfo](js-apis-bundleManager-applicationInfo.md#applicationinfo-1) instead.
20
21**System capability**: SystemCapability.BundleManager.BundleFramework
22
23| Name                      | Type                                                        | Read-Only| Optional| Description                                                        |
24| -------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ |
25| name                       | string                                                       | Yes  | No  | Application name.                                            |
26| description                | string                                                       | Yes  | No  | Application description.                                        |
27| descriptionId              | number                                                       | Yes  | No  | ID of the application description.                                |
28| systemApp                  | boolean                                                      | Yes  | No  | Whether the application is a system application. **true** if yes, **false** otherwise.                       |
29| enabled                    | boolean                                                      | Yes  | No  | Whether the application is enabled. **true** if enabled, **false** otherwise.                      |
30| label                      | string                                                       | Yes  | No  | Application label.                                        |
31| labelId                    | string                                                       | Yes  | No  | ID of the application label.                                  |
32| icon                       | string                                                       | Yes  | No  | Application icon.                                            |
33| iconId                     | string                                                       | Yes  | No  | ID of the application icon.                                    |
34| process                    | string                                                       | Yes  | No  | Process name.                |
35| supportedModes             | number                                                       | Yes  | No  | Modes supported by the application. Currently, only the **drive** mode is defined. This attribute applies only to telematics devices.|
36| moduleSourceDirs           | Array\<string>                                               | Yes  | No  | Relative paths for storing application resources. Do not access resource files using concatenated paths. Use [@ohos.resourceManager](../apis-localization-kit/js-apis-resource-manager.md) instead.                              |
37| 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).|
38| moduleInfos                | Array\<[ModuleInfo](js-apis-bundle-ModuleInfo.md)>           | Yes  | No  | Application module information.                                        |
39| entryDir                   | string                                                       | Yes  | No  | Path for storing application files. Do not access resource files using concatenated paths. Use [@ohos.resourceManager](../apis-localization-kit/js-apis-resource-manager.md) instead.                                    |
40| codePath<sup>8+</sup>      | string                                                       | Yes  | No  | Installation directory of the application. Do not access resource files using concatenated paths. Use [@ohos.resourceManager](../apis-localization-kit/js-apis-resource-manager.md) instead.                                        |
41| 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).|
42| removable<sup>8+</sup>     | boolean                                                      | Yes  | No  | Whether the application is removable. **true** if removable, **false** otherwise.                                    |
43| accessTokenId<sup>8+</sup> | number                                                       | Yes  | No  | Access token ID of the application.                                   |
44| uid<sup>8+</sup>           | number                                                       | Yes  | No  | UID of the application.                                             |
45| entityType                 | string                                                       | Yes  | No  | Type of the application, for example, gaming, social networking, movies, and news.|
46