Request and configure a license

更新时间:
复制 MD 格式

Provide the package name and signature

You can add the following code to entry to obtain the required output, and then submit a ticket in the Ticket System to contact Ant Group staff and submit the log.

    let bundleInfo = bundleManager.getBundleInfoForSelfSync(bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_SIGNATURE_INFO)
    let bundleName = bundleInfo.name
    let fingerprint = bundleInfo.signatureInfo.fingerprint
    let appIdentifier = bundleInfo.signatureInfo.appIdentifier
    hilog.info(0, 'tag', "bundleName: " + bundleName)
    hilog.info(0, 'tag', "fingerprint: " + fingerprint)
    hilog.info(0, 'tag', "appIdentifier: " + appIdentifier)

Get the license

You can submit a ticket in the Ticket System to obtain the license, and then store the generated mpaas_licence.properties file in the rawfile folder under resources in entry.