Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14043

Permission is needed and prompted to access application asstes folder on Android.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-file
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mschmidbartl Manfred Schmidbartl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: