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

Commit 455c3f05 authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

Merge "Remove cleanup_le_only_device_type" into main

parents d0662f4c c1f6ac4f
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -531,7 +531,7 @@ class AdapterProperties {
            return;
        }

        if (Flags.cleanupLeOnlyDeviceType() && deviceType != BluetoothDevice.DEVICE_TYPE_LE) {
        if (deviceType != BluetoothDevice.DEVICE_TYPE_LE) {
            return;
        }

@@ -547,12 +547,8 @@ class AdapterProperties {
            boolean removeExisting = false;
            if (identityAddress.equals(existingIdentityAddress)
                    && !address.equals(existingAddress)) {
                if (Flags.cleanupLeOnlyDeviceType()) {
                // Existing device record should be removed only if the device type is LE-only
                removeExisting = (existingDeviceType == BluetoothDevice.DEVICE_TYPE_LE);
                } else {
                    removeExisting = true;
                }
            }

            if (removeExisting) {
+0 −7
Original line number Diff line number Diff line
@@ -11,13 +11,6 @@ flag {
    }
}

flag {
    name: "cleanup_le_only_device_type"
    namespace: "bluetooth"
    description: "Cleanup the duplicate bond records only if the device type is LE-only"
    bug: "333949759"
}

flag {
    name: "pairing_on_unknown_transport"
    namespace: "bluetooth"