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

Commit 4a47c74b authored by Roman Kiryanov's avatar Roman Kiryanov
Browse files

Populate `ro.boot.qemu` for the emulator device



Bug: 182291166
Test: presubmit
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
Change-Id: Ied78f42363c1f6580fe6e5660b14c257960aed98
parent 1a705d49
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1169,8 +1169,11 @@ static void ProcessKernelCmdline() {
    ImportKernelCmdline([&](const std::string& key, const std::string& value) {
        if (StartsWith(key, ANDROIDBOOT_PREFIX)) {
            InitPropertySet("ro.boot." + key.substr(ANDROIDBOOT_PREFIX.size()), value);
        } else if (StartsWith(key, "qemu."sv) || (key == "qemu")) {
        } else if (StartsWith(key, "qemu."sv)) {
            InitPropertySet("ro.kernel." + key, value);
        } else if (key == "qemu") {
            InitPropertySet("ro.kernel." + key, value);  // emulator specific, deprecated
            InitPropertySet("ro.boot." + key, value);
        }
    });
}