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

  1. ,
    Expert tip

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

  2. ,
    Expert tip

    You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via GitHub by pfent
, 1 year ago
Not allowed to change Do Not Disturb state
via GitHub by kordianbruck
, 7 months ago
Not allowed to change Do Not Disturb state
via xda-developers.com by Unknown author, 2 years ago
Caller uid=2000 is not privileged to communicate w th user=-2
via Stack Overflow by Virat Puar
, 2 years ago
Sending SMS message: uid 10058 does not have android.permission.SEND_SMS.
java.lang.SecurityException: Not allowed to change Do Not Disturb state	at android.os.Parcel.readException(Parcel.java:1683)	at android.os.Parcel.readException(Parcel.java:1636)	at android.media.IAudioService$Stub$Proxy.setRingerModeExternal(IAudioService.java:962)	at android.media.AudioManager.setRingerMode(AudioManager.java:1022)	at controllers.SearchResultController.mutePhone(SearchResultController.java:185)