summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAjay Panicker <apanicke@google.com>2016-09-21 01:34:33 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-09-21 01:34:33 +0000
commit8e9f9f4bd81466c3a9b7274177f9ec0287dfec22 (patch)
tree9083de2ca005eb4c04872a414fe325ebfbba5589 /src/com
parentc2d1c051725e31561a305a45a898c0a03062efc3 (diff)
parent4a20ca7bae7517776da9cc7099040e19bd01f5bc (diff)
downloadandroid_packages_apps_Bluetooth-8e9f9f4bd81466c3a9b7274177f9ec0287dfec22.tar.gz
android_packages_apps_Bluetooth-8e9f9f4bd81466c3a9b7274177f9ec0287dfec22.tar.bz2
android_packages_apps_Bluetooth-8e9f9f4bd81466c3a9b7274177f9ec0287dfec22.zip
Fix setPairingConfirmation permissions issue (1/2) am: df3304a333 am: f8a47ce8ee am: 3ea7d86110 am: ccca20484c
am: 4a20ca7bae Change-Id: I4a9f4408bf601c7e06290210e8e199969af64420
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/bluetooth/btservice/AdapterService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/btservice/AdapterService.java b/src/com/android/bluetooth/btservice/AdapterService.java
index 72f4ffafc..261c8f90f 100644
--- a/src/com/android/bluetooth/btservice/AdapterService.java
+++ b/src/com/android/bluetooth/btservice/AdapterService.java
@@ -1990,8 +1990,8 @@ public class AdapterService extends Service {
}
boolean setPairingConfirmation(BluetoothDevice device, boolean accept) {
- enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
- "Need BLUETOOTH ADMIN permission");
+ enforceCallingOrSelfPermission(BLUETOOTH_PRIVILEGED,
+ "Need BLUETOOTH PRIVILEGED permission");
DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties(device);
if (deviceProp == null || deviceProp.getBondState() != BluetoothDevice.BOND_BONDING) {
return false;