From 96f96daf990ebb337818dba709c2a6cd7be8028d Mon Sep 17 00:00:00 2001 From: Roman Kiryanov Date: Wed, 10 Mar 2021 22:35:30 -0800 Subject: 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 Change-Id: I1689fe19bbe54358e9b858560c0e4174888a1aff --- src/upio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ static int is_emulator_context(void) { 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; -- cgit v1.2.3