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

ASF subversion and git services commented on CB-13481:
------------------------------------------------------

Commit 752e69aa14c4994874e52d8a59281a491081b97e in cordova-plugin-file's branch 
refs/heads/master from [~stevegill]
[ https://gitbox.apache.org/repos/asf?p=cordova-plugin-file.git;h=752e69a ]

Merge pull request #221 from imgx64/patch-1

CB-13481: (android) Don't ask for permission to read file:///android_asset/

> file:///android_asset/ shouldn't require READ_EXTERNAL_STORAGE permission
> -------------------------------------------------------------------------
>
>                 Key: CB-13481
>                 URL: https://issues.apache.org/jira/browse/CB-13481
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-file
>    Affects Versions: Master
>         Environment: cordova-android 6.3.0. 
> Running on Android 6.0. 
>            Reporter: Ibrahim M. Ghazal
>            Priority: Major
>
> On Android 6+, trying to read a file from 
> {{cordova.file.applicationDirectory}} ({{file:///android_asset/}}) opens the 
> runtime permissions window and asks the user "Allow AppName to access photos, 
> media, and files on your device?". This is obviously incorrect as the app 
> always has the permission to read its own assets.
> Sample code that shows the issue:
> {code}
> function log(a) {console.log(a);};
> resolveLocalFileSystemURL(cordova.file.applicationDirectory, 
> function(applicationDirectory) {
>   applicationDirectory.getFile('www/index.js', {}, log, log);
> }, log);
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to