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

Manfred Schmidbartl edited comment on CB-14043 at 6/12/18 4:16 PM:
-------------------------------------------------------------------

Android Assets don't need WRITE EXTERNAL STORAGE permission, I think in 
FileUtils.java this is wrongly implemented.

So i have to ask for EXTERNAL READ WRITE Rghts before I can read the Assets, 
becuase of the Rights Managment in FileUtils.java 

 

the function needPersmission doesnt return false for Android Assets in my case


was (Author: mschmidbartl):
Android Assets don't need WRITE EXTERNAL STORAGE permission, I think in 
FileUtils.java this is wrongly implemented.

So i have to ask for EXTERNAL READ WRITE Rghts before I can read the Assets, 
becuase of the Rights Managment in FileUtils.java 

> Permission is needed and prompted to access application asstes folder on 
> Android.
> ---------------------------------------------------------------------------------
>
>                 Key: CB-14043
>                 URL: https://issues.apache.org/jira/browse/CB-14043
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-file
>            Reporter: Manfred Schmidbartl
>            Priority: Major
>
> Reading assets from  cordova.file.applicationDirectory 
> ("file:///android_asset/") results in a prompt on newer Android Versions as 
> "READ/WRITE_EXTERNAL_STORAGE" is requested.
>  
> Quick Fix: 
> in needPermission (l. 570)  in FileUtils added:
> if (permissionType == READ && nativeURL.startsWith("file:///android_asset/")) 
> {
>  return false;
>  }



--
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