Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15, 6.1
-
None
-
-
ea4868c49de48eb5fbd129e8cb9df0676754ebf5 (qt/qtbase/dev) a6507ed6f42fd078d0c9f8de12b653c6fa93ad36 (qt/qtbase/6.1)
Description
Android 11 and above enforces the new scoped storage which won't allow Qt to properly manage (read/write) files on Android. The scoped storage was introduced before api 29 but it's being enforced on api 30 so apps need to migrate to the new approach. Android offers a way to opt out of this by using the manifest flag, but this will be ignore starting from api 30.
android:requestLegacyExternalStorage="true"
Qt should look for ways to incorporate these changes and make it easier again to handle files i/o. Also, it's worth mentioning that the Storage Access Framework works with Qt and it allows opening/saving files but requires user interaction, but with the MediaStore api it's possible to manage files without user interaction.
References: