Skip to content

Commit c9e4fdb

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Add log when avoiding fatal with no binder driver" into main
2 parents 5944038 + 9f3668b commit c9e4fdb

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)