Location>code7788 >text

Hongmeng NEXT app uploading and distribution steps in detail

Popularity:488 ℃/2024-10-25 15:14:48

Hello everyone, I'm V Brother. Today's post is to talk about HarmonyOS NEXT app shelves. When you have finished developing and debugging HarmonyOS apps/meta services, you can go to AppGallery Connect to apply for shelving, and after Huawei's review and approval, users can get your HarmonyOS apps/meta services in Huawei App Market.

HarmonyOS will ensure the integrity of the application through digital certificates and Profile files and other signature information. HarmonyOS apps/meta-services that need to be shelved must pass the signature verification, so you need to complete the signature operation before shelving.

1. Generate key and certificate request files

  1. Open DevEco Studio and select "Build > Generate Key and CSR" from the menu.
  2. Key Store File can click "Choose Existing" to choose an existing key store file (p12 file with keys stored), skip to step 4 to continue configuration; if there is no key store file, click "New If there is no keystore file, click "New" to jump to step 3 to create it.
  3. In the "Create Key Store" interface, fill in the key store information and click "OK".
  • Key Store File: Set the key store file storage path and fill in the p12 file name.
  • Password: Set the keystore password, which must be a combination of two or more characters from uppercase letters, lowercase letters, numbers and special symbols, and at least 8 bits in length. Please remember this password, it is needed for subsequent signature configuration.
  • Confirm Password: Re-enter the keystore password.
  1. In the "Generate Key and CSR" screen, continue to fill in the key information and click "Next".
  • Alias: the alias information of the key, used to identify the key name. Please remember this alias, it will be needed for subsequent signing configurations.
  • Password: The password corresponding to the key, which is consistent with the password of the keystore and does not need to be entered manually.
  • Validity: the validity period of the certificate, it is recommended to set it to 25 years and above, covering the complete lifecycle of the meta-service.
  • Certificate: Enter basic information about the certificate, such as organization, city or region, and country code.
  1. In the "Generate Key and CSR" interface, set the CSR file storage path and CSR file name, and click "Finish".
  2. After the CSR file is successfully created, the generated keystore file (.p12) and certificate request file (.csr) will be fetched under the storage path.

2. Apply for a certificate of publication

  1. log inAppGallery ConnectSelect "Users and Access".
  2. Select "Certificate Management" in the left navigation bar, enter the "Certificate Management" page, and click "Add Certificate".

  1. Fill in the relevant information in the "Add Certificate" screen and click "Submit".

  1. When the certificate is successfully applied for, the certificate contents are displayed on the "Certificate management" screen.
  • Click "Download" to save the generated certificate locally.
  • Each account can apply for a maximum of 1 publishing certificate. If the certificate has expired or is not needed, click "Revoke" to delete the certificate.

3. Apply for the release of the Profile

  1. log inAppGallery ConnectSelect "My Projects".
  2. Find the corresponding project and click on the meta-service to be published in the project card.
  3. Navigate to "HarmonyOS Applications > HAP Provision Profile Management", enter the "Manage HAP Provision Profile" page, and click "Add". "Add".

  1. Fill in the information on the "HarmonyAppProvision Information" screen and click "Submit".

  1. If the application is successful, you can view the profile information on the "Manage HAP Provision Profile" screen. Click "Download" to download the file locally.

4. Configure signature information

  1. Open DevEco Studio and select "File > Project Structure" to enter the "Project Structure" interface.
  2. Navigate to "Project", click the "Signing Configs" tab, fill in the relevant information and click "OK".
    • Store File: The keystore file, select the .p12 file generated when generating the key and certificate request files.
    • Store Password: The keystore password, which needs to be consistent with the keystore password set when generating the key and certificate request file.
    • Key alias: the alias information of the key, which should be consistent with the alias set when generating the key and certificate request file.
    • Key password: the password of the key, which should be consistent with the password set when generating the key and certificate request file.
    • Sign alg: fixed to "SHA256withECDSA".
    • Profile file: Select the .p7b file downloaded when applying to publish a Profile.
    • Certpath file: Select the .cer file that was downloaded when you applied to publish the Profile.

5. Compile and package

  1. Open DevEco Studio, menu select "Build > Build Hap(s)/APP(s) > Build APP(s)".
  2. Waiting for the compilation to build the signed HarmonyOS app/meta-service, after the compilation is complete, the packages for shelving are available in the project directory build > outputs > default directory.

6. Shelf HarmonyOS apps/meta services

  1. log inAppGallery ConnectSelect "My Applications".

  2. Click on the "HarmonyOS" tab on the first page of the app list.

  3. Click on the application/meta service to be published and select the "Application Information" menu in the left navigation bar.

  4. Fill in the basic information of the application, such as language, application name, application description, etc., upload the application icon, and click "Save" after all the configurations are completed.

  5. Fill in the version information, such as release country or region, upload software package, submit qualification materials, etc., all configurations are complete, click on the upper right corner of the "submit for review". Wait for the audit result.