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

Commit 2f624e15 authored by Yo Chiang's avatar Yo Chiang Committed by Automerger Merge Worker
Browse files

Merge "Post a notification if reboot to DSU failed" am: 5432af84 am:...

Merge "Post a notification if reboot to DSU failed" am: 5432af84 am: dcdec001 am: 3a3ec272 am: 07f7f838

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404648

Change-Id: Id44cf8686e0f46f3705a52b9bcda041f3f51f5c6
parents ad67c0bb 07f7f838
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -352,17 +352,19 @@ public class DynamicSystemInstallationService extends Service
            if (powerManager != null) {
                powerManager.reboot("dynsystem");
            }
        } else {
            return;
        }

        Log.e(TAG, "Failed to enable DynamicSystem because of native runtime error.");
            mNM.cancel(NOTIFICATION_ID);

        Toast.makeText(this,
                getString(R.string.toast_failed_to_reboot_to_dynsystem),
                Toast.LENGTH_LONG).show();

        postStatus(STATUS_NOT_STARTED, CAUSE_ERROR_EXCEPTION, null);
        resetTaskAndStop();
        mDynSystem.remove();
    }
    }

    private void executeRebootToNormalCommand() {
        if (!isInDynamicSystem()) {