Added support to cancel pairing from UI while doing SSP.
The new code sends SSPReply with one of the arguments as false.
Signed-off-by: Priti Aghera <paghera@broadcom.com>
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java
old mode 100644
new mode 100755
index bd089ff..91984ad
--- a/core/java/android/bluetooth/BluetoothDevice.java
+++ b/core/java/android/bluetooth/BluetoothDevice.java
@@ -885,11 +885,9 @@
/** @hide */
public boolean cancelPairingUserInput() {
- // TODO(BT)
- /*
try {
- return sService.cancelPairingUserInput(this);
- } catch (RemoteException e) {Log.e(TAG, "", e);}*/
+ return sService.setPairingConfirmation(this, false);
+ } catch (RemoteException e) {Log.e(TAG, "", e);}
return false;
}