OSDN Git Service

Fix for Bluetooth device name is resetting to default name after reboot
authorAiswarya Cyriac <aiswarya.cyriac@intel.com>
Mon, 23 Jul 2018 09:47:48 +0000 (15:17 +0530)
committerHansong Zhang <hsz@google.com>
Tue, 31 Jul 2018 21:26:26 +0000 (21:26 +0000)
commitf589e45a3c467e01c3d3d9084b128e422ba4425f
tree02f9633debf84910d44532342c995d07653a279f
parent0b610a13c2e96d598a90ac15787ea253fea8d929
Fix for Bluetooth device name is resetting to default name after reboot

Reason: When the BT device name is updated is getting saved to the
config data pointer but not to the persistent data (i.e. bt_config.conf).
So, when the reboot is happening it is not able to get the updated device
name from the persistent data (i.e. bt_config.conf) as during reboot
bt_config_flush is not called.

Fix: Saving the BT Device name to persistent data using btif_config_flush
once it is set.

Test: Manual Reboot test
Bug: 110301897
Change-Id: Ie329b475eaaf208ed667f27e271a00e230e4b95c
Signed-off-by: Aiswarya Cyriac <aiswarya.cyriac@intel.com>
Signed-off-by: Gaganpreet kaur <gaganpreetx.kaur@intel.com>
btif/src/btif_storage.cc