summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumarg@android.com>2011-05-25 20:22:58 -0700
committerAndroid Code Review <code-review@android.com>2011-05-25 20:22:58 -0700
commita2407587440d487aa0171638eef29526515fde59 (patch)
tree2ec114fab7102ac9e39a7bf666832a6db1f817f4
parentd8a9af404413ad060eb4aa29a32370b44e61327e (diff)
parentb3c06ce9377661a63bc2fbd182c219fd69453b1d (diff)
downloadandroid_packages_apps_Bluetooth-a2407587440d487aa0171638eef29526515fde59.tar.gz
android_packages_apps_Bluetooth-a2407587440d487aa0171638eef29526515fde59.tar.bz2
android_packages_apps_Bluetooth-a2407587440d487aa0171638eef29526515fde59.zip
Merge "Require bonding and encryption for PBAP server"
-rw-r--r--src/com/android/bluetooth/pbap/BluetoothPbapService.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/android/bluetooth/pbap/BluetoothPbapService.java b/src/com/android/bluetooth/pbap/BluetoothPbapService.java
index a7225b260..536c7ae13 100644
--- a/src/com/android/bluetooth/pbap/BluetoothPbapService.java
+++ b/src/com/android/bluetooth/pbap/BluetoothPbapService.java
@@ -333,13 +333,7 @@ public class BluetoothPbapService extends Service {
try {
// It is mandatory for PSE to support initiation of bonding and
// encryption.
- // InsecureRfcomm => encryption is on, authentication of link
- // key is off. For legacy pairing it doesn't matter, for 2.1
- // pairing - if we have already done MITM protection, then
- // the same linkeys will be used. If not, then all core profiles
- // will have the same level of protection. This API has to be
- // renamed - its no as insecure as the name suggests.
- mServerSocket = mAdapter.listenUsingInsecureRfcommOn(PORT_NUM);
+ mServerSocket = mAdapter.listenUsingEncryptedRfcommOn(PORT_NUM);
} catch (IOException e) {
Log.e(TAG, "Error create RfcommServerSocket " + e.toString());
initSocketOK = false;