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

Commit 672c2e10 authored by Chinmay Dhodapkar's avatar Chinmay Dhodapkar Committed by Android (Google) Code Review
Browse files

Merge "remove gating for statsd logging of anomaly atoms"

parents e36358f8 5e1db1e6
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -110,8 +110,15 @@ public final class AnomalyReporter {
            return;
        }

        // Don't report if the server-side flag isn't loaded, as it implies other anomaly report
        // related config hasn't loaded.
        //always write atoms to statsd
        TelephonyStatsLog.write(
                TELEPHONY_ANOMALY_DETECTED,
                carrierId,
                eventId.getLeastSignificantBits(),
                eventId.getMostSignificantBits());

        // Don't report via Intent if the server-side flag isn't loaded, as it implies other anomaly
        // report related config hasn't loaded.
        try {
            boolean isAnomalyReportEnabledFromServer = DeviceConfig.getBoolean(
                    DeviceConfig.NAMESPACE_TELEPHONY, KEY_IS_TELEPHONY_ANOMALY_REPORT_ENABLED,
@@ -122,12 +129,6 @@ public final class AnomalyReporter {
            return;
        }

        TelephonyStatsLog.write(
                TELEPHONY_ANOMALY_DETECTED,
                carrierId,
                eventId.getLeastSignificantBits(),
                eventId.getMostSignificantBits());

        // If this event has already occurred, skip sending intents for it; regardless log its
        // invocation here.
        Integer count = sEvents.containsKey(eventId) ? sEvents.get(eventId) + 1 : 1;