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

GitHub | pfent | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android Nougat API 24 SecurityException

    GitHub | 8 months ago | pfent
    java.lang.SecurityException: Not allowed to change Do Not Disturb state
  2. 0

    In Android 7 (API level 24) my app is not allowed to mute phone (set ringer mode to silent)

    Stack Overflow | 6 months ago | Bjarte Aune Olsen
    java.lang.SecurityException: Not allowed to change Do Not Disturb state
  3. 0

    fix Android 7.0 SecurityException

    GitHub | 5 months ago | adrcotfas
    java.lang.SecurityException: Not allowed to change Do Not Disturb state
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.SecurityException

      Not allowed to change Do Not Disturb state

      at android.os.Parcel.readException()
    2. Android Platform
      AudioManager.setRingerMode
      1. android.os.Parcel.readException(Parcel.java:1666)
      2. android.os.Parcel.readException(Parcel.java:1619)
      3. android.media.IAudioService$Stub$Proxy.setRingerModeExternal(IAudioService.java:962)
      4. android.media.AudioManager.setRingerMode(AudioManager.java:1022)
      4 frames
    3. de.tum.in
      SilenceService.onHandleIntent
      1. de.tum.in.tumcampusapp.services.SilenceService.onHandleIntent(SilenceService.java:101)
      1 frame
    4. Android Platform
      HandlerThread.run
      1. android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67)
      2. android.os.Handler.dispatchMessage(Handler.java:102)
      3. android.os.Looper.loop(Looper.java:154)
      4. android.os.HandlerThread.run(HandlerThread.java:61)
      4 frames