Fix setPairingConfirmation permissions issue (2/2) am: 93326cfd9f am: 3106e3ae27 am: e3812fc048
am: 532d2b11a3
Change-Id: Iee468d3bcfd72b33475e9bf1d51865f3c5e8a4a2
This commit is contained in:
@@ -1167,12 +1167,12 @@ 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
|
||||||
*/
|
*/
|
||||||
@RequiresPermission(Manifest.permission.BLUETOOTH_ADMIN)
|
@RequiresPermission(Manifest.permission.BLUETOOTH_PRIVILEGED)
|
||||||
public boolean setPairingConfirmation(boolean confirm) {
|
public boolean setPairingConfirmation(boolean confirm) {
|
||||||
if (sService == null) {
|
if (sService == null) {
|
||||||
Log.e(TAG, "BT not enabled. Cannot set pairing confirmation");
|
Log.e(TAG, "BT not enabled. Cannot set pairing confirmation");
|
||||||
|
|||||||
Reference in New Issue
Block a user