diff options
author | Saurabh Srivastava <ssrivast@codeaurora.org> | 2019-01-08 17:32:37 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-01-09 20:32:30 -0800 |
commit | 400c1e8b5748ae2ad360aa558ad3552ce4e0227c (patch) | |
tree | cfa0064c238e3c069b239568771337b05fc0563e /android/1.0/service.cpp | |
parent | 18c99090be9e90ca419d17410de01bca1bdd90b0 (diff) | |
download | gps-400c1e8b5748ae2ad360aa558ad3552ce4e0227c.tar.gz |
Launch platform specific processes
Launch processes based on whether the
platform is vendor enhanced or not.
Change-Id: I04c074023e631c4f5d1e16ac166612f323b7a868
CRs-Fixed: 2341030
Diffstat (limited to 'android/1.0/service.cpp')
-rw-r--r-- | android/1.0/service.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/android/1.0/service.cpp b/android/1.0/service.cpp index 6b0f602..2f258ae 100644 --- a/android/1.0/service.cpp +++ b/android/1.0/service.cpp @@ -23,9 +23,17 @@ #include <android/hardware/gnss/1.0/IGnss.h> #include <hidl/LegacySupport.h> +extern "C" { +#include "vndfwk-detect.h" +} + using android::hardware::gnss::V1_0::IGnss; using android::hardware::defaultPassthroughServiceImplementation; int main() { - return defaultPassthroughServiceImplementation<IGnss>(); + if (!isRunningWithVendorEnhancedFramework()) { + return defaultPassthroughServiceImplementation<IGnss>(); + } else { + return -1; + } } |