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

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

Commit 1e2593f42455aa78d7fff7400a834beb37a0683c in cordova-plugin-file's branch 
refs/heads/master from [~rakatyal]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=1e2593f ]

CB-10798, CB-10384: Fixing permissions for Marshmallow. This closes #170


> Marshmallow always request permissions when accessing files
> -----------------------------------------------------------
>
>                 Key: CB-10384
>                 URL: https://issues.apache.org/jira/browse/CB-10384
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 5.4.1
>         Environment: Android 6.0, cordova-cli 5.4.1, cordova-plugin-file 
> 4.1.0, cordova-android 5.0.0
>            Reporter: Kirill Anoshin
>            Assignee: Raghav Katyal
>              Labels: Android, triaged
>
> Hi guys is there any sense in this code in FileUtils.java:
> {code}
> if(dirname.contains(cordova.getActivity().getPackageName()) ||
>                             hasReadPermission()) {
>     ....
> }
> {code}
> dirname is always look like 'cdvfile://localhost...' this is why it never 
> contains package name. So marshmallow will always request permissions to 
> write to the external storage.
> I'm trying to write to the cordova.file.dataDirectory folder.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to