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 | 9cffff7bd584bf1a49298dc645aa640f2c989a54 (patch) | |
| tree | 90bd36d13643ebbcada07db8a260f438d280bcaa /framework/java/android/bluetooth/BluetoothDevice.java | |
| parent | 4b707768a2a68f12fec8c7a664e88829604ef409 (diff) | |
Revert "Allow L2CAP sockets"
This reverts commit 008ce9e07b5e58c5ab31c5d73ec3d1ad1a6cf605.
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
| -rw-r--r-- | framework/java/android/bluetooth/BluetoothDevice.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/framework/java/android/bluetooth/BluetoothDevice.java b/framework/java/android/bluetooth/BluetoothDevice.java index 1efdc81864..5eb642cafb 100644 --- a/framework/java/android/bluetooth/BluetoothDevice.java +++ b/framework/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. * |
