From 60469f9a262e7897c68456b6a27b11cb28fcecd8 Mon Sep 17 00:00:00 2001 From: Alan Newberger Date: Fri, 6 May 2016 14:31:02 -0700 Subject: Grant read URI permission for playback of video capture Current implementation of video capture UI configured MediaRecorder to output directly into supplied URI, which per recommendation should be a content: URI. We pass this URI to another app to play back the video, and should pass along the read permission. Bug: 19675889 Change-Id: Idfc0ee42422dde5d921e81f098d4697e652ac689 --- src/com/android/camera/VideoModule.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index c756ac856..8d438ee74 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -787,6 +787,7 @@ public class VideoModule implements CameraModule, private void startPlayVideoActivity() { Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.setDataAndType(mCurrentVideoUri, convertOutputFormatToMimeType(mProfile.fileFormat)); try { mActivity -- cgit v1.2.3