Stop statsd Anomaly Detection crash

AnomalyAlarmReceiver needs to be public or it crashes the system when
AppComponentFactory tries to access it when an alarm fires.

Change-Id: I79d1d73e9b98d3da74e3cb34fbafc8da8c5e2e8f
Fixes: 73004903
Test: manual
This commit is contained in:
Bookatz
2018-02-06 14:24:49 -08:00
parent 7b2354ece2
commit 582870ef91

View File

@@ -285,7 +285,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
}
}
private final static class AnomalyAlarmReceiver extends BroadcastReceiver {
public final static class AnomalyAlarmReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Slog.i(TAG, "StatsCompanionService believes an anomaly has occurred.");
@@ -305,7 +305,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
}
}
private final static class PullingAlarmReceiver extends BroadcastReceiver {
public final static class PullingAlarmReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (DEBUG)