Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4488af1 authored by Iliyan Malchev's avatar Iliyan Malchev
Browse files

android.hardware.camera.provider@2.4: set up /dev/vndbinder



The camera-HAL implementation may need to communicate with other vendor
components over /dev/vndbinder.  Route all libbinder traffic to that
node.

b/36651814
b/36651237
b/35870313
b/36683636

Test: sailfish

Change-Id: I9b80fefbcdf5ce18a2d788e8582ea8791a604435
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
parent 17f0c0dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ cc_binary {
    shared_libs: [
        "libhidlbase",
        "libhidltransport",
	"libbinder",
        "liblog",
        "libutils",
        "android.hardware.camera.device@1.0",
+5 −0
Original line number Diff line number Diff line
@@ -19,11 +19,16 @@
#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);
}