remove gating for statsd logging of anomaly atoms
Make sure anomaly atoms are always logged to statsd. The intent sent to oem can still remain gated by a platform experiments flag Fixes: 268376781 Test: manual Change-Id: I34fbc2b152e56bcea777bbfba2f25468a82e9dca
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user