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

Redundant CAMERA and RECORD_AUDIO permissions on Android.

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 6.2.2
    • Multimedia
    • None
    • Android
    • 2022wk40FOQtforAndroid, 2025wk26s2QtforAndroid, 2025wk28s2QtforAndroid, 2025wk34s2QtforAndroid, 2025wk40s2-3QtforAndroid

      I am not sure if it is a proper place to report issues like this here, but it is probably something that theoretically can make QT a bit better.

      Linking multimedia module to an app in CMake, for example, with

      target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Multimedia)
      

      results in the following permissions are automatically added on Android:

      android.permission.CAMERA
      android.permission.RECORD_AUDIO
      

      that can be necessary for applications that uses camera and records audio, but if an app uses multimedia module only for playing sounds with QAudioSink these permissions are redundant and the user can be surprised that his app requires them.

      Why not to add a configuration option to exclude all the staff that requires there permissions from multimedia module? For example, something like:

      configure --multimedia-no-camera --multimedia-no-record-audio
      

      will built QT with a multimedia module that does not require permissions on Android.

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

            lexcaz Alexei Cazacov
            dmitriano Dmitry Efimov
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes