DEV Community

HarmonyOS
HarmonyOS

Posted on

[Smart Watch][API 6]When uploading an app package to the app market, a verification prompt indicates inconsistent permissions...

Read the original article:[Smart Watch] [API 6] When uploading an app package to the app market, a verification prompt indicates inconsistent permissions, failed to be uploaded

Issue

When uploading an app package to the app market, a verification prompt indicates inconsistent permissions, preventing the app package from being uploaded.

Reason

The .p7b file generated by a third-party vendor has requested the restricted permissions ohos.permission.READ_CONTACTS and ohos.permission.WRITE_CONTACTS. However, these permissions are neither actually used in the app nor configured in the config.json file. Therefore, during the app package upload process, the verification prompts an inconsistency in permissions, leading to a failed upload of the app package.

Solution

Regenerate the .p7b file without selecting the two restricted permissions, ohos.permission.READ_CONTACTS and ohos.permission.WRITE_CONTACTS. The .cer file remains unchanged.

Written by Jeorge Kiryienko

Top comments (0)