Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7173a1fb authored by Sal Savage's avatar Sal Savage Committed by Myles Watson
Browse files

Request current track metadata when BIP connects

AVRCP Targets are not supposed to give image handles over with metadata
until an AVRCP BIP client connects from a particular controller. Because
this connection can happen any time and there's nothing forcing a target
to send us a track changed notification to inform us of the new handle,
the best thing we can do to work with all devices is to request it when
we connect on BIP. Otherwise, we risk a race condition between the BIP
connection and any amount of track changed notifications that might
happen organically.

This change, paired with one in /system/bt/, adds a method to the native
interface to allow us to request for current track metadata whenever we
want. We then call it when we learn of a BIP client connection.

Bug: 152655644
Test: Build, flash, atest
Change-Id: Ife75cd08a3affe1cc14a4254d1896c4299114f9f
Merged-In: Ife75cd08a3affe1cc14a4254d1896c4299114f9f
parent 77a71c68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment