commit | 63c15500e555b086bcff0b9e73e6a4c396b588a8 | [log] [tgz] |
---|---|---|
author | Tomoharu Kasahara <tomoharu.kasahara@sony.com> | Wed Jan 23 12:42:04 2019 +0900 |
committer | Tomoharu Kasahara <tomoharu.kasahara@sony.com> | Wed Jan 23 20:59:02 2019 +0900 |
tree | f61ca45e82d7af25dd48d1662c8ef4dbb1ac26d4 | |
parent | b2e28dac2e5d4c00a797e50e9f2e486f90234acd [diff] |
AudioPolicy: enable apps to mute BLUETOOTH_SCO This change enables an app that has the MODIFY_PHONE_STATE permission to mute the BULETOOTH_SCO stream. The change adds specific handling in AudioPolicyManager for the case in which volume index is 0 and stream type is BLUETOOTH_SCO. The permission check is done in the AudioService Java code for the calling process. Bug: 111195322 Test: Tested manually Change-Id: I5085826a7287dfbc2cfb17a9bd2d3ca1af66ea4a