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

Commit e697a4fc authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Frameworks: Add VMRuntime.hasBootImageSpaces check

Log a wtf in the system server when the runtime does not
use a boot image.

Test: m
Test: system boots
Change-Id: I087c269dd1e95eeeab5db4250133f9c61e9399c7
parent 0d3f4e61
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -459,6 +459,12 @@ public final class SystemServer {
            }
        }

        // Diagnostic to ensure that the system is in a base healthy state. Done here as a common
        // non-zygote process.
        if (!VMRuntime.hasBootImageSpaces()) {
            Slog.wtf(TAG, "Runtime is not running with a boot image!");
        }

        // Loop forever.
        Looper.loop();
        throw new RuntimeException("Main thread loop unexpectedly exited");