• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AppProvisionInfo
2
3The **AppProvisionInfo** module provides information in the [HarmonyAppProvision configuration file](../../security/app-provision-structure.md). The information can be obtained through [getAppProvisionInfo](js-apis-bundleManager.md#bundlemanagergetappprovisioninfo10).
4
5> **NOTE**
6> The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
7
8## AppProvisionInfo
9
10**System capability**: SystemCapability.BundleManager.BundleFramework.Core
11
12**System API**: This is a system API.
13
14| Name                     | Type  | Readable| Writable| Description                |
15| ------------------------- | ------ | ---- | ---- | -------------------- |
16| versionCode              | number | Yes  | No  | Version number of the configuration file.|
17| versionName              | string | Yes  | No  | Version name of the configuration file. |
18| uuid                     | string | Yes  | No  | UUID in the configuration file.|
19| type                     | string | Yes  | No  | Type of the configuration file, which can be **debug** or **release**.|
20| appDistributionType      | string | Yes  | No  | Distribution type in the configuration file, which can be **app_gallery**, **enterprise**, **os_integration**, or **crowdtesting**.|
21| validity                 | [Validity](#validity) | Yes  | No  | Validity period in the configuration file.|
22| developerId              | string | Yes  | No  | Developer ID in the configuration file.|
23| certificate              | string | Yes  | No  | Certificate public key in the configuration file.|
24| apl                      | string | Yes  | No  | APL in the configuration file, which can be **normal**, **system_basic**, or **system_core**.|
25| issuer                      | string | Yes  | No  | Issuer name in the configuration file.|
26
27## Validity
28
29**System capability**: SystemCapability.BundleManager.BundleFramework.Core
30
31**System API**: This is a system API.
32
33| Name                     | Type  | Readable| Writable| Description                |
34| ------------------------- | ------ | ---- | ---- | -------------------- |
35| notBefore                 | number | Yes  | No  | Earliest validity date of the configuration file.|
36| notAfter                  | number | Yes  | No  | Latest validity date of the configuration file.|
37