OSDN Git Service

android.hardware.camera.provider@2.4: set up /dev/vndbinder am: b4488af17c
authorIliyan Malchev <malchev@google.com>
Thu, 13 Apr 2017 04:02:53 +0000 (04:02 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Thu, 13 Apr 2017 04:02:53 +0000 (04:02 +0000)
am: 63c2f84aaf

Change-Id: I3c20eff149da51a9137a8196547d637e4d3eb2bc

camera/provider/2.4/default/Android.bp
camera/provider/2.4/default/service.cpp

index 9506827..8e8df62 100644 (file)
@@ -37,6 +37,7 @@ cc_binary {
     shared_libs: [
         "libhidlbase",
         "libhidltransport",
+       "libbinder",
         "liblog",
         "libutils",
         "android.hardware.camera.device@1.0",
index df2602e..7eeb637 100644 (file)
 #include <android/hardware/camera/provider/2.4/ICameraProvider.h>
 #include <hidl/LegacySupport.h>
 
+#include <binder/ProcessState.h>
+
 using android::hardware::camera::provider::V2_4::ICameraProvider;
 using android::hardware::defaultPassthroughServiceImplementation;
 
 int main()
 {
     ALOGI("Camera provider Service is starting.");
+    // The camera HAL may communicate to other vendor components via
+    // /dev/vndbinder
+    android::ProcessState::initWithDriver("/dev/vndbinder");
     return defaultPassthroughServiceImplementation<ICameraProvider>("legacy/0", /*maxThreads*/ 6);
 }