From 72f491dd8642e6854fd4c6d40d77c06312af6e3b Mon Sep 17 00:00:00 2001 From: Fyodor Kupolov Date: Tue, 14 Jul 2015 11:38:58 -0700 Subject: [PATCH] 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 --- core/java/android/bluetooth/BluetoothDevice.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index c96fe71e7974..d27dfa04faf0 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 { *

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. - *

Requires {@link android.Manifest.permission#BLUETOOTH} to receive. + *

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) -- 2.11.0