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: Id42d79af90b1fe7e182a96c53c84248e81a7c259
This commit is contained in:
@@ -1125,7 +1125,7 @@ public final class SystemServer {
|
||||
false);
|
||||
boolean enableLeftyService = SystemProperties.getBoolean("config.enable_lefty", false);
|
||||
|
||||
boolean isEmulator = SystemProperties.get("ro.kernel.qemu").equals("1");
|
||||
boolean isEmulator = SystemProperties.get("ro.boot.qemu").equals("1");
|
||||
|
||||
boolean isWatch = context.getPackageManager().hasSystemFeature(
|
||||
PackageManager.FEATURE_WATCH);
|
||||
|
||||
Reference in New Issue
Block a user