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

Commit fe779646 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Add reboot reason to detect device shutdown"

parents 0e2178d0 0c30de99
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -249,6 +249,8 @@ public final class BatteryService extends Binder {
                @Override
                public void run() {
                    if (ActivityManagerNative.isSystemReady()) {
                        Slog.e(TAG, "silent_reboot shutdownIfNoPowerLocked");

                        Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN);
                        intent.putExtra(Intent.EXTRA_KEY_CONFIRM, false);
                        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
@@ -268,6 +270,8 @@ public final class BatteryService extends Binder {
                @Override
                public void run() {
                    if (ActivityManagerNative.isSystemReady()) {
                        Slog.e(TAG, "silent_reboot shutdownIfOverTempLocked");

                        Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN);
                        intent.putExtra(Intent.EXTRA_KEY_CONFIRM, false);
                        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);