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

Commit 3dc6c2b6 authored by Paul Lawrence's avatar Paul Lawrence Committed by android-build-merger
Browse files

Merge "Don't cause infinite loop if windows manager crashes in safe mode" into pi-dev

am: 89e1217c

Change-Id: I35b0b5f5b6b083df6be10e78b590341be64eb074
parents f122c22c 89e1217c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4509,7 +4509,10 @@ public class WindowManagerService extends IWindowManager.Stub
        if (mSafeMode) {
            Log.i(TAG_WM, "SAFE MODE ENABLED (menu=" + menuState + " s=" + sState
                    + " dpad=" + dpadState + " trackball=" + trackballState + ")");
            // May already be set if (for instance) this process has crashed
            if (SystemProperties.getInt(ShutdownThread.RO_SAFEMODE_PROPERTY, 0) == 0) {
                SystemProperties.set(ShutdownThread.RO_SAFEMODE_PROPERTY, "1");
            }
        } else {
            Log.i(TAG_WM, "SAFE MODE not enabled");
        }