summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2021-03-10 16:10:19 -0800
committerRoman Kiryanov <rkir@google.com>2021-03-10 16:10:19 -0800
commit03ce26263d135eb2bd093c1c1ca0bfbf26b7c475 (patch)
tree1017dacb9d3e483574b8c8521aa415d86284ea71
parentb0bd09ea6321072a57b884115c37aa43198cb7e1 (diff)
downloadplatform_hardware_google_camera-03ce26263d135eb2bd093c1c1ca0bfbf26b7c475.tar.gz
platform_hardware_google_camera-03ce26263d135eb2bd093c1c1ca0bfbf26b7c475.tar.bz2
platform_hardware_google_camera-03ce26263d135eb2bd093c1c1ca0bfbf26b7c475.zip
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: Ic0c0620046b812cf3f455e0cb1f88471b6fd6739
-rw-r--r--devices/EmulatedCamera/hwl/EmulatedCameraProviderHWLImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/EmulatedCamera/hwl/EmulatedCameraProviderHWLImpl.cpp b/devices/EmulatedCamera/hwl/EmulatedCameraProviderHWLImpl.cpp
index 70d87f0..67cbcd6 100644
--- a/devices/EmulatedCamera/hwl/EmulatedCameraProviderHWLImpl.cpp
+++ b/devices/EmulatedCamera/hwl/EmulatedCameraProviderHWLImpl.cpp
@@ -668,7 +668,7 @@ status_t EmulatedCameraProviderHwlImpl::Initialize() {
size_t logical_id = 0;
std::vector<const char*> configurationFileLocation;
char prop[PROPERTY_VALUE_MAX];
- if (!property_get_bool("ro.kernel.qemu", false)) {
+ if (!property_get_bool("ro.boot.qemu", false)) {
for (const auto& iter : kConfigurationFileLocation) {
configurationFileLocation.emplace_back(iter);
}