summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2021-03-10 22:35:30 -0800
committerRoman Kiryanov <rkir@google.com>2021-03-10 22:35:30 -0800
commit96f96daf990ebb337818dba709c2a6cd7be8028d (patch)
treeb249c61abd349f7a66e30e998a5940470e22e6ed
parentf5d505f0e2f56d26d5686c529e6156fe51c57b61 (diff)
downloadlibbt-96f96daf990ebb337818dba709c2a6cd7be8028d.tar.gz
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
-rw-r--r--src/upio.c2
1 files changed, 1 insertions, 1 deletions
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;