Revert "Use mediadrm from private instead of tangorpro"
Revert submission 29489024-pixel_tablet_mediadrm Reason for revert: DroidMonitor: Potential culprit for http://b/369192150 - Verifying through ABTD before submission. Reverted changes: /q/submissionid:29489024-pixel_tablet_mediadrm Change-Id: I3c1c31b871275bf2b5ceb93120918f749f828cd1
This commit is contained in:
parent
25046bedc2
commit
32c2f95b10
15 changed files with 988 additions and 0 deletions
23
cast_auth/mediadrm/Service.cpp
Normal file
23
cast_auth/mediadrm/Service.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#define LOG_TAG "castkey-main"
|
||||
|
||||
#include <android-base/logging.h>
|
||||
#include <android/binder_manager.h>
|
||||
#include <android/binder_process.h>
|
||||
#include "CreatePluginFactories.h"
|
||||
|
||||
using ::android::base::InitLogging;
|
||||
using ::android::base::LogdLogger;
|
||||
using ::aidl::android::hardware::drm::castkey::createDrmFactory;
|
||||
using ::aidl::android::hardware::drm::castkey::DrmFactory;
|
||||
|
||||
int main(int /*argc*/, char* argv[]) {
|
||||
InitLogging(argv, LogdLogger());
|
||||
ABinderProcess_setThreadPoolMaxThreadCount(8);
|
||||
std::shared_ptr<DrmFactory> drmFactory = createDrmFactory();
|
||||
const std::string drmInstance = std::string() + DrmFactory::descriptor + "/castkey";
|
||||
binder_status_t status =
|
||||
AServiceManager_addService(drmFactory->asBinder().get(), drmInstance.c_str());
|
||||
CHECK(status == STATUS_OK);
|
||||
ABinderProcess_joinThreadPool();
|
||||
return EXIT_FAILURE;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue