Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33218

When <!-- %%INSERT_PERMISSIONS -> is removed it writes nothing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 17.0.0
    • Android Support
    • None
    • Android
    • Android

    Description

       - qt_add_android_permission() is not intended to remove or restrict permissions added by other Qt modules.

      • When you manually remove the `<!-- %%INSERT_PERMISSIONS ->` placeholder from the AndroidManifest.xml file, the expectation is that Qt will not add any of its default module permissions.
      • Only the permissions explicitly added via qt_add_android_permission() should appear in the final manifest. However, the observed behavior is that no permissions are being added, even those specified with the function call.

      The suspected cause is a bug in the androiddeployqt tool. It seems to first create a combined list of permissions (evaluating whether to use the default or the user-defined permissive version) and then checks for the `` placeholder. Because the placeholder is missing, the tool ends up writing nothing from its pre-compiled list to the manifest.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            portale Alessandro Portale
            sheree_anne Sheree Morphett
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes