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

Commit 582870ef authored by Bookatz's avatar Bookatz
Browse files

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
parent 7b2354ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)