mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "Route DRM HAL libbinder traffic to /dev/vndbinder" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
580125c253
@@ -34,6 +34,7 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
libhardware \
|
||||
liblog \
|
||||
libutils \
|
||||
libbinder \
|
||||
|
||||
LOCAL_C_INCLUDES := \
|
||||
hardware/interfaces/drm
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user