Don't process broadcasts until really ready.

Someone started setting mSystemReady too early, when we really want
to know SystemServer's real ready state.  Add a variable to track
that, and don't process broadcasts until that's set.

Bug: 78020762
Test: builds, boots
Change-Id: I65213e46044c95fb0a8a4b09b9aa463bb15c1844
This commit is contained in:
Jeff Sharkey
2018-04-13 14:28:30 -06:00
parent 3d55d4c02e
commit e6c2cfbe42

View File

@@ -282,7 +282,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
private Handler mHandler; private Handler mHandler;
private Handler.Callback mHandlerCallback; private Handler.Callback mHandlerCallback;
private boolean mSystemReady; private volatile boolean mSystemReady;
private long mPersistThreshold = 2 * MB_IN_BYTES; private long mPersistThreshold = 2 * MB_IN_BYTES;
private long mGlobalAlertBytes; private long mGlobalAlertBytes;