Loading flags/btif_dm.aconfig +0 −10 Original line number Diff line number Diff line package: "com.android.bluetooth.flags" container: "com.android.btservices" flag { name: "do_not_replace_existing_cod_with_uncategorized_cod" namespace: "bluetooth" description: "Don't replace an existing stored class of device with one determined to be uncategorized" bug: "335909751" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "read_model_num_fix" namespace: "bluetooth" Loading system/btif/src/btif_dm.cc +2 −5 Original line number Diff line number Diff line Loading @@ -1373,12 +1373,9 @@ static void btif_dm_search_devices_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH* don't want this to replace the existing value below when we call btif_storage_add_remote_device */ uint32_t old_cod = get_cod(&bdaddr); if (com::android::bluetooth::flags:: do_not_replace_existing_cod_with_uncategorized_cod()) { if (cod == COD_UNCLASSIFIED && old_cod != 0) { cod = old_cod; } } if (old_cod != cod) { log::info("{} CoD: 0x{:06x} -> 0x{:06x}", bdaddr, old_cod, cod); Loading Loading
flags/btif_dm.aconfig +0 −10 Original line number Diff line number Diff line package: "com.android.bluetooth.flags" container: "com.android.btservices" flag { name: "do_not_replace_existing_cod_with_uncategorized_cod" namespace: "bluetooth" description: "Don't replace an existing stored class of device with one determined to be uncategorized" bug: "335909751" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "read_model_num_fix" namespace: "bluetooth" Loading
system/btif/src/btif_dm.cc +2 −5 Original line number Diff line number Diff line Loading @@ -1373,12 +1373,9 @@ static void btif_dm_search_devices_evt(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH* don't want this to replace the existing value below when we call btif_storage_add_remote_device */ uint32_t old_cod = get_cod(&bdaddr); if (com::android::bluetooth::flags:: do_not_replace_existing_cod_with_uncategorized_cod()) { if (cod == COD_UNCLASSIFIED && old_cod != 0) { cod = old_cod; } } if (old_cod != cod) { log::info("{} CoD: 0x{:06x} -> 0x{:06x}", bdaddr, old_cod, cod); Loading