1e41f4b71Sopenharmony_ci# ApplicationInfo
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **ApplicationInfo** module defines the application information. A third-party application can obtain its own application information through [bundleManager.getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself), with **GET_BUNDLE_INFO_WITH_APPLICATION** passed in to [bundleFlags](js-apis-bundleManager.md#bundleflag).
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## ApplicationInfo
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BundleManager.BundleFramework.Core
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci| Name                      | Type                                                        | Read-Only| Optional| Description                                                        |
14e41f4b71Sopenharmony_ci| -------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ |
15e41f4b71Sopenharmony_ci| name                       | string                                                       | Yes  | No  | Application name.<br>**Atomic service API**: This API can be used in atomic services since API version 11.                                                |
16e41f4b71Sopenharmony_ci| description                | string                                                       | Yes  | No  | Description of the application, for example, "description": $string: mainability_description". For details, see the description of the **descriptionResource** field below.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
17e41f4b71Sopenharmony_ci| descriptionId              | number                                                       | Yes  | No  | ID of the application description.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
18e41f4b71Sopenharmony_ci| enabled                    | boolean                                                      | Yes  | No  | Whether the application is enabled. The default value is **true**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
19e41f4b71Sopenharmony_ci| label                      | string                                                       | Yes  | No  | Application name, for example, "label": "$string: mainability_description". For details, see the description of the **labelResource** field below.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
20e41f4b71Sopenharmony_ci| labelId                    | number                                                       | Yes  | No  | ID of the application label.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
21e41f4b71Sopenharmony_ci| icon                       | string                                                       | Yes  | No  | Application icon, for example, "icon": "$media:icon". For details, see the description of the **iconResource** field below.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
22e41f4b71Sopenharmony_ci| iconId                     | number                                                       | Yes  | No  | ID of the application icon.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
23e41f4b71Sopenharmony_ci| process                    | string                                                       | Yes  | No  | Process in which the application runs. If this parameter is not set, the bundle name is used.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
24e41f4b71Sopenharmony_ci| permissions                | Array\<string>                                               | Yes  | No  | Permissions required for accessing the application. The permissions can be obtained by passing in **GET_BUNDLE_INFO_WITH_APPLICATION** and **GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION** to the **bundleFlags** parameter of [getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself).<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
25e41f4b71Sopenharmony_ci| codePath                   | string                                                       | Yes  | No  | Installation directory of the application.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
26e41f4b71Sopenharmony_ci| metadata<sup>(deprecated)<sup>  | Map\<string, Array\<[Metadata](js-apis-bundleManager-metadata.md)>> | Yes  | No  | Metadata of the application. The information can be obtained by passing in **GET_BUNDLE_INFO_WITH_APPLICATION** and **GET_BUNDLE_INFO_WITH_METADATA** to the **bundleFlags** parameter of [getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself). **NOTE**<br>This field is deprecated since API version 10. You are advised to use **metadataArray** instead.|
27e41f4b71Sopenharmony_ci| metadataArray<sup>10+</sup>              | Array\<[ModuleMetadata](#modulemetadata10)> | Yes  | No  | Metadata of the application. The information can be obtained by passing in **GET_BUNDLE_INFO_WITH_APPLICATION** and **GET_BUNDLE_INFO_WITH_METADATA** to the **bundleFlags** parameter of [getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself).<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
28e41f4b71Sopenharmony_ci| removable                  | boolean                                                      | Yes  | No  | Whether the application is removable.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
29e41f4b71Sopenharmony_ci| accessTokenId             | number                                                       | Yes  | No  | Access token ID of the application.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
30e41f4b71Sopenharmony_ci| uid                       | number                                                       | Yes  | No  | UID of the application.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
31e41f4b71Sopenharmony_ci| iconResource              | [Resource](../apis-localization-kit/js-apis-resource-manager.md#resource9) | Yes| No| Resource information of the application icon. The resource information obtained contains the bundle name, module name, and ID of the resource. You can call [getMediaContent](../apis-localization-kit/js-apis-resource-manager.md#getmediacontent9) to obtain the resource details.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
32e41f4b71Sopenharmony_ci| labelResource             | [Resource](../apis-localization-kit/js-apis-resource-manager.md#resource9) | Yes| No| Resource information of the application label. The resource information obtained contains the bundle name, module name, and ID of the resource. You can call [getMediaContent](../apis-localization-kit/js-apis-resource-manager.md#getmediacontent9) to obtain the resource details.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
33e41f4b71Sopenharmony_ci| descriptionResource       | [Resource](../apis-localization-kit/js-apis-resource-manager.md#resource9) | Yes| No| Resource information of the application description. The resource information obtained contains the bundle name, module name, and ID of the resource. You can call [getMediaContent](../apis-localization-kit/js-apis-resource-manager.md#getmediacontent9) to obtain the resource details.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
34e41f4b71Sopenharmony_ci| appDistributionType       | string                                                       | Yes  | No  | Distribution type of the application signing certificate. The options are **app_gallery**, **enterprise**, **os_integration**, and **crowdtesting**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
35e41f4b71Sopenharmony_ci| appProvisionType          | string                                                       | Yes  | No  | Type of the application signing certificate file. The options are **debug** and **release**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
36e41f4b71Sopenharmony_ci| systemApp          | boolean                                                       | Yes  | No  | Whether the application is a system application.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
37e41f4b71Sopenharmony_ci| bundleType                |[bundleManager.BundleType](js-apis-bundleManager.md#bundletype)             | Yes  | No  | Bundle type, which can be **APP** (application) or **ATOMIC_SERVICE** (atomic service).<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
38e41f4b71Sopenharmony_ci| debug<sup>10+</sup>       | boolean                                | Yes  | No  | Whether the application is in debugging mode. The default value is **false**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
39e41f4b71Sopenharmony_ci| dataUnclearable<sup>11+</sup>       | boolean                      | Yes  | No  | Whether the application data is unclearable. The value **true** means that the application data is unclearable, and **false** means the opposite. The default value is **false**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
40e41f4b71Sopenharmony_ci| nativeLibraryPath<sup>12+</sup> | string                                                                     | Yes  | No  | Local library file path of the application.                                                 |
41e41f4b71Sopenharmony_ci| multiAppMode<sup>12+</sup> | [MultiAppMode](#multiappmode12) | Yes  | No  | Multi-app mode.|
42e41f4b71Sopenharmony_ci| appIndex<sup>12+</sup>    | number    | Yes  | No  | Index of an application clone. It takes effect only for cloned applications.|
43e41f4b71Sopenharmony_ci| installSource<sup>12+</sup>    | string    | Yes  | No  | Installation source of the application. **pre-installed** indicates that the application is pre-installed. A value in the form of a bundle name indicates that the application is installed by an application with the given bundle name. **unknown** indicates that the installation source is unknown.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
44e41f4b71Sopenharmony_ci| releaseType<sup>12+</sup>    | string    | Yes  | No  | Release type of the SDK used for application packing. Currently, the SDK release types include Canary, Beta, and Release. Each of the Canary and Beta releases can be distinguished by a sequential number, such as Canary1, Canary2, Beta1, and Beta2. You can compare the SDK release type on which application packaging depends and the OS release type (specified by [deviceInfo.distributionOSReleaseType](../apis-basic-services-kit/js-apis-device-info.md)) to determine the compatibility.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
45e41f4b71Sopenharmony_ci| cloudFileSyncEnabled<sup>12+</sup>    | boolean    | Yes  | No  | Whether device-cloud file synchronization is enabled for the application. The value **true** means that device-cloud file synchronization is enabled, and **false** means the opposite.<br>**Atomic service API**: This API can be used in atomic services since API version 12.|
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci## MultiAppMode<sup>12+</sup>
48e41f4b71Sopenharmony_ciDescribes the multi-app mode.
49e41f4b71Sopenharmony_ci
50e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BundleManager.BundleFramework.Core
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ci**Parameters**
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ci| Name     | Type          | Read-Only| Optional| Description                       |
55e41f4b71Sopenharmony_ci| --------- | -------------- | ---- | ---- | --------------------------- |
56e41f4b71Sopenharmony_ci| multiAppModeType<sup>12+</sup> | bundleManager.MultiAppModeType | Yes| No|  Type of the multi-app mode. |
57e41f4b71Sopenharmony_ci| maxCount<sup>12+</sup> | number  | Yes| No|  Maximum number of accounts that can log in to the application at the same time. |
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci## ModuleMetadata<sup>10+</sup>
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ciDescribes the metadata of a module.
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci **Atomic service API**: This API can be used in atomic services since API version 11.
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ci **System capability**: SystemCapability.BundleManager.BundleFramework.Core
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci| Name     | Type          | Read-Only| Optional| Description                       |
68e41f4b71Sopenharmony_ci| --------- | -------------- | ---- | ---- | --------------------------- |
69e41f4b71Sopenharmony_ci| moduleName<sup>10+</sup>| string         | Yes  | No  | Module name.  |
70e41f4b71Sopenharmony_ci| metadata<sup>10+</sup>  | Array\<[Metadata](js-apis-bundleManager-metadata.md)>      | Yes  | No  | Metadata list of the module.|
71