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

Commit afb2c9e9 authored by Paul Lawrence's avatar Paul Lawrence Committed by Gerrit Code Review
Browse files

Merge "Use mContext directly, and enforce via logging"

parents 49af39e7 e7b214ce
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5276,11 +5276,14 @@ public class ActivityManagerService extends IActivityManager.Stub
        // Inform checkpointing systems of success
        try {
            // This line is needed to CTS test for the correct exception handling
            // See b/138952436#comment36 for context
            Slog.i(TAG, "About to commit checkpoint");
            IStorageManager storageManager = PackageHelper.getStorageManager();
            storageManager.commitChanges();
        } catch (Exception e) {
            PowerManager pm = (PowerManager)
                     mInjector.getContext().getSystemService(Context.POWER_SERVICE);
                     mContext.getSystemService(Context.POWER_SERVICE);
            pm.reboot("Checkpoint commit failed");
        }