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 tips5

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()

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web2079

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
Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=11235, uid=10207 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()

Solution icon of stackoverflow
via Stack Overflow by OangUtanKlaus
, 4 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 github
Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=3301, uid=10058 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()

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

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

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

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

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

Solution icon of github
via GitHub by yuriykulikov
, 8 months ago
Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/audio/media/1531 from pid=4959, uid=10203 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()

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

49 times, 6 days ago
86 times, 2 months ago
201 times, 2 months ago
2 times, 2 months ago
3 times, 4 months ago
232 more bugmates