diff options
| author | Mike Lockwood <lockwood@google.com> | 2013-10-02 07:56:46 -0700 |
|---|---|---|
| committer | Mike Lockwood <lockwood@google.com> | 2013-10-02 07:56:46 -0700 |
| commit | 68c692df5f667dcee42506d3c6459d3dc2e1cdd6 (patch) | |
| tree | 24108d4d8f66ff0fac2e1054c763c5ab17200b5f /core/java/android/bluetooth/BluetoothDevice.java | |
| parent | 09be37b2d3e66b7d718b0fd0ea9e73ad15493acb (diff) | |
Revert "Allow L2CAP sockets"
This reverts commit 34b0f926135b4697f091b3b39bfca8c70512af6c.
Diffstat (limited to 'core/java/android/bluetooth/BluetoothDevice.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index 1efdc8186442..5eb642cafb09 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -1172,33 +1172,6 @@ public final class BluetoothDevice implements Parcelable { return new BluetoothSocket(BluetoothSocket.TYPE_SCO, -1, true, true, this, -1, null); } - - /** - * Construct a L2CAP socket ready to start an outgoing connection. - * Call #connect on the returned #BluetoothSocket to begin the connection. - * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN} - * - * @param secure select whether security will be required - * @param fixedChannel select if this will be a "fixed channel" L2CAP connection - * or a PSM-based connection - * @param channel fixed channel or PSM to connect to - * @return a L2CAP BluetoothSocket - * @throws IOException on error, for example Bluetooth not available, or - * insufficient permissions. - * @hide - */ - public BluetoothSocket createL2CapSocket(boolean secure, boolean fixedChannel, int channel) - throws IOException { - - if (fixedChannel) { - channel |= BluetoothSocket.PORT_MASK_FIXED_CHAN; - } - - return new BluetoothSocket(BluetoothSocket.TYPE_L2CAP, -1, secure, secure, this, - channel, null); - } - - /** * Check that a pin is valid and convert to byte array. * |
