Route drm@1.0-service.widevine libbinder to /dev/vndbinder

am: 28b89a9b4f

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

View File

@@ -24,6 +24,7 @@ LOCAL_SHARED_LIBRARIES := \
liblog \ liblog \
libutils \ libutils \
libwvhidl \ libwvhidl \
libbinder \
LOCAL_MODULE := android.hardware.drm@1.0-service.widevine LOCAL_MODULE := android.hardware.drm@1.0-service.widevine
LOCAL_INIT_RC := src_hidl/android.hardware.drm@1.0-service.widevine.rc LOCAL_INIT_RC := src_hidl/android.hardware.drm@1.0-service.widevine.rc

View File

@@ -21,6 +21,8 @@
#include <android-base/logging.h> #include <android-base/logging.h>
#include <hidl/HidlTransportSupport.h> #include <hidl/HidlTransportSupport.h>
#include <binder/ProcessState.h>
using ::android::hardware::configureRpcThreadpool; using ::android::hardware::configureRpcThreadpool;
using ::android::hardware::joinRpcThreadpool; using ::android::hardware::joinRpcThreadpool;
using ::android::sp; using ::android::sp;
@@ -33,6 +35,10 @@ using wvdrm::hardware::drm::V1_0::widevine::WVDrmFactory;
int main(int /* argc */, char** /* argv */) { int main(int /* argc */, char** /* argv */) {
ALOGD("android.hardware.drm@1.0-service.widevine starting..."); 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<IDrmFactory> drmFactory = new WVDrmFactory;
sp<ICryptoFactory> cryptoFactory = new WVCryptoFactory; sp<ICryptoFactory> cryptoFactory = new WVCryptoFactory;