diff --git a/drm/1.0/default/Android.mk b/drm/1.0/default/Android.mk index 23a45067b6..7602399842 100644 --- a/drm/1.0/default/Android.mk +++ b/drm/1.0/default/Android.mk @@ -34,6 +34,7 @@ LOCAL_SHARED_LIBRARIES := \ libhardware \ liblog \ libutils \ + libbinder \ LOCAL_C_INCLUDES := \ hardware/interfaces/drm diff --git a/drm/1.0/default/service.cpp b/drm/1.0/default/service.cpp index 823f39e3b7..1a44ce225e 100644 --- a/drm/1.0/default/service.cpp +++ b/drm/1.0/default/service.cpp @@ -21,6 +21,8 @@ #include #include +#include + 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();