Route drm@1.0-service.widevine libbinder to /dev/vndbinder am: 28b89a9b4f
am: 22169f63e8
Change-Id: I5c734f0d04c7464cc41da6c546e730d530765c16
This commit is contained in:
@@ -24,6 +24,7 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
liblog \
|
||||
libutils \
|
||||
libwvhidl \
|
||||
libbinder \
|
||||
|
||||
LOCAL_MODULE := android.hardware.drm@1.0-service.widevine
|
||||
LOCAL_INIT_RC := src_hidl/android.hardware.drm@1.0-service.widevine.rc
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <android-base/logging.h>
|
||||
#include <hidl/HidlTransportSupport.h>
|
||||
|
||||
#include <binder/ProcessState.h>
|
||||
|
||||
using ::android::hardware::configureRpcThreadpool;
|
||||
using ::android::hardware::joinRpcThreadpool;
|
||||
using ::android::sp;
|
||||
@@ -33,6 +35,10 @@ using wvdrm::hardware::drm::V1_0::widevine::WVDrmFactory;
|
||||
int main(int /* argc */, char** /* argv */) {
|
||||
ALOGD("android.hardware.drm@1.0-service.widevine starting...");
|
||||
|
||||
// The DRM HAL may communicate to other vendor components via
|
||||
// /dev/vndbinder
|
||||
android::ProcessState::initWithDriver("/dev/vndbinder");
|
||||
|
||||
sp<IDrmFactory> drmFactory = new WVDrmFactory;
|
||||
sp<ICryptoFactory> cryptoFactory = new WVCryptoFactory;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user