android 在通话状态下,当有通知来时(如低电量提示、wifi 连接,等),没有通知音

2019-04-14 08:23发布

 1.  frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java disableNotificationEffects()中,注掉 /* if (mCallState != TelephonyManager.CALL_STATE_IDLE && !mZenModeHelper.isCall(record)) { return "callState"; } */  2.  frameworks/av/services/audiopolicy/AudioPolicyManager.cpp setStreamMute()中开头,添加 if(stream == AUDIO_STREAM_NOTIFICATION) { on = false; }