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

am: 580125c253

Change-Id: Ic9a151f844b9db907c3218c4b4b479d75d307581
This commit is contained in:
Iliyan Malchev 2017-04-14 18:25:11 +00:00 committed by android-build-merger
commit ef983f7ae1
2 changed files with 8 additions and 0 deletions

View file

@ -34,6 +34,7 @@ LOCAL_SHARED_LIBRARIES := \
libhardware \
liblog \
libutils \
libbinder \
LOCAL_C_INCLUDES := \
hardware/interfaces/drm

View file

@ -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>();