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
2 files changed
tree: 74206a35f9d4ac0a153b0ec10b6a32cdb41ebb3c
  1. res/
  2. src/
  3. Android.bp
  4. AndroidManifest.xml
  5. OWNERS