Android

Caused by java.lang.SecurityException.Not allowed to change Do Not Disturb state

Caused by java.lang.SecurityException

Not allowed to change Do Not Disturb state

android.os.Parcel.readException (Parcel.java:1683)

android.os.Parcel.readException (Parcel.java:1636)

android.media.IAudioService$Stub$Proxy.setStreamVolume (IAudioService.java:1053)

android.media.AudioManager.setStreamVolume (AudioManager.java:1130)

android.media.AudioManagerEx.setStreamVolume (AudioManagerEx.java:447)

ddolcatmaster.mypowermanagement.SettingActivity.saveSpAutoExec (Unknown Source)

ddolcatmaster.mypowermanagement.SettingActivity.onPlusBtnClicked (Unknown Source)

java.lang.reflect.Method.invoke (Method.java)

android.view.View$DeclaredOnClickListener.onClick (View.java:4706)

android.view.View.performClick (View.java:5623)

android.view.View$PerformClick.run (View.java:22433)

android.os.Handler.handleCallback (Handler.java:751)

android.os.Handler.dispatchMessage (Handler.java:95)

android.os.Looper.loop (Looper.java:154)

android.app.ActivityThread.main (ActivityThread.java:6247)

java.lang.reflect.Method.invoke (Method.java)

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:872)

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:762)

오류 발생한 폰은 LG G5로 안드로이드 운영체체 7.0이다.

휴대폰이 방해금지모드에 있을 때 볼륨조절을 할 때 발생 된 오류로 보인다.

해결방법 :

https://stackoverflow.com/questions/39151453/in-android-7-api-level-24-my-app-is-not-allowed-to-mute-phone-set-ringer-mode

https://stackoverrun.com/ko/q/11858696

https://blog.csdn.net/manjianchao/article/details/77576638

https://github.com/OpenLauncherTeam/openlauncher/issues/67

Leave a Reply

error: Content is protected !!