[ 
https://issues.apache.org/jira/browse/CB-14260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16591260#comment-16591260
 ] 

ASF GitHub Bot commented on CB-14260:
-------------------------------------

janpio commented on issue #95: CB-14260: (android) captureImage permission 
denial on android 8.1
URL: 
https://github.com/apache/cordova-plugin-media-capture/pull/95#issuecomment-415676751
 
 
   Ok, that makes sense.
   
   Let me try to recap what is happening here:
   The plugin was always requesting `READ_EXTERNAL_STORAGE` although it needs 
to write to that storage. Before Android 8 that was fine as requesting 
`READ_EXTERNAL_STORAGE` also gave you `WRITE_EXTERNAL_STORAGE` automatically, 
now with Android 8 you would also get the permission automatically but only if 
you _requested_ it explicitly. As we don't do that, we should ask for it in the 
first place and be done with it.
   
   Correct?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> captureImage: permission denial on android 8.1
> ----------------------------------------------
>
>                 Key: CB-14260
>                 URL: https://issues.apache.org/jira/browse/CB-14260
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-media-capture
>    Affects Versions: 3.0.0
>            Reporter: Marco
>            Priority: Major
>
> When I call "captureImage" method I accept all permissions but I get:
> {noformat}
> java.lang.SecurityException: Permission Denial: writing 
> com.android.providers.media.MediaProvider uri 
> content://media/external/images/media from pid=12716, uid=10079 requires 
> android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission(){noformat}
> I'm using cordova-plugin-media-capture version 3.0.2



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to