Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138568

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

    XMLWordPrintable

Details

    • 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

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              sheree_anne Sheree Morphett
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes