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

Commit 81371f11 authored by Ravneet Dhanjal's avatar Ravneet Dhanjal
Browse files

Camera: Fix delay in service registration

We have encountered a problem where the registration of another service
that is referencing the CameraService is delayed
when registering it as a service.

Like HIDL case, Changing to checkService can help resolve the delay issue
that occur during the registration of services

Bug: 317153705
Test: manual test with device
Change-Id: Ib04a03f13ce468495c71d616708723cd7cb565f3
parent 67cadc51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ CameraProviderManager::AidlServiceInteractionProxyImpl::getAidlService(
    if (flags::lazy_aidl_wait_for_service()) {
        binder = AServiceManager_waitForService(serviceName.c_str());
    } else {
        binder = AServiceManager_getService(serviceName.c_str());
        binder = AServiceManager_checkService(serviceName.c_str());
    }

    if (binder == nullptr) {