aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAdapter.java
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2011-08-03 14:17:22 -0700
committerJaikumar Ganesh <jaikumar@google.com>2011-08-03 15:00:07 -0700
commita13f8e871192642e66c38b0bc8166aa2629476f6 (patch)
tree81d673dde425700db2144f0430dc52b7e628ac2f /framework/java/android/bluetooth/BluetoothAdapter.java
parent3ee910d6a5eb988acfc0561d9e6e320621f884b3 (diff)
Enforce permission for changeApplicationState function.
The ADMIN permission is for use cases where we want to manage BT connection at a deeper level. So just the Bluetooth permission is good enough here. Change-Id: Iddd038fe9f9a26f155b4edc9484ba1fe27b178ba
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothAdapter.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java
index ca6f085dfb..28bc424d93 100644
--- a/framework/java/android/bluetooth/BluetoothAdapter.java
+++ b/framework/java/android/bluetooth/BluetoothAdapter.java
@@ -1163,7 +1163,10 @@ public final class BluetoothAdapter {
* <p> If this API returns true, it means the callback will be called.
* The callback will be called with the current state of Bluetooth.
* If the state is not what was requested, an internal error would be the
- * reason.
+ * reason. If Bluetooth is already on and if this function is called to turn
+ * it on, the api will return true and a callback will be called.
+ *
+ * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
*
* @param on True for on, false for off.
* @param callback The callback to notify changes to the state.