OEMCrypto v16.1
Merge of http://go/wvgerrit/93404 This CL updates the Widevine CDM to support OEMCrypto v16.1 Test: Tested in 16.2 CL Bug: 141247171 Change-Id: I69bd993500f6fb63bf6010c8b0250dc7acc3d71b
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
#include "WVDrmPlugin.h"
|
||||
|
||||
#include "HidlTypes.h"
|
||||
#include "TypeConvert.h"
|
||||
#include "android-base/macros.h"
|
||||
#include "hidl_metrics_adapter.h"
|
||||
#include "mapErrors-inl.h"
|
||||
@@ -21,8 +23,6 @@
|
||||
#include "metrics.pb.h"
|
||||
#include "openssl/sha.h"
|
||||
#include "wv_cdm_constants.h"
|
||||
#include "TypeConvert.h"
|
||||
#include "HidlTypes.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -1244,6 +1244,10 @@ Return<void> WVDrmPlugin::getPropertyString(const hidl_string& propertyName,
|
||||
} else if (name == "decryptHashError") {
|
||||
status = mapCdmResponseType(
|
||||
mCDM->GetDecryptHashError(mDecryptHashSessionId, &value));
|
||||
} else if (name == "maxUsageEntriesSupported") {
|
||||
status = queryProperty(wvcdm::QUERY_KEY_MAX_USAGE_TABLE_ENTRIES, value);
|
||||
} else if (name == "oemCryptoApiMinorVersion") {
|
||||
status = queryProperty(wvcdm::QUERY_KEY_OEMCRYPTO_API_MINOR_VERSION, value);
|
||||
} else {
|
||||
ALOGE("App requested unknown string property %s", name.c_str());
|
||||
status = Status::ERROR_DRM_CANNOT_HANDLE;
|
||||
|
||||
Reference in New Issue
Block a user