Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.0 Beta2
-
None
-
Android 13, API 33
-
-
d3508d48c (dev), a96e0eddd (6.8), ce284c7fd (6.7)
-
2024wk16FOQtforAndroid, 2024wk20s2FOQtforAndroid, 2024wk24s2FOQtforAndroid, 2024wk26s2FOQtforAndroid, 2024wk28s2FOQtforAndroid, 2024wk30s2FOQtforAndroid, 2024wk32s2FOQtforAndroid, 2024wk34s2FOQtforAndroid
Description
With Qt 6.6 QDesktopServices is supported using qtprovider (FileProvider).
This works great !
In some Apps I'm already using a custom FileProvider to share Files with other Apps. This worked well in 5.15.
Now in 6.6 I have both FileProviders in Android Manifest:
- android:authorities="${applicationId}.qtprovider"
- android:authorities="org.ekkescorner.examples.sharex.fileprovider"
and also metadata in XML Resource with different FilePaths:
- for qtprovider I changed file path from "/" to: "my_special_files/" to avoid any overlapping pathes
- my custom FileProvider uses file path "share_example_x_files/".
QDesktopServices works well for files inside "my_special_files/".
Trying to share Files lists Android Chooser with valid target Apps for VIEW, EDIT or SEND. But when I'm selecting an App - per ex. Google Files, my provided File cannot be displayed, because of an error:
The authority org.ekkescorner.examples.sharex.fileprovider does not match the one of the contentProvider: org.ekkescorner.examples.sharex.qtprovider at android.content.ContentProvider.validateIncomingAuthority(ContentProvider.java:2568) at android.content.ContentProvider.validateIncomingUri(ContentProvider.java:2583) at android.content.ContentProvider$Transport.query(ContentProvider.java:244) at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:107) at android.os.Binder.execTransactInternal(Binder.java:1280) at android.os.Binder.execTransact(Binder.java:1244)
I disabled the qtprovider in Manifest - then sharing works as before, but then of course QDesktopServices isn't working. I would prefer to be able to use both: File Sharing and QDesktopServices
Have described the issue in more detail: https://t1p.de/ekkeCustomFileProvider
Attachments
For Gerrit Dashboard: QTBUG-117417 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
574203,15 | Android: Support custom FileProvider in openUrl | dev | qt/qtbase | Status: MERGED | +2 | 0 |
584893,2 | Android: Support custom FileProvider in openUrl | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
585053,4 | Android: Support custom FileProvider in openUrl | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
585951,3 | Android: Support custom FileProvider in openUrl | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: ABANDONED | -1 | 0 |