commit | 7c605f65099f4db2ece707e07b5e844d5eefc9a6 | [log] [tgz] |
---|---|---|
author | Nadav Bar <nadavbar@google.com> | Mon Dec 25 00:01:52 2017 +0200 |
committer | Nadav Bar <nadavbar@google.com> | Mon Dec 25 11:56:54 2017 +0200 |
tree | d39eee50d13843d2027c6fe10db30746ccdcdd2f | |
parent | 49f36ba3b4624ddd3d7efa34c95128a73bda6208 [diff] |
AudioPolicy: enable phone apps to mute VOICE_CALL stream This change enables an app that has the MODIFY_PHONE_STATE permission to mute the VOICE_CALL stream. The change adds specific handling in AudioPolicyManager for the case in which volume index is 0 and stream type is VOICE call. The permission check is done in the AudioService Java code for the calling process. Bug: 71017199 Fixes: 71017199 Test: Tested manually Change-Id: Ibbf3b6948a4384a963d00347ebd04ccf6d56ebd5