I am having trouble with ExoPlayer playing an internal video from the downloads folder, SecurityPermissions all around. Code in 🧵
😶 3
Alex
12/28/2021, 12:45 PM
The exact error:
Copy code
Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.downloads.DownloadStorageProvider uri <content://com.android.providers.downloads.documents/document/raw:/storage/emulated/0/Download/kitty.mp4> from pid=20754, uid=10171 requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
Alex
12/28/2021, 12:46 PM
I use the
OpenDocument()
activity result listener and set the following flags on the intent: