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

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

XMLWordPrintable

    • Android
    • 2025wk38s2QtforAndroid

       - 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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes