You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2016/03/08 00:38:40 UTC
[jira] [Commented] (CB-10384) Marshmallow always request
permissions when accessing files
[ https://issues.apache.org/jira/browse/CB-10384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15184028#comment-15184028 ]
Joe Bowser commented on CB-10384:
---------------------------------
I disagree about this being a critical issue. Once you have the file permission, you shouldn't have to request it again.
> 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
> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org