pwlin / cordova-plugin-file-opener2

A File Opener Plugin for Cordova
MIT License
314 stars 584 forks source link

GrandUriPersmission in AndroidManifest.xml #267

Open maltorpro opened 4 years ago

maltorpro commented 4 years ago

The plugin sets the provider "io.github.pwlin.cordova.plugins.fileopener2.FileProvider" with the grandUriPermission="true" in the AndroidManifest.xml. According to google developer documentation https://developer.android.com/guide/topics/manifest/provider-element#gprmsn the given permission must be revoked via the function Context.revokeUriPermission(). Is it possible to remove the entry and use grantUriPermission before using the FileProvider and after revokeUriPermission in the class "FileOpener2"?

shnist commented 4 years ago

Hi @maltorpro, I'm not sure about this. @pwlin Do you have any thoughts?