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

Commit bb69202b authored by xiaowang's avatar xiaowang Committed by Jack He
Browse files

Set correct ScanFilter for bass assistant

Bug: 229965085
Test: presubmit
Change-Id: I38df1e0cbdde369935d2d19c4798a9277bc3ade1
parent 5b200dc5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -672,8 +672,12 @@ public class BassClientService extends ProfileService {
                filters = new ArrayList<ScanFilter>();
            }
            if (!BassUtils.containUuid(filters, BassConstants.BAAS_UUID)) {
                byte[] serviceData = {0x00, 0x00 ,0x00}; // Broadcast_ID
                byte[] serviceDataMask = {0x00, 0x00, 0x00};

                filters.add(new ScanFilter.Builder()
                        .setServiceUuid(BassConstants.BAAS_UUID).build());
                        .setServiceData(BassConstants.BAAS_UUID,
                                serviceData, serviceDataMask).build());
            }
            scanner.startScan(filters, settings, mSearchScanCallback);
            mCallbacks.notifySearchStarted(BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST);