From: Zhihai Xu Date: Wed, 6 Nov 2013 02:06:54 +0000 (-0800) Subject: need to save the BLE HID UUID to NVRAM X-Git-Tag: android-x86-7.1-r1~1936^2^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d7ee77bf8bb7f009b8088c15dcf5458b6f1fd05d;p=android-x86%2Fsystem-bt.git need to save the BLE HID UUID to NVRAM need to save the BLE HID UUID to NVRAM. otherwise we will miss the HID profile setting in device profile list of the BLE HID device after reboot. bug:11541617 Change-Id: I11e1c871768e999ec1f48396018c3be379cc1b7d --- diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c index 20089aced..b2e80d3e6 100644 --- a/btif/src/btif_dm.c +++ b/btif/src/btif_dm.c @@ -1175,6 +1175,7 @@ static void btif_dm_search_services_evt(UINT16 event, char *p_param) bt_property_t prop; bt_bdaddr_t bd_addr; char temp[256]; + bt_status_t ret; bta_gatt_convert_uuid16_to_uuid128(uuid.uu,p_data->disc_ble_res.service.uu.uuid16); @@ -1195,6 +1196,10 @@ static void btif_dm_search_services_evt(UINT16 event, char *p_param) prop.val = uuid.uu; prop.len = MAX_UUID_SIZE; + /* Also write this to the NVRAM */ + ret = btif_storage_set_remote_device_property(&bd_addr, &prop); + ASSERTC(ret == BT_STATUS_SUCCESS, "storing remote services failed", ret); + /* Send the event to the BTIF */ HAL_CBACK(bt_hal_cbacks, remote_device_properties_cb, BT_STATUS_SUCCESS, &bd_addr, 1, &prop);