From 4c43591588f69f80f21e5341cdf089cb5363d617 Mon Sep 17 00:00:00 2001 From: Ashutosh Joshi Date: Thu, 26 Jan 2017 17:21:04 -0800 Subject: [PATCH] Make requested service for context hub service compliant. Ensure that the requested service name for context hub service is the same as the default service name. Test: GTS "Hello World" test passes. Change-Id: I772c7ae6858416e6aabaceeefff23a5255a4b513 --- .../jni/com_android_server_location_ContextHubService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core/jni/com_android_server_location_ContextHubService.cpp b/services/core/jni/com_android_server_location_ContextHubService.cpp index 517fce058d1a5..05ef0d11e16cb 100644 --- a/services/core/jni/com_android_server_location_ContextHubService.cpp +++ b/services/core/jni/com_android_server_location_ContextHubService.cpp @@ -558,12 +558,12 @@ void getHubsCb(const ::android::hardware::hidl_vec& hubs) { void initContextHubService() { db.hubInfo.numHubs = 0; - db.hubInfo.contextHub = IContexthub::getService("context_hub_hal"); + db.hubInfo.contextHub = IContexthub::getService("context_hub"); if (db.hubInfo.contextHub == nullptr) { ALOGE("Could not load context hub hal"); } else { - ALOGI("Loaded context hub hal"); + ALOGI("Loaded context hub hal, isRemote %s", db.hubInfo.contextHub->isRemote() ? "TRUE" : "FALSE"); } // Prep for storing app info