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

GitHub | pfent | 7 months ago
  1. 0

    Android Nougat API 24 SecurityException

    GitHub | 7 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 | 5 months ago | Bjarte Aune Olsen
    java.lang.SecurityException: Not allowed to change Do Not Disturb state
  3. 0

    fix Android 7.0 SecurityException

    GitHub | 4 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

  5. 0
    MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key.
  6. 0
    You should add the permission android.permission.READ_EXTERNAL_STORAGE to your manifest file.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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