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

Commit 580125c2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Route DRM HAL libbinder traffic to /dev/vndbinder" into oc-dev

parents 2dd67a43 136b5e46
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ LOCAL_SHARED_LIBRARIES := \
  libhardware \
  liblog \
  libutils \
  libbinder \

LOCAL_C_INCLUDES := \
  hardware/interfaces/drm
+7 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@
#include <hidl/HidlTransportSupport.h>
#include <hidl/LegacySupport.h>

#include <binder/ProcessState.h>

using android::hardware::configureRpcThreadpool;
using android::hardware::joinRpcThreadpool;
using android::hardware::registerPassthroughServiceImplementation;
@@ -30,6 +32,11 @@ using android::hardware::drm::V1_0::IDrmFactory;

int main() {
    ALOGD("android.hardware.drm@1.0-service starting...");

    // The DRM HAL may communicate to other vendor components via
    // /dev/vndbinder
    android::ProcessState::initWithDriver("/dev/vndbinder");

    configureRpcThreadpool(8, true /* callerWillJoin */);
    android::status_t status =
        registerPassthroughServiceImplementation<IDrmFactory>();