device_google_tangorpro/cast_auth/mediadrm/Service.cpp
Liana Kazanova (xWF) 32c2f95b10 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
2024-09-23 21:03:33 +00:00

23 lines
No EOL
866 B
C++

#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;
}