Merge "Adding ApexInfo utility" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-03-10 06:11:13 +00:00
committed by Android (Google) Code Review
8 changed files with 209 additions and 2 deletions

View File

@@ -22,11 +22,19 @@
#include "WVCreatePluginFactories.h"
#include "WVDrmFactory.h"
#include "widevine_apex_info.h"
using ::wvdrm::hardware::drm::widevine::createDrmFactory;
using ::wvdrm::hardware::drm::widevine::WVDrmFactory;
int main(int /* argc */, char** /* argv */) {
#ifdef __ANDROID_APEX__
{
auto info = widevine::apex::GetApexInfo();
CHECK(info.ok()) << info.error();
LOG(INFO) << "Starting from " << info->name << "(" << info->version << ")";
}
#endif
ABinderProcess_setThreadPoolMaxThreadCount(8);
std::shared_ptr<WVDrmFactory> drmFactory = createDrmFactory();