Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recorder: grant read permissions for apps requesting recordings
Recorder is already properly handling requests to record audio and return the file as Uri. However, we also need to explicitly grand read permissions for the Uri, otherwise the requesting app can not use the recording. E MediaPlayerService: Couldn't open fd for content://0@media/external_primary/audio/media/1000000046 E MediaPlayerNative: Unable to create media player E ByodPresentMediaDialog: Cannot play given audio with media player. E ByodPresentMediaDialog: java.io.IOException: setDataSource failed.: status=0x80000000 Test: CTS-Verifier - https://source.android.com/docs/compatibility/cts/verifier - BYOD Managed Provisioning - Start BYOD provisioning flow - Sound recorder support cross profile audio capture Test: manualTests#com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity Change-Id: Ic107d21ae309a425842b94eeea11c614e3357bbe Signed-off-by: Alexander Martinz <[email protected]> (cherry picked from commit e223eb3)
- Loading branch information