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

Commit ba843258 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Enable Robust GATT caching by default

Test: pair and reconnect phone with multiple peripheral devices
Bug: 200649290
Tag: #feature
Change-Id: Id025de5f4b4a89bb92b047fe75e620b70d1d97d9
parent 1767bad7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3716,6 +3716,7 @@ public class AdapterService extends Service {
    private static final String GD_L2CAP_FLAG = "INIT_gd_l2cap";
    private static final String GD_RUST_FLAG = "INIT_gd_rust";
    private static final String GD_LINK_POLICY_FLAG = "INIT_gd_link_policy";
    private static final String GATT_ROBUST_CACHING_FLAG = "INIT_gatt_robust_caching";

    /**
     * Logging flags logic (only applies to DEBUG and VERBOSE levels):
@@ -3768,6 +3769,9 @@ public class AdapterService extends Service {
        if (DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_BLUETOOTH, GD_LINK_POLICY_FLAG, false)) {
            initFlags.add(String.format("%s=%s", GD_LINK_POLICY_FLAG, "true"));
        }
        if (DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_BLUETOOTH, GATT_ROBUST_CACHING_FLAG, true)) {
            initFlags.add(String.format("%s=%s", GATT_ROBUST_CACHING_FLAG, "true"));
        }
        if (DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_BLUETOOTH,
                LOGGING_DEBUG_ENABLED_FOR_ALL_FLAG, false)) {
            initFlags.add(String.format("%s=%s", LOGGING_DEBUG_ENABLED_FOR_ALL_FLAG, "true"));