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

Commit 9a52c1a4 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Include Headtracker service in the list of interesting services

btif_dm reports only the "interesting" services after pairing.

Test: mmm packages/modules/Bluetooth
Flag: com.android.bluetooth.flags.android_headtracker_service
Bug: 332590397
Bug: 335708774
Change-Id: I366d098949a082d0e917f5a2e982c78ebce93a2d
parent 843330f9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@
#include "bt_name.h"
#include "bta/dm/bta_dm_disc.h"
#include "bta/include/bta_api.h"
#include "bta/include/bta_hh_api.h"
#include "btif/include/stack_manager_t.h"
#include "btif_api.h"
#include "btif_bqr.h"
@@ -1651,7 +1652,9 @@ static bool btif_is_interesting_le_service(bluetooth::Uuid uuid) {
  return (uuid.As16Bit() == UUID_SERVCLASS_LE_HID || uuid == UUID_HEARING_AID ||
          uuid == UUID_VC || uuid == UUID_CSIS || uuid == UUID_LE_AUDIO ||
          uuid == UUID_LE_MIDI || uuid == UUID_HAS || uuid == UUID_BASS ||
          uuid == UUID_BATTERY);
          uuid == UUID_BATTERY ||
          (com::android::bluetooth::flags::android_headtracker_service() &&
           uuid == ANDROID_HEADTRACKER_SERVICE_UUID));
}

static bt_status_t btif_get_existing_uuids(RawAddress* bd_addr,