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

Commit e1782bd1 authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Add init flag for whether to enable bluetooth activity attribution hci

logging

Tag: #feature
Bug: 170769651
Test: Manual
Change-Id: I592685d3052f6e7810e97a01478c5e169773f0d4
parent 3be43222
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3077,6 +3077,7 @@ public class AdapterService extends Service {
            "INIT_logging_debug_enabled_for_tags";
    private static final String LOGGING_DEBUG_DISABLED_FOR_TAGS_FLAG =
            "INIT_logging_debug_disabled_for_tags";
    private static final String BTAA_HCI_LOG_FLAG = "INIT_btaa_hci";

    private String[] getInitFlags() {
        ArrayList<String> initFlags = new ArrayList<>();
@@ -3111,6 +3112,9 @@ public class AdapterService extends Service {
            initFlags.add(String.format("%s=%s", LOGGING_DEBUG_DISABLED_FOR_TAGS_FLAG,
                    debugLoggingDisabledTags));
        }
        if (DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_BLUETOOTH, BTAA_HCI_LOG_FLAG, false)) {
            initFlags.add(BTAA_HCI_LOG_FLAG);
        }
        return initFlags.toArray(new String[0]);
    }