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

Android: QFileInfo::isWritable() returns false erroneously and throws an exception

    XMLWordPrintable

Details

    • Android
    • 42004d245 (dev), 471debef0 (6.8), b87645393 (6.7), fbeb34d58 (tqtc/lts-6.5)
    • 2025Season1QtforAndroid, 2024wk48s3FOQtforAndroid, 2024wk50s3FOQtforAndroid, 2024wk52FOQtforAndroid

    Description

      On Andoid using QFileInfo::isWritable() returns false, even if the user has write permissions and writing files succeeds. Calling the QFileInfo::isWritable() seems to throw an exception as well.

      To reproduce the issue, run the attached example program and use the "Open" button to open native FolderDialog. Select a created directory (for example it has to be: /storage/emulated/0/FilePickerTest).

      Attachments

        1. qtbug_124011.zip
          19.78 MB
        2. qtbug_124011-working.zip
          71 kB
        3. qtbug-124011.log
          16 kB

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              tuomas.vaarala Tuomas Vaarala
              Votes:
              6 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes