Hello, I am encountering a strange issue but afte...
# android
p
Hello, I am encountering a strange issue but after seeing it reproducible in Chrome with it's own FileProvider and with WhatsApp's MediaProvider I think is caused by something in Android's
Intent.createChooser()
Basically using
ACTION_SEND
and
EXTRA_STREAM
with
FLAG_GRANT_READ_URI_PERMISSION
means a
java.lang.SecurityException: Permission Denial .. requires the provider be exported, or grantUriPermission()
error being logged although the expected flow works without issue. Because this is happening with AAA apps also I would think this is a deeper issue in Android that doesn't yet have a solution or even a workaround but I'm curious if anybody would know more about this.
👀 1
stackoverflow 4
m
If you created a SO question, please past it here for the future reference
Im facing same mainly WA but there are other providers as well
p
There are a few questions for this already on SO but with no real traction. I've created a new issue on Google's IssueTracker - https://issuetracker.google.com/issues/177734533 Feel free to star & add more details.
m
Thanks for the update, i was trying to solve this myself and its a pain