Revert CDM changes from oemcrypto 18.4
[ Merge of TBD ] The merge of oemcrypto-v18 cdm branch to udc-widevine-dev caused a number of CDM/plugin fixes to be lost. This undoes the non-oemcrypto changes in http://go/ag/26105061 Bug: 290252845 Test: WVTS, unittests on panther Change-Id: I2bb99f423bda351eee30276cb0e26e3d9e27fa7d
This commit is contained in:
@@ -2,17 +2,19 @@
|
||||
// source code may only be used and distributed under the Widevine License
|
||||
// Agreement.
|
||||
|
||||
#include <android-base/properties.h>
|
||||
#include <unistd.h>
|
||||
#include "properties.h"
|
||||
#include "properties_configuration.h"
|
||||
#include "wv_android_build_id.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
#include <android-base/properties.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "properties.h"
|
||||
#include "properties_configuration.h"
|
||||
#include "widevine_apex_info.h"
|
||||
#include "wv_android_constants.h"
|
||||
#include "widevine_apex_info.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -135,15 +137,17 @@ bool Properties::GetWVCdmVersion(std::string* version) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string apex_version = "";
|
||||
std::string build_number;
|
||||
#ifdef __ANDROID_APEX__
|
||||
{
|
||||
auto info = widevine::apex::GetApexInfo();
|
||||
apex_version = "@" + std::to_string(info->version);
|
||||
build_number = std::to_string(info->version);
|
||||
}
|
||||
#else
|
||||
build_number = WV_ANDROID_BUILD_ID;
|
||||
#endif
|
||||
|
||||
*version = kWVAndroidCdmVersion + apex_version;
|
||||
*version = kWVAndroidCdmVersion + "@" + build_number;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user