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

Commit 9f3668b6 authored by Devin Moore's avatar Devin Moore
Browse files

Add log when avoiding fatal with no binder driver

This is only added on non-Android devices, as the Android devices will
crash with a FATAL log.
This isn't a well tested path and can lead to issue. Here is an error
log for now.

Flag: EXEMPT logging on host only
Test: m
Bug: none
Change-Id: I0457a9ad911c9760f83b4c79c9e845fd8040766e
parent 79c6309a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -621,6 +621,11 @@ ProcessState::ProcessState(const char* driver)
    LOG_ALWAYS_FATAL_IF(!opened.ok(),
                        "Binder driver '%s' could not be opened. Error: %s. Terminating.",
                        driver, error.c_str());
#else
    if (!opened.ok()) {
        ALOGE("Binder driver '%s' could not be opened. Error: %s. There may be future issues.",
              driver, error.c_str());
    }
#endif

    if (opened.ok()) {