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

Commit 26bb2a2c authored by Kun Liang's avatar Kun Liang
Browse files

QuickBoot: Don't handle SHUTDOWN broadcast from QuickBoot

Don't process the ACTION_SHUTDOWN broadcast sent by QuickBoot.
It is only for apps.
Change-Id: I73d1a7b8edda0a898dd052831033806e18b37c99
parent f03c6383
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -337,6 +337,9 @@ public class SyncManager {
            new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            boolean fromQuickBoot = intent.getBooleanExtra("from_quickboot", false);
            if (fromQuickBoot) return;

            Log.w(TAG, "Writing sync state before shutdown...");
            getSyncStorageEngine().writeAllState();
        }
+3 −0
Original line number Diff line number Diff line
@@ -785,6 +785,9 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
    private BroadcastReceiver mShutdownReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            boolean fromQuickBoot = intent.getBooleanExtra("from_quickboot", false);
            if (fromQuickBoot) return;

            // SHUTDOWN is protected broadcast.
            synchronized (mStatsLock) {
                shutdownLocked();