Hi,

Is anyone aware of changes to the way that Android filesystem works and how Qt 
interacts with it?

I’ve been writing to QStandardPaths::DocumentLocations without any issues 
until. However, on some newer devices, it fails to open files for writing. One 
example is Samsung Tab A (SM-T500)

It seems though that using android:requestLegacyExternalStorage=“true” seems to 
fix the problem but this solution will not last long because it seems it will 
be ignored when the app targets API 30 (Android 11):

https://developer.android.com/training/data-storage/use-cases 
<https://developer.android.com/training/data-storage/use-cases>

Caution: After you update your app to target Android 11 (API level 30), the 
system ignores the requestLegacyExternalStorage attribute 
<https://developer.android.com/about/versions/11/privacy/storage#scoped-storage>
 when your app is running on Android 11 devices, so your app must be ready to 
support scoped storage and to migrate app data 
<https://developer.android.com/training/data-storage/use-cases#migrate-legacy-storage>
 for users on those devices.

Is there any common knowledge about this? 

Thanks!

Regards,

Nuno

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to