Android: Update qtprovider_paths.xml file

The qtprovider_paths.xml is used by FileProvider[0]
The file defines the different file locations that can be used for
sharing content (with other apps). Previously it used only the
files-path type (for private files inside internal storage).

According: qstandardpaths_android.cpp file, we need much more here.

This commit adds more file types to qtprovider_paths.xml

[0]https://developer.android.com/reference/androidx/core/content/FileProvider

Task-number: QTBUG-133702
Pick-to: 6.9 6.9.0 6.8 6.8.3
Change-Id: I29c8eb3d00490e9127d0aa646b4c50643b5f51ac
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Bartlomiej Moskal 2025-03-10 11:44:26 +01:00
parent 1185f651e3
commit 4a54c32e6b

View File

@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<!-- For getFilesDirectory() -->
<files-path name="files_path" path="/"/>
<!-- For getExternalStorageDirectory() -->
<external-path name="external_path" path="/"/>
<!-- For getExternalFilesDir() -->
<external-files-path name="external_files_path" path="/"/>
<!-- For getExternalCacheDir() -->
<external-cache-path name="external_cache_path" path="/"/>
</paths>