java.lang.SecurityException: Not allowed to change Do Not Disturb state

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

,
Expert tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

Solutions on the web

via GitHub by pfent
, 1 year ago
Not allowed to change Do Not Disturb state
via GitHub by kordianbruck
, 4 months ago
Not allowed to change Do Not Disturb state
via xda-developers.com by Unknown author, 1 year 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)

Users with the same issue

Once, 5 days ago
Once, 1 month ago
Once, 1 month ago
Once, 1 month ago
7 times, 1 month ago

Write tip

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