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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user