diff options
Diffstat (limited to 'android/1.1/service.cpp')
-rw-r--r-- | android/1.1/service.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/android/1.1/service.cpp b/android/1.1/service.cpp index ff7a486..c1bc6b0 100644 --- a/android/1.1/service.cpp +++ b/android/1.1/service.cpp @@ -23,6 +23,7 @@ #include <android/hardware/gnss/1.1/IGnss.h> #include <hidl/LegacySupport.h> +#include "loc_cfg.h" extern "C" { #include "vndfwk-detect.h" } @@ -31,7 +32,10 @@ using android::hardware::gnss::V1_1::IGnss; using android::hardware::defaultPassthroughServiceImplementation; int main() { - if (!isRunningWithVendorEnhancedFramework()) { + bool vendorEnhanced = isRunningWithVendorEnhancedFramework(); + setVendorEnhanced(vendorEnhanced); + + if (!vendorEnhanced) { return defaultPassthroughServiceImplementation<IGnss>(); } else { return -1; |