Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.4.1
-
None
-
Android 6.0, cordova-cli 5.4.1, cordova-plugin-file 4.1.0, cordova-android 5.0.0
Description
Hi guys is there any sense in this code in FileUtils.java:
if(dirname.contains(cordova.getActivity().getPackageName()) ||
hasReadPermission()) {
....
}
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.