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

Commit b44eddcf authored by Rahul Arya's avatar Rahul Arya
Browse files

Pass IRK rotation flag into native

Ignore-AOSP-First: Security fix
Test: Flashed build, set the prop and watched the stack restart
Bug: 195410559
Change-Id: I6496b34c144e697308109d5ee9528f4ae5c9b4b4
parent ab2cddb7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5081,6 +5081,7 @@ public class AdapterService extends Service {
    private static final String GD_LINK_POLICY_FLAG = "INIT_gd_link_policy";
    private static final String GATT_ROBUST_CACHING_CLIENT_FLAG = "INIT_gatt_robust_caching_client";
    private static final String GATT_ROBUST_CACHING_SERVER_FLAG = "INIT_gatt_robust_caching_server";
    private static final String IRK_ROTATION_FLAG = "INIT_irk_rotation";

    /**
     * Logging flags logic (only applies to DEBUG and VERBOSE levels):
@@ -5141,6 +5142,9 @@ public class AdapterService extends Service {
                GATT_ROBUST_CACHING_SERVER_FLAG, false)) {
            initFlags.add(String.format("%s=%s", GATT_ROBUST_CACHING_SERVER_FLAG, "true"));
        }
        if (DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_BLUETOOTH, IRK_ROTATION_FLAG, false)) {
            initFlags.add(String.format("%s=%s", IRK_ROTATION_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"));