Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.15, 6.1
-
Fix Version/s: 6.1.0 Beta3, 6.2.0 Alpha
-
Component/s: Core: I/O
-
Labels:None
-
Platform/s:
-
Commits: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: