AppProvisionInfo (System API)
The module provides information in the HarmonyAppProvision configuration file. The information can be obtained through getAppProvisionInfo.
NOTE
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.
The APIs provided by this module are system APIs.
Modules to Import
import { bundleManager } from '@kit.AbilityKit';
AppProvisionInfo
System capability: SystemCapability.BundleManager.BundleFramework.Core
System API: This is a system API.
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| versionCode | number | Yes | No | Version number of the configuration file. |
| versionName | string | Yes | No | Version name of the configuration file. |
| uuid | string | Yes | No | UUID in the configuration file. |
| type | string | Yes | No | Type of the configuration file, which can be debug or release. |
| appDistributionType | string | Yes | No | Distribution type in the configuration file. |
| validity | Validity | Yes | No | Validity period in the configuration file. |
| developerId | string | Yes | No | Developer ID in the configuration file. |
| certificate | string | Yes | No | Certificate information in the configuration file. |
| apl | string | Yes | No | APL in the configuration file, which can be normal, system_basic, or system_core. |
| issuer | string | Yes | No | Issuer name in the configuration file. |
| appIdentifier11+ | string | Yes | No | Unique ID of the application. For details, see What Is appIdentifier. |
| organization12+ | string | Yes | No | Organization of the application. |
| bundleName23+ | string | Yes | Yes | Bundle name of the application. |
Validity
System capability: SystemCapability.BundleManager.BundleFramework.Core
System API: This is a system API.
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| notBefore | number | Yes | No | Start time of the validity period of the configuration file. |
| notAfter | number | Yes | No | End time of the validity period of the configuration file. |