summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2021-03-22 14:18:44 -0700
committerRoman Kiryanov <rkir@google.com>2021-03-22 14:18:44 -0700
commit94ce40a527f446b51afd8fdac42469f13f14d296 (patch)
tree28e7faa7c4f6d1df2535683fd4bd8ab55090001d
parent12744bd2ad688b6a7b3cf009f490a86eff508282 (diff)
Do not populate `ro.kernel.qemu` in `ProcessKernelCmdline`
The emulator migrated to `ro.boot.qemu`. Bug: 182291166 Test: presubmit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: Iaa3bdff5cc1efa79c21ae2dc2bdf7ec74731f66c
-rw-r--r--init/property_service.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/property_service.cpp b/init/property_service.cpp
index 382f43030..27ace7d43 100644
--- a/init/property_service.cpp
+++ b/init/property_service.cpp
@@ -1172,7 +1172,8 @@ static void ProcessKernelCmdline() {
} else if (StartsWith(key, "qemu."sv)) {
InitPropertySet("ro.kernel." + key, value);
} else if (key == "qemu") {
- InitPropertySet("ro.kernel." + key, value); // emulator specific, deprecated
+ // emulator specific, should be retired once emulator migrates to
+ // androidboot.
InitPropertySet("ro.boot." + key, value);
}
});