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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes