Integrate apex version info to Widevine CDM property

Bug: 272587114
Test: dumpsys android.hardware.drm.IDrmFactory/widevine -p
Change-Id: Ica99867511391c252b67f40162665380bd2d8740
This commit is contained in:
Kyle Zhang
2023-03-15 19:19:36 +00:00
parent a4de7eb9b5
commit ce1fb4f089
3 changed files with 19 additions and 13 deletions

View File

@@ -22,19 +22,11 @@
#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();