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

Commit 1c8437a2 authored by liuchao's avatar liuchao Committed by android-build-merger
Browse files

Remove aliase name while removing bonded device

am: 4652fc99

Change-Id: I705eaaed0caaa82671c57d624932110eb4262cc0
parents 89a48677 4652fc99
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -782,6 +782,9 @@ bt_status_t btif_storage_remove_bonded_device(
    ret &= btif_config_remove(bdstr, "PinLength");
  if (btif_config_exist(bdstr, "LinkKey"))
    ret &= btif_config_remove(bdstr, "LinkKey");
  if (btif_config_exist(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE)) {
    ret &= btif_config_remove(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE);
  }
  /* write bonded info immediately */
  btif_config_flush();
  return ret ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;