android.os.FileUriExposedException: file:///storage/emulated/0/Download/2e5b188e-41fc-45ed-9a50-d5b67bcfa515.apk exposed beyond app through Intent.getData()

GitHub | candrews | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    App updating does not work when targeting the API 24 on Android N

    GitHub | 8 months ago | candrews
    android.os.FileUriExposedException: file:///storage/emulated/0/Download/2e5b188e-41fc-45ed-9a50-d5b67bcfa515.apk exposed beyond app through Intent.getData()

    Root Cause Analysis

    1. android.os.FileUriExposedException

      file:///storage/emulated/0/Download/2e5b188e-41fc-45ed-9a50-d5b67bcfa515.apk exposed beyond app through Intent.getData()

      at android.os.StrictMode.onFileUriExposed()
    2. Android Platform
      Activity.startActivity
      1. android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
      2. android.net.Uri.checkFileUriExposed(Uri.java:2346)
      3. android.content.Intent.prepareToLeaveProcess(Intent.java:8933)
      4. android.content.Intent.prepareToLeaveProcess(Intent.java:8894)
      5. android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
      6. android.app.Activity.startActivityForResult(Activity.java:4224)
      7. android.app.Activity.startActivityForResult(Activity.java:4183)
      8. android.app.Activity.startActivity(Activity.java:4507)
      9. android.app.Activity.startActivity(Activity.java:4475)
      9 frames
    3. HockeySDK
      DownloadFileTask.onPostExecute
      1. net.hockeyapp.android.tasks.DownloadFileTask.onPostExecute(DownloadFileTask.java:197)
      2. net.hockeyapp.android.tasks.DownloadFileTask.onPostExecute(DownloadFileTask.java:34)
      2 frames
    4. Android Platform
      AsyncTask.finish
      1. android.os.AsyncTask.finish(AsyncTask.java:660)
      1 frame