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

Crashes due to android 7.0 "file://" Handling "android.os.FileUriExposedException"

    XMLWordPrintableJSON

Details

    Description

      Android 7.0 removes the "file://" Protocol or to be more precise, removes the possibility to share URIs with "file://" Protocol outside the Scope of the own App. If some Code tries this, the result is "android.os.FileUriExposedException".

      This affects a variety of Plugins:

      • inAppBrowser: opening a file:// URI (e.g. to show a downloaded PDF) crasehs the app,
      • Camera crashes immediately: opening a cached File by "ClipData.Item.getUri()"
      • possible a couple of the File Plugin Methods

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              boredom2@gmail.com Christoph Brosdau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: