I want to scan BLE advertisers passively within my Android App. But I couldn\'t found how to do this.
According Bluetooth 4.0 Core spec, There exists passi
Find btif_gatt_client.c in AOSP repo, Edit it,
replace
BTM_BleSetScanParams(p_cb->scan_interval, p_cb->scan_window, BTM_BLE_SCAN_MODE_ACTI);
with
BTM_BleSetScanParams(p_cb->scan_interval, p_cb->scan_window, BTM_BLE_SCAN_MODE_PASS);
then build AOSP, flash the image to phone, then passive scan works.