Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c435915 authored by Ashutosh Joshi's avatar Ashutosh Joshi
Browse files

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
parent 9e77aefe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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