libhwbinder: missing /dev/hwbinder is not a fatal error
b/31458381
b/31240290
causes b/31715232
Test: pass
Change-Id: I9b6b9e8ce5c04e4707f12cf623718a037c35596a
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/ProcessState.cpp b/ProcessState.cpp
index 42b95dd..c8e788c 100644
--- a/ProcessState.cpp
+++ b/ProcessState.cpp
@@ -353,13 +353,14 @@
mVMStart = mmap(0, BINDER_VM_SIZE, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, mDriverFD, 0);
if (mVMStart == MAP_FAILED) {
// *sigh*
- ALOGE("Using /dev/binder failed: unable to mmap transaction memory.\n");
+ ALOGE("Using /dev/hwbinder failed: unable to mmap transaction memory.\n");
close(mDriverFD);
mDriverFD = -1;
}
}
-
- LOG_ALWAYS_FATAL_IF(mDriverFD < 0, "Binder driver could not be opened. Terminating.");
+ else {
+ ALOGE("Binder driver could not be opened. Terminating.");
+ }
}
ProcessState::~ProcessState()