summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2017-09-05 13:41:19 -0700
committerAndre Eisenbach <eisenbach@google.com>2017-09-07 23:42:27 +0000
commit172dd5c652af9b9bb52392799b3b0da99231beb5 (patch)
treedfc3e6896f70dfcb724d48859c69db5d539c4a45 /core/java
parent95786f322a4b69d7dcd3131a7d15030735c4d112 (diff)
Javadoc update for permission requirements
Bluetooth scanning requires holding these permissions for results to be delivered. Bug: 65013767 Test: N/A Change-Id: I0b5fa9efa7fc8d5cff25319fbd7719cedee6a4aa
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/bluetooth/le/BluetoothLeScanner.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/le/BluetoothLeScanner.java b/core/java/android/bluetooth/le/BluetoothLeScanner.java
index 9e9c8fe71beb..7106a84efdad 100644
--- a/core/java/android/bluetooth/le/BluetoothLeScanner.java
+++ b/core/java/android/bluetooth/le/BluetoothLeScanner.java
@@ -137,6 +137,11 @@ public final class BluetoothLeScanner {
* the PendingIntent. Use this method of scanning if your process is not always running and it
* should be started when scan results are available.
* <p>
+ * An app must hold
+ * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION ACCESS_COARSE_LOCATION} or
+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION ACCESS_FINE_LOCATION} permission
+ * in order to get results.
+ * <p>
* When the PendingIntent is delivered, the Intent passed to the receiver or activity
* will contain one or more of the extras {@link #EXTRA_CALLBACK_TYPE},
* {@link #EXTRA_ERROR_CODE} and {@link #EXTRA_LIST_SCAN_RESULT} to indicate the result of