Ignore incoming A2DP if profile is disabled
If profile was disabled (PRIORITY_OFF), it should not accept
incoming connections. A2DP source currently respects priority off, in
A2dpService.isOkToConnect(), but A2DP sink silently accepts incoming
connection.
Bug: 140590407
Test: connect phone with Automotive OS (it implements sink
profile). Disable A2DP from settings in Automotive OS, try to
connect from the phone side - verify A2DP remains disconnected.
Change-Id: Ib0afdd9436301ca1d76bb37ec871c4f974f1996f
(cherry picked from commit 9be95315eb5e502889e7d49fadbc243bde2aba76)
1 file changed