Loading init/property_service.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #include <mutex> #include <optional> #include <queue> #include <string_view> #include <thread> #include <vector> Loading Loading @@ -1162,13 +1163,15 @@ static void ProcessKernelDt() { } } constexpr auto ANDROIDBOOT_PREFIX = "androidboot."sv; static void ProcessKernelCmdline() { bool for_emulator = false; ImportKernelCmdline([&](const std::string& key, const std::string& value) { if (key == "qemu") { for_emulator = true; } else if (StartsWith(key, "androidboot.")) { InitPropertySet("ro.boot." + key.substr(12), value); } else if (StartsWith(key, ANDROIDBOOT_PREFIX)) { InitPropertySet("ro.boot." + key.substr(ANDROIDBOOT_PREFIX.size()), value); } }); Loading @@ -1182,8 +1185,8 @@ static void ProcessKernelCmdline() { static void ProcessBootconfig() { ImportBootconfig([&](const std::string& key, const std::string& value) { if (StartsWith(key, "androidboot.")) { InitPropertySet("ro.boot." + key.substr(12), value); if (StartsWith(key, ANDROIDBOOT_PREFIX)) { InitPropertySet("ro.boot." + key.substr(ANDROIDBOOT_PREFIX.size()), value); } else if (key == "hardware") { // "hardware" in bootconfig replaces "androidboot.hardware" kernel // cmdline parameter Loading Loading
init/property_service.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #include <mutex> #include <optional> #include <queue> #include <string_view> #include <thread> #include <vector> Loading Loading @@ -1162,13 +1163,15 @@ static void ProcessKernelDt() { } } constexpr auto ANDROIDBOOT_PREFIX = "androidboot."sv; static void ProcessKernelCmdline() { bool for_emulator = false; ImportKernelCmdline([&](const std::string& key, const std::string& value) { if (key == "qemu") { for_emulator = true; } else if (StartsWith(key, "androidboot.")) { InitPropertySet("ro.boot." + key.substr(12), value); } else if (StartsWith(key, ANDROIDBOOT_PREFIX)) { InitPropertySet("ro.boot." + key.substr(ANDROIDBOOT_PREFIX.size()), value); } }); Loading @@ -1182,8 +1185,8 @@ static void ProcessKernelCmdline() { static void ProcessBootconfig() { ImportBootconfig([&](const std::string& key, const std::string& value) { if (StartsWith(key, "androidboot.")) { InitPropertySet("ro.boot." + key.substr(12), value); if (StartsWith(key, ANDROIDBOOT_PREFIX)) { InitPropertySet("ro.boot." + key.substr(ANDROIDBOOT_PREFIX.size()), value); } else if (key == "hardware") { // "hardware" in bootconfig replaces "androidboot.hardware" kernel // cmdline parameter Loading