OSDN Git Service

[DO NOT MERGE] Fix setPairingConfirmation permissions issue (2/2)
authorAjay Panicker <apanicke@google.com>
Thu, 8 Sep 2016 18:01:29 +0000 (11:01 -0700)
committerAjay Panicker <apanicke@google.com>
Thu, 8 Sep 2016 18:01:29 +0000 (11:01 -0700)
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

core/java/android/bluetooth/BluetoothDevice.java

index d789a94..cd74faa 100644 (file)
@@ -993,7 +993,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