diff options
author | Fyodor Kupolov <fkupolov@google.com> | 2015-07-14 11:38:58 -0700 |
---|---|---|
committer | Fyodor Kupolov <fkupolov@google.com> | 2015-07-14 11:38:58 -0700 |
commit | 72f491dd8642e6854fd4c6d40d77c06312af6e3b (patch) | |
tree | 45a8c5b501a6d8537c648d0730a4e3e6d300d6e5 | |
parent | 37511e35ae22ea88539f1137ea2f74c9cb17f60c (diff) | |
download | frameworks_base-72f491dd8642e6854fd4c6d40d77c06312af6e3b.zip frameworks_base-72f491dd8642e6854fd4c6d40d77c06312af6e3b.tar.gz frameworks_base-72f491dd8642e6854fd4c6d40d77c06312af6e3b.tar.bz2 |
Require ACCESS_COARSE_LOCATION for ACTION_FOUND broadcast
Receivers of ACTION_FOUND intent are now required to have
ACCESS_COARSE_LOCATION permission.
Bug: 21852542
Change-Id: I8306f7431f067ca36bfc568a912385153fa3d496
-rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index c96fe71..d27dfa0 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -92,7 +92,8 @@ public final class BluetoothDevice implements Parcelable { * <p>Always contains the extra fields {@link #EXTRA_DEVICE} and {@link * #EXTRA_CLASS}. Can contain the extra fields {@link #EXTRA_NAME} and/or * {@link #EXTRA_RSSI} if they are available. - * <p>Requires {@link android.Manifest.permission#BLUETOOTH} to receive. + * <p>Requires {@link android.Manifest.permission#BLUETOOTH} and + * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION} to receive. */ // TODO: Change API to not broadcast RSSI if not available (incoming connection) @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) |