Skip to content

Commit 9f3668b

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
1 parent 79c6309 commit 9f3668b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/binder/ProcessState.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,11 @@ ProcessState::ProcessState(const char* driver)
621621
LOG_ALWAYS_FATAL_IF(!opened.ok(),
622622
"Binder driver '%s' could not be opened. Error: %s. Terminating.",
623623
driver, error.c_str());
624+
#else
625+
if (!opened.ok()) {
626+
ALOGE("Binder driver '%s' could not be opened. Error: %s. There may be future issues.",
627+
driver, error.c_str());
628+
}
624629
#endif
625630

626631
if (opened.ok()) {

0 commit comments

Comments
 (0)