breautek commented on PR #295:
URL:
https://github.com/apache/cordova-plugin-media-capture/pull/295#issuecomment-3644508055
> Can you kindly describe how to select only of those permissions in file
`config.xml` ?
>
> I just need the permission to `READ_MEDIA_IMAGES` (no video nor audio).
>
> How should I edit `config.xml`?
In your config.xml:
```
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/*"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"
/>
</config-file>
</platform>
```
If you already have a platform block for android, than use the `config-file`
in your existing one.
However, the media capture plugin uses media store APIs and returns a
content URI that is temporary readable without any permissions so as a result
this plugin will not request the READ_MEDIA_IMAGES permission. If you require
long-term access to the content, then your app should make a copy of the
resource and store it in a persistent location.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]