when remove a bonded device, the date in bt_config.conf
is deleted but only removed linkey in the global cache.
The user set alise name is left there
When comes to next time search ,the linkey is set to
config and write to bt_config.conf, before OFF/ON BT
operation, the cached alse name is reported unexceptedly
After remove,the remote device is expected to be brand
new to the phone in the 2nd time they see each other.
Test: mm -j8
Change-Id: I005a6487c546e2639e3180e8a6e181c4d3c1d4ac
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;