cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <>
Subject [jira] [Created] (CB-11396) Audio Media Capture Crashes if app stores file on external storage
Date Wed, 08 Jun 2016 19:05:21 GMT
Simon MacDonald created CB-11396:

             Summary: Audio Media Capture Crashes if app stores file on external storage
                 Key: CB-11396
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Media Capture
         Environment: Android
            Reporter: Simon MacDonald
            Assignee: Simon MacDonald

I’ll go over the issue that we were seeing and that we want to address with this fix:

- The app crashes when returning from the recorder application (RecForge) when it tries to
get the recorded audio – in onAudioActivityResult.
- This only happens if the app doesn’t already have the READ_EXTERNAL_STORAGE permission
already allowed. If the permissions for image get accepted this issue will not reproduce anymore.
- The READ_EXTERNAL_STORAGE is part of the manifest but is not requesting permissions from
anywhere else except this plugin.

Stack trace:

java.lang.SecurityException: Permission Denial: reading
uri content://media/external/audio/media/8706 from pid=12598, uid=10333 requires android.permission.READ_EXTERNAL_STORAGE,
or grantUriPermission()
            at android.os.Parcel.readException(
            at android.database.DatabaseUtils.readExceptionFromParcel(
            at android.database.DatabaseUtils.readExceptionFromParcel(
            at android.content.ContentProviderProxy.query(
            at android.content.ContentResolver.query(
            at android.content.ContentResolver.query(
            at org.apache.cordova.CordovaResourceApi.mapUriToFile(
            at org.apache.cordova.mediacapture.Capture.createMediaFile(
            at org.apache.cordova.mediacapture.Capture.onAudioActivityResult(
            at org.apache.cordova.mediacapture.Capture$
            at java.util.concurrent.ThreadPoolExecutor.runWorker(
            at java.util.concurrent.ThreadPoolExecutor$

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message