diff options
Diffstat (limited to 'gps/gps.cpp')
-rw-r--r-- | gps/gps.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gps/gps.cpp b/gps/gps.cpp index efd1181..8b295af 100644 --- a/gps/gps.cpp +++ b/gps/gps.cpp @@ -3,6 +3,7 @@ #define LOG_TAG "libhardware" #include <utils/Log.h> +#include "qemu.h" static const GpsInterface* sGpsInterface = NULL; @@ -10,10 +11,7 @@ static void gps_find_hardware( void ) { #ifdef HAVE_QEMU_GPS_HARDWARE - char propBuf[PROPERTY_VALUE_MAX]; - - property_get("ro.kernel.qemu", propBuf, ""); - if (propBuf[0] == '1') { + if (qemu_check()) { sGpsInterface = gps_get_qemu_interface(); if (sGpsInterface) { LOGD("using QEMU GPS Hardware emulation\n"); |