Only use libbinder_ndk for aidl service.
[ Merged from http://go/wvgerrit/151169 ] Test: Netflix and Google TV streaming and downloaded playback Test: unit tests Test: atest VtsAidlHalDrmTargetTest Test: adb shell readelf -d /vendor/bin/hw/android.hardware.drm-service.widevine Test: adb shell readelf -d /vendor/lib64/libwvaidl.so Bug: 230791937 Change-Id: Ia60d9fc838bf228b40d99b076a837ae789fa2d03
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include <android/binder_ibinder_platform.h>
|
||||
#include <android/binder_manager.h>
|
||||
#include <android/binder_process.h>
|
||||
#include <binder/ProcessState.h>
|
||||
|
||||
#include "WVCreatePluginFactories.h"
|
||||
#include "WVDrmFactory.h"
|
||||
@@ -31,6 +30,8 @@ int main(int /* argc */, char** /* argv */) {
|
||||
ABinderProcess_setThreadPoolMaxThreadCount(8);
|
||||
|
||||
std::shared_ptr<WVDrmFactory> drmFactory = createDrmFactory();
|
||||
AIBinder_setRequestingSid(drmFactory->asBinder().get(), true);
|
||||
|
||||
const std::string drmInstance =
|
||||
std::string(WVDrmFactory::descriptor) + "/widevine";
|
||||
binder_status_t status = AServiceManager_addService(
|
||||
|
||||
Reference in New Issue
Block a user