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

Commit c2d0aa2c authored by Palash Ahuja's avatar Palash Ahuja
Browse files

Adding the state transition for BOND_NONE state in the native layer

Test: m statsd_testdrive && pair/unpair with remote device
Bug: 375437118
Flag: EXEMPT, metrics related changes
Change-Id: Ied58dc70c4cb3716767eafd267d3df1bc6eaa199
parent f4bac114
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -564,6 +564,12 @@ static void bond_state_changed(bt_status_t status, const RawAddress& bd_addr,

  if (pairing_cb.bond_type == BOND_TYPE_TEMPORARY) {
    state = BT_BOND_STATE_NONE;
  } else {
    if (state == BT_BOND_STATE_NONE) {
      bluetooth::os::LogMetricBluetoothEvent(ToGdAddress(bd_addr),
                                             android::bluetooth::EventType::BOND,
                                             android::bluetooth::State::STATE_NONE);
    }
  }

  log::info(