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

Commit d62f491f authored by Ajay Panicker's avatar Ajay Panicker Committed by android-build-merger
Browse files

Fix setPairingConfirmation permissions issue (1/2) am: 93154371

am: f680cbb0

Change-Id: Ia73de9a88d22342fe27f5f1e965cc76b088a7a0d
parents aa42a38a f680cbb0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1776,8 +1776,8 @@ public class AdapterService extends Service {
    }

     boolean setPairingConfirmation(BluetoothDevice device, boolean accept) {
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
                                       "Need BLUETOOTH ADMIN permission");
        enforceCallingOrSelfPermission(BLUETOOTH_PRIVILEGED,
                                       "Need BLUETOOTH PRIVILEGED permission");
        DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties(device);
        if (deviceProp == null || deviceProp.getBondState() != BluetoothDevice.BOND_BONDING) {
            return false;