axolotl: gps: Remove gnss_vendor client registration logic

Registering for android.hardware.gnss/gnss_vendor removed
and replaced by always dynamically loading vendor enhanced
gnss hal if present.

Change-Id: I3c7a45870b2cc34806d09cf430de9d60a9f129c7
CRs-fixed: 2696395
diff --git a/gps/android/2.0/android.hardware.gnss@2.0-service-qti.xml b/gps/android/2.0/android.hardware.gnss@2.0-service-qti.xml
index de82c60..ff9fb2c 100644
--- a/gps/android/2.0/android.hardware.gnss@2.0-service-qti.xml
+++ b/gps/android/2.0/android.hardware.gnss@2.0-service-qti.xml
@@ -29,7 +29,6 @@
     <hal format="hidl">
         <name>android.hardware.gnss</name>
         <transport>hwbinder</transport>
-        <fqname>@1.0::IGnss/gnss_vendor</fqname>
         <fqname>@1.1::IGnss/default</fqname>
         <fqname>@2.0::IGnss/default</fqname>
     </hal>
diff --git a/gps/android/2.0/service.cpp b/gps/android/2.0/service.cpp
index e484a16..f7efb18 100644
--- a/gps/android/2.0/service.cpp
+++ b/gps/android/2.0/service.cpp
@@ -60,28 +60,19 @@
 
     status = registerPassthroughServiceImplementation<IGnss>();
     if (status == OK) {
-        if (vendorEnhanced) {
     #ifdef LOC_HIDL_VERSION
-            #define VENDOR_ENHANCED_LIB "vendor.qti.gnss@" LOC_HIDL_VERSION "-service.so"
+        #define VENDOR_ENHANCED_LIB "vendor.qti.gnss@" LOC_HIDL_VERSION "-service.so"
 
-            void* libHandle = NULL;
-            vendorEnhancedServiceMain* vendorEnhancedMainMethod = (vendorEnhancedServiceMain*)
-                    dlGetSymFromLib(libHandle, VENDOR_ENHANCED_LIB, "main");
-            if (NULL != vendorEnhancedMainMethod) {
-                (*vendorEnhancedMainMethod)(0, NULL);
-            }
-    #else
-            ALOGE("LOC_HIDL_VERSION not defined.");
-    #endif
-        } else {
-            status = registerPassthroughServiceImplementation<IGnss>("gnss_vendor");
-            if (status != OK) {
-                ALOGE("Error while registering gnss_vendor service: %d", status);
-            }
+        void* libHandle = NULL;
+        vendorEnhancedServiceMain* vendorEnhancedMainMethod = (vendorEnhancedServiceMain*)
+                dlGetSymFromLib(libHandle, VENDOR_ENHANCED_LIB, "main");
+        if (NULL != vendorEnhancedMainMethod) {
+            (*vendorEnhancedMainMethod)(0, NULL);
         }
-
+    #else
+        ALOGI("LOC_HIDL_VERSION not defined.");
+    #endif
         joinRpcThreadpool();
-
     } else {
         ALOGE("Error while registering IGnss 2.0 service: %d", status);
     }