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

Commit 20be1f96 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

GD Hack: Start service discovery on bonded

We haven't unified the callback path from BTM or GD shim to BTA/BTIF
yet.  We have to start service discovery specifically for GD at the
moment.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Test: connect to a speaker
Change-Id: I958c99b6943be36469096e8039ff95fda0026a0b
parent c5f0815e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -269,6 +269,11 @@ static void btif_dm_send_bond_state_changed(RawAddress address, bt_bond_state_t
  }

  invoke_bond_state_changed_cb(BT_STATUS_SUCCESS, address, bond_state);
  if (bluetooth::shim::is_gd_shim_enabled()) {
    // TODO(b/165394095): Clean up the callback path and find the uniform place
    // to start service discovery
    btif_dm_get_remote_services(address, BT_TRANSPORT_UNKNOWN);
  }
}

void btif_dm_init(uid_set_t* set) {