Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f490c377 authored by Pramod Sivaraman's avatar Pramod Sivaraman
Browse files

Bluetooth: Security: Provides device info with pairing cancel intent

Provides device info with pairing cancel intent, so that application
can check which pairing request cancelled in multi device pairing scenario.

Change-Id: I5369c0400d66303ef4e89b143d188733d4ded8db
CRs-Fixed: 539919
parent e8230e3c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -474,6 +474,7 @@ final class RemoteDevices {
            if (device.getBondState() == BluetoothDevice.BOND_BONDING) {
                /*Broadcasting PAIRING_CANCEL intent as well in this case*/
                intent = new Intent(BluetoothDevice.ACTION_PAIRING_CANCEL);
                intent.putExtra(BluetoothDevice.EXTRA_DEVICE, device);
                mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_ADMIN_PERM);
            }
            intent = new Intent(BluetoothDevice.ACTION_ACL_DISCONNECTED);