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

Commit 158c1d17 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "StatsCompanionService permissions"

parents d82eeb32 36920825
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -161,7 +161,8 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {

    @Override
    public void sendBroadcast(String pkg, String cls) {
        // TODO: Use a pending intent, and enfoceCallingPermission.
        // TODO: Use a pending intent.
        enforceCallingPermission();
        mContext.sendBroadcastAsUser(new Intent(ACTION_TRIGGER_COLLECTION).setClassName(pkg, cls),
                UserHandle.SYSTEM);
    }
@@ -239,7 +240,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
        }
    }

    public final static class AppUpdateReceiver extends BroadcastReceiver {
    private final static class AppUpdateReceiver extends BroadcastReceiver {
        @Override
        public void onReceive(Context context, Intent intent) {
            /**
@@ -284,7 +285,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
        }
    }

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

    public final static class PullingAlarmReceiver extends BroadcastReceiver {
    private final static class PullingAlarmReceiver extends BroadcastReceiver {
      @Override
      public void onReceive(Context context, Intent intent) {
        if (DEBUG)
@@ -325,7 +326,7 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
      }
    }

    public final static class ShutdownEventReceiver extends BroadcastReceiver {
    private final static class ShutdownEventReceiver extends BroadcastReceiver {
        @Override
        public void onReceive(Context context, Intent intent) {
            /**