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

Commit 2b296ff5 authored by Chienyuan's avatar Chienyuan Committed by Chienyuan Huang
Browse files

MAP: Change default version to 1.4.2

MAP 1.2.1 deprecated on 02/01/2021.
www.bluetooth.com/specifications/specs/?status=all&keyword=Message
We won't change MAP version at Android R, but for
Android S we should change the default version to 1.4.2

Tag: refactor
Bug: 178770879
Test: manual, check SDP packets
Change-Id: I9313154fe9180a8a1c40ddc394c79aa86ebb3cf4
parent 86e190a6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ public class BluetoothMapMasInstance implements IObexConnectionHandler {
            new HashMap<Long, BluetoothMapConvoListingElement>();

    private int mRemoteFeatureMask = BluetoothMapUtils.MAP_FEATURE_DEFAULT_BITMASK;
    private static int sFeatureMask = SDP_MAP_MAS_FEATURES_1_2;
    private static int sFeatureMask = SDP_MAP_MAS_FEATURES_1_4;

    public static final String TYPE_SMS_MMS_STR = "SMS/MMS";
    public static final String TYPE_EMAIL_STR = "EMAIL";
@@ -347,7 +347,7 @@ public class BluetoothMapMasInstance implements IObexConnectionHandler {
            }
        }

        final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY, "map12");
        final String currentValue = SystemProperties.get(BLUETOOTH_MAP_VERSION_PROPERTY, "map14");
        int masVersion;

        switch (currentValue) {
@@ -364,8 +364,8 @@ public class BluetoothMapMasInstance implements IObexConnectionHandler {
                sFeatureMask = SDP_MAP_MAS_FEATURES_1_4;
                break;
            default:
                masVersion = SDP_MAP_MAS_VERSION_1_2;
                sFeatureMask = SDP_MAP_MAS_FEATURES_1_2;
                masVersion = SDP_MAP_MAS_VERSION_1_4;
                sFeatureMask = SDP_MAP_MAS_FEATURES_1_4;
        }

        return SdpManager.getDefaultManager()