diff options
| author | 2016-09-08 11:01:29 -0700 | |
|---|---|---|
| committer | 2016-09-20 23:47:09 +0000 | |
| commit | bb9b38b95706052c296b287a9697dfef9b7c56af (patch) | |
| tree | 693400525e20111b5b702f118956b69ab6662ced | |
| parent | af97c8805f13caac4e54307032786e2d806999a3 (diff) | |
[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
setPairingConfirmation was set to only require BLUETOOTH_ADMIN
permission which shouldn't be able to set the confirmation itself.
This is restricted to BLUETOOTH_PRIVILEGED permission.
Bug: 29043989
Change-Id: Iddc935f0b02f5ff56e930914b4b664377e786184
| -rw-r--r-- | core/java/android/bluetooth/BluetoothDevice.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index bb0d0a39f56a..4dd8913e119d 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java @@ -1106,7 +1106,7 @@ public final class BluetoothDevice implements Parcelable { /** * Confirm passkey for {@link #PAIRING_VARIANT_PASSKEY_CONFIRMATION} pairing. - * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}. + * <p>Requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED}. * * @return true confirmation has been sent out * false for error |