[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
This commit is contained in:
@@ -993,7 +993,7 @@ public final class BluetoothDevice implements Parcelable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Confirm passkey for {@link #PAIRING_VARIANT_PASSKEY_CONFIRMATION} pairing.
|
* 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
|
* @return true confirmation has been sent out
|
||||||
* false for error
|
* false for error
|
||||||
|
|||||||
Reference in New Issue
Block a user