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

Commit f5c8395e authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Automerger Merge Worker
Browse files

Resolve address before returning LE scan results in GD am: 2b18d855 am:...

Resolve address before returning LE scan results in GD am: 2b18d855 am: e6c30f8f am: 7e8ff021 am: 30bf841d am: a7acdfbb

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1824056

Change-Id: Ia0f27d407d10fefc26db189b6268529979b4eaa2
parents d74cc6f8 a7acdfbb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@ extern void btif_dm_update_ble_remote_properties(const RawAddress& bd_addr,
                                                 BD_NAME bd_name,
                                                 tBT_DEVICE_TYPE dev_type);

extern void btm_ble_process_adv_addr(RawAddress& raw_address,
                                     tBLE_ADDR_TYPE* address_type);

class BleScannerInterfaceImpl : public BleScannerInterface,
                                public bluetooth::hci::ScanningCallback {
 public:
@@ -253,6 +256,10 @@ class BleScannerInterfaceImpl : public BleScannerInterface,
                    std::vector<uint8_t> advertising_data) {
    RawAddress raw_address = ToRawAddress(address);

    if (address_type != BLE_ADDR_ANONYMOUS) {
      btm_ble_process_adv_addr(raw_address, &address_type);
    }

    do_in_jni_thread(
        FROM_HERE,
        base::BindOnce(&BleScannerInterfaceImpl::handle_remote_properties,