Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80407 Improve Android functionality
  3. QTBUG-81717

QStandardPaths::writableLocation() should request external storage permission on Android

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Won't Do
    • P2: Important
    • 5.15.0 Beta1
    • Core: I/O
    • None
    • Android

    Description

      When using external storage paths on Android via QStandardPaths, READ/WRITE_EXTERNAL_STORAGE permission should be requested on runtime. This should be done already by the module and not manually by the user.

      UPDATE: 

      Requesting permissions with requestPermissionsSync() could cause the device to hang, the app becomes unresponsive (ANR). The issue is not fixed yet, that's why it's blocking this change to go forward. That's, for the time being, we documented the need to request permissions by the user, if using QStandardPaths::writableLocations() in change https://codereview.qt-project.org/c/qt/qtbase/+/290865.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-81717
          # Subject Branch Project Status CR V

          Activity

            People

              assam Assam Boudjelthia
              assam Assam Boudjelthia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes