Merge "STATSD_STARTED broadcast include background"

This commit is contained in:
TreeHugger Robot
2018-02-12 20:50:24 +00:00
committed by Android (Google) Code Review

View File

@@ -783,7 +783,9 @@ public class StatsCompanionService extends IStatsCompanionService.Stub {
enforceCallingPermission();
if (DEBUG) Slog.d(TAG, "learned that statsdReady");
sayHiToStatsd(); // tell statsd that we're ready too and link to it
mContext.sendBroadcastAsUser(new Intent(StatsManager.ACTION_STATSD_STARTED),
mContext.sendBroadcastAsUser(
new Intent(StatsManager.ACTION_STATSD_STARTED)
.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND),
UserHandle.SYSTEM,
android.Manifest.permission.DUMP);
}