breautek commented on issue #426:
URL: 
https://github.com/apache/cordova-plugin-file/issues/426#issuecomment-821140478


   > @breautek does this plugin request `MANAGE_EXTERNAL_STORAGE`, that is, 
does it request "Use of All files access permission"? This last sentence is 
very alarming: "Apps requesting access to the All files access permission 
without a permitted use will be removed from Google Play, and you won't be able 
to publish updates."
   > 
   > Do you know how can we request use of just one single public directory, 
for example, the Download directory?
   > 
   > Is there any plugin or means to interact with the [Android Storage Access 
Framework](https://developer.android.com/guide/topics/providers/document-provider)?
   
   This plugin does not use `MANAGE_EXTERNAL_STORAGE`. It was something I 
suggested people to use as a workaround in the past before Google made that 
announcement. Obviously unless if you're building a file manager type of app, 
it will be hard justifying the usage of `MANAGE_EXTERNAL_STORAGE` permission 
and therefore won't be recommended for most apps.
   
   I think the single largest challenge with this plugin is how generic access 
the file plugin is **suppose** to be, and how do we translate file paths to a 
specific container type (such as Audio, Video, Pictures, Documents, etc), using 
the appropriate MediaStore APIs. Based on my experience, relying on mime type 
information inferred by file extension is not really reliable.
   
   Someone will need to do the research, but it might not be possible to use 
this plugin for external storage anymore, or it may be more efficient to have a 
new plugin that uses the MediaStore APIs with a cleaner API. like 
`getAudioList()`, `getDownloadList()`, etc...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to