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

Commit 9b26f3fa authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Add BMW and Audi to Auto Pairing black list.

Bug: 2256558
Dr No: Eastham
parent b9c40a65
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -504,7 +504,7 @@ public class BluetoothService extends IBluetooth.Stub {
        // disabled.
        private final ArrayList<String> mAutoPairingNameBlacklist =
                new ArrayList<String>(Arrays.asList(
                        "Motorola IHF1000", "i.TechBlueBAND", "X5 Stereo v1.3"));
                        "Motorola IHF1000", "i.TechBlueBAND", "X5 Stereo v1.3", "BMW", "Audi"));

        // If this is an outgoing connection, store the address.
        // There can be only 1 pending outgoing connection at a time,
@@ -586,7 +586,8 @@ public class BluetoothService extends IBluetooth.Stub {
            String name = getRemoteName(address);
            if (name != null) {
                for (String blacklistName : mAutoPairingNameBlacklist) {
                    if (name.equals(blacklistName)) return true;
                    if (name.equals(blacklistName) ||
                            name.startsWith(blacklistName)) return true;
                }
            }
            return false;