Use `ro.boot.qemu` to check if the device is an emulator
`ro.kernel.qemu` is deprecated.
Bug: 182291166
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I1689fe19bbe54358e9b858560c0e4174888a1aff
diff --git a/src/upio.c b/src/upio.c
index 1a88e28..5050393 100644
--- a/src/upio.c
+++ b/src/upio.c
@@ -124,7 +124,7 @@
{
char value[PROPERTY_VALUE_MAX];
- property_get("ro.kernel.qemu", value, "0");
+ property_get("ro.boot.qemu", value, "0");
UPIODBG("is_emulator_context : %s", value);
if (strcmp(value, "1") == 0) {
return 1;