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:
Attachments
For Gerrit Dashboard: QTBUG-92239 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
342255,1 | Add legacy external storage access flag | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: NEW | 0 | 0 |
339903,3 | Add legacy external storage access flag | dev | qt/qtbase | Status: MERGED | +2 | 0 |
342253,2 | Add legacy external storage access flag | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |