java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=2574, uid=11336 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()


Samebug tips

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()


7 months ago
Expert tip

You need to request READ_PHONE_STATE permissions before using of this method.


,
via android.com by Unknown author

Solutions on the web

Solution icon of stackoverflow
Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=2574, uid=11336 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()

Solution icon of stackoverflow
via Stack Overflow by OangUtanKlaus
, 6 months ago
Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=14292, uid=10141 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()

Solution icon of stackoverflow
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/video/media/132 from pid=3876, uid=10088 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

Solution icon of stackoverflow
via Stack Overflow by Harsh
, 4 months ago
Permission Denial: reading com.google.android.apps.photos.contentprovider.MediaContentProvider uri content://com.google.android.apps.photos.contentprovider/0/1/content%3A//media/external/images/media/19138/ACTUAL/94710853 from pid=31678, uid=10111 requires the provider be exported, or grantUriPermission() 11-06 12:27:43.757: W/System.err(31678):

Solution icon of stackoverflow
Permission Denial: starting Intent { act=android.intent.action.PICK dat=content://media/external/video/media cmp=com.android.music/.VideoBrowserActivity } from ProcessRecord{41c469c8 874:com.example.test333/u0a10039} (pid=874, uid=10039) not exported from uid 10019 10-04 08:21:42.549: E/AndroidRuntime(874): at android.os.Parcel.readException(Parcel.java:1431)

Solution icon of web
via mozilla.com by Unknown author, 11 months ago
Permission Denial: getTasks() from pid=28003, uid=10084 requires android.permission.GET_TASKS

Solution icon of web
via mozilla.com by Unknown author, 9 months ago
Permission Denial: getTasks() from pid=17229, uid=10035 requires android.permission.GET_TASKS

Solution icon of stackoverflow
via Stack Overflow by You Qi
, 3 months ago
Permission Denial: opening provider android.support.v4.content.FileProvider from ProcessRecord{42e44f70 19420:com.google.android.GoogleCamera/u0a83} (pid=19420, uid=10083) that is not exported from uid 10312

Solution icon of web
via mozilla.com by Unknown author, 9 months ago
Permission Denial: service asks to run as user 0 but is calling from user 10; this requires android.permission.INTERACT_ACROSS_USERS_FULL

Solution icon of stackoverflow
Injecting to another application requires INJECT_EVENTS permission

Stack trace

java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=2574, uid=11336 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()
	at android.os.Parcel.readException(Parcel.java:1627)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

86 times, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 4 weeks ago
4 times, 1 month ago
18 times, 1 month ago
86 times, 4 months ago
236 more bugmates