-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.SecurityException: Permission Denial #9
Comments
Are you still getting this error? |
@lubritto I'm seeing this exception on the console, but the functionality seems to work fine. Is this something that has to be fixed on the plugin side?
|
I get it too on Android 10 |
Still reproducible. |
I have the same issue but the feature works, i can share no problem but i get that warning in the console. |
I am seeing the same error: For reference I found: https://stackoverflow.com/questions/45893294/permission-denial-with-file-provider-through-intent and https://stackoverflow.com/questions/57689792/permission-denial-while-sharing-file-with-fileprovider Specifically, the stackoverflow solution involves adding:
I am going to create a fork and see if this solves the problem. Will open a pull request if it does. |
If anyone is interested in using this bugfix until it is merged you can do so by adding the following to
Just make sure to change it back once it's merged. I do not intend to keep my fork updated. |
Same issue. |
I see the error logged in the console as well, although the feature seems to work. Would like for the fix to be merged in |
https://stackoverflow.com/a/65342993/14844728
|
i got it on |
I am getting in Android 10 and Android 12. (Not checked for Android 11) |
@VivekThummar52 @shubhamnandanwar Did you find a solution? |
@manwithsteelnerves
And tell me if this will work for you or not.. |
Even I'm granting the read uri permission but not working for multiple files It started working after adding the uri permission flag on the intent chooser too for all the attachments (uris).
|
@manwithsteelnerves if not then look at this answer - https://stackoverflow.com/a/15577579 |
Yes. I'm currently setting the array of streams(uri) only. But still it expects me to add the read permission flags on "chooser" intent by going through all of the matching packages (note you may need to add QUERY_ALL_PACKAGES or tag if >= API 30 is your target api) |
Hey, I was using scoped storage and I figured it's impossible for me to share that particular image (please correct me if I am wrong). I found a thread in which the developer was creating a cache image in the scoped folder and was sharing the cached image. The developer also hardcoded the image name, so whenever a user shares a new image, the previous cache image gets overwritten. Unfortunately, I couldn't find that thread again but here's the code -
I have tested it in Android 12 and 10 and it's working fine. |
I am still getting the error. Is there an update in the pipe? |
I added
androidx.core.content.FileProvider
andprovider_paths.xml
, but still encountered such an error:The text was updated successfully, but these errors were encountered: