Merge "Add log to find issue with missing hwservicemanager easier" into main am: 825c0feff9 am: 9500d88f1d
Original change: https://android-review.googlesource.com/c/platform/system/libhidl/+/2736447
Change-Id: I4e030b1b4f6e658ac063359027427be6fce61eba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/transport/ServiceManagement.cpp b/transport/ServiceManagement.cpp
index a5ad23e..78c1e96 100644
--- a/transport/ServiceManagement.cpp
+++ b/transport/ServiceManagement.cpp
@@ -324,6 +324,11 @@
if (!isHwServiceManagerInstalled()) {
// hwservicemanager is not available on this device.
+ LOG(WARNING)
+ << "hwservicemanager is not installed on the device. If HIDL support "
+ << "is still needed, hwservicemanager and android.hidl.allocator@1.0-service "
+ << "need to be added to the device's PRODUCT_PACKAGES and the kernel config "
+ << "needs to have 'hwbinder' in CONFIG_ANDROID_BINDER_DEVICES.";
gDefaultServiceManager = sp<NoHwServiceManager>::make();
return gDefaultServiceManager;
}