diff options
| author | 2009-11-11 22:46:49 -0800 | |
|---|---|---|
| committer | 2009-11-11 22:46:49 -0800 | |
| commit | 013b0e531a4318b3e78c9bd0e077d3632fce2280 (patch) | |
| tree | a56596a83b676b420a5b122a5e7e5ef212c9a8b7 | |
| parent | 360d710ebccc2a2b53bf6233e722d3287d585476 (diff) | |
| parent | 9b26f3fae406fa84cf4ddbc00674ccfe7ae2feb5 (diff) | |
Merge change I143ea844 into eclair
* changes:
Add BMW and Audi to Auto Pairing black list.
| -rw-r--r-- | core/java/android/server/BluetoothService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java index d1dd3110286b..bcc570bc1c43 100644 --- a/core/java/android/server/BluetoothService.java +++ b/core/java/android/server/BluetoothService.java @@ -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; |