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

Commit 4c19513d 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
Merged-In: I38df1e0cbdde369935d2d19c4798a9277bc3ade1
(cherry picked from commit bb69202b)
parent b009a227
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -675,8 +675,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);