commit | 8553181dec49a2a2fb7ff5778b34ca2ec950cf7c | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Tue Mar 30 17:28:53 2021 +0200 |
committer | Eric Laurent <elaurent@google.com> | Tue Mar 30 17:28:53 2021 +0200 |
tree | 74206a35f9d4ac0a153b0ec10b6a32cdb41ebb3c | |
parent | 9cc70b16daa5de3b44e9e22190ffa0cd0e3607b3 [diff] |
Remove need for bluetooth permission Use AudioManager.AudioPlaybackCallback to detect if music playback happens on headset or not. This is more reliable than the old method based on deprecated APIs and does not require the BLUETOOTH premission. Bug: 183500722 Test: make and play music with Youtube Music Change-Id: I9c29ea428599face23cd7b78e2d90efaade2db79