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

Android Qt scoped file access

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Moved
    • Icon: P2: Important P2: Important
    • None
    • 5.15
    • Extras: Android
    • None

      Android enforces restricted file access starting with Android Q which can be turned off (android:requestLegacyExternalStorage="true" in the AndroidManifest.xml) but will be mandatory in Android R in 2020. Qt should somehow provide scoped file access. At the moment we can get scoped file access as follows:

      1. Request file access in a Java method.
      2. Pass the file handle from Java to C++ and use it as a parameter in QFile().

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

            qtandroidteam Qt Android Team
            DanielSt Peter Staab
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes