diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 8975fe27b7c2a..5a182f0fb45d5 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -303,6 +303,7 @@ public final class BluetoothAdapter { *

Use {@link BluetoothServerSocket#accept} to retrieve incoming * connections to listening {@link BluetoothServerSocket}. *

Valid RFCOMM channels are in range 1 to 30. + *

Requires {@link android.Manifest.permission#BLUETOOTH} * @param channel RFCOMM channel to listen on * @return a listening RFCOMM BluetoothServerSocket * @throws IOException on error, for example Bluetooth not available, or diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index 0ec3243fd68bf..1b7011cdba36c 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -357,6 +357,7 @@ public final class BluetoothDevice implements Parcelable { *

Use {@link BluetoothSocket#connect} to intiate the outgoing * connection. *

Valid RFCOMM channels are in range 1 to 30. + *

Requires {@link android.Manifest.permission#BLUETOOTH} * @param channel RFCOMM channel to connect to * @return a RFCOMM BluetoothServerSocket ready for an outgoing connection * @throws IOException on error, for example Bluetooth not available, or diff --git a/core/java/android/bluetooth/BluetoothServerSocket.java b/core/java/android/bluetooth/BluetoothServerSocket.java index b65084157ebb1..45dc432d332fe 100644 --- a/core/java/android/bluetooth/BluetoothServerSocket.java +++ b/core/java/android/bluetooth/BluetoothServerSocket.java @@ -45,6 +45,9 @@ import java.io.IOException; *

{@link BluetoothSocket} and {@link BluetoothServerSocket} are thread * safe. In particular, {@link #close} will always immediately abort ongoing * operations and close the socket. + * + *

All methods on a {@link BluetoothServerSocket} require + * {@link android.Manifest.permission#BLUETOOTH} */ public final class BluetoothServerSocket implements Closeable { diff --git a/core/java/android/bluetooth/BluetoothSocket.java b/core/java/android/bluetooth/BluetoothSocket.java index ccbe23e55c7a3..e462ea6383147 100644 --- a/core/java/android/bluetooth/BluetoothSocket.java +++ b/core/java/android/bluetooth/BluetoothSocket.java @@ -49,6 +49,9 @@ import java.util.concurrent.locks.ReentrantReadWriteLock; *

{@link BluetoothSocket} and {@link BluetoothServerSocket} are thread * safe. In particular, {@link #close} will always immediately abort ongoing * operations and close the socket. + * + *

All methods on a {@link BluetoothSocket} require + * {@link android.Manifest.permission#BLUETOOTH} */ public final class BluetoothSocket implements Closeable { /** Keep TYPE_ fields in sync with BluetoothSocket.cpp */