java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/2 from pid=555, uid=1000 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by user2269164
, 1 year ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/2 from pid=555, uid=1000 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via Stack Overflow by androidpie
, 7 months ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/1 from pid=2608, uid=1000 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via Stack Overflow by Adrian Harrison
, 2 years ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/2523 from pid=840, uid=1000 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via Stack Overflow by S.Tzavelas
, 3 months ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/35 from pid=4424, uid=10060 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via GitHub by stevenolen
, 11 months ago
Permission Denial: reading com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/video%3A89 from pid=25815, uid=10083 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()
via GitHub by erhutime
, 4 months ago
Permission Denial: reading com.android.providers.downloads.provider.DownloadProvider uri content://downloads/all_downloads/513 from pid=3606, uid=10025 requires android.permission.ACCESS_ALL_DOWNLOADS, or grantUriPermission()
java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media/2 from pid=555, uid=1000 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:539)
at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:452)
at android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:443)
at android.content.ContentProvider$Transport.openFile(ContentProvider.java:340)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:240)
at android.os.Binder.execTransact(Binder.java:446)

Users with the same issue

8 times, 1 year ago
92 times, 1 year ago
5 times, 11 months ago
882 times, 1 year ago
209 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.