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

Commit 8d93a71d authored by Steven Moreland's avatar Steven Moreland
Browse files

Log when context manager is unavailable.

defaultServiceManager loops here, but service manager is always expected
to be available. If it's not, log.

Bug: N/A
Test: N/A
Change-Id: Ie83c7f7136390301651efd6371bae64455b29961
parent f2a15e87
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -112,6 +112,10 @@ sp<IBinder> ProcessState::getContextObject(const sp<IBinder>& /*caller*/)
{
    sp<IBinder> context = getStrongProxyForHandle(0);

    if (context == nullptr) {
       ALOGW("Not able to get context object on %s.", mDriverName.c_str());
    }

    // The root object is special since we get it directly from the driver, it is never
    // written by Parcell::writeStrongBinder.
    internal::Stability::tryMarkCompilationUnit(context.get());