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
This commit is contained in:
Ashutosh Joshi
2017-01-26 17:21:04 -08:00
parent 9e77aefe9c
commit 4c43591588

View File

@@ -558,12 +558,12 @@ void getHubsCb(const ::android::hardware::hidl_vec<ContextHub>& 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