AppProvisionInfo

The AppProvisionInfo 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.

AppProvisionInfo

System capability: SystemCapability.BundleManager.BundleFramework.Core

System API: This is a system API.

Name Type Readable Writable 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, which can be app_gallery, enterprise, os_integration, or crowdtesting.
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 public key 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.

Validity

System capability: SystemCapability.BundleManager.BundleFramework.Core

System API: This is a system API.

Name Type Readable Writable Description
notBefore number Yes No Earliest validity date of the configuration file.
notAfter number Yes No Latest validity date of the configuration file.