Report OEMCrypto Build Information in License Request
Merge from Widevine repo of http://go/wvgerrit/78623 This updates the license request client identification to include OEMCrypto build information. Bug: 129070445 Test: ExoPlayer on crosshatch with mod mock Change-Id: I0dbce0cca4e9810e14f60561e4e434f1dbcadfb6
This commit is contained in:
@@ -24,6 +24,8 @@ const std::string kKeyDeviceId = "device_id";
|
||||
const std::string kKeyWvCdmVersion = "widevine_cdm_version";
|
||||
const std::string kKeyOemCryptoSecurityPatchLevel =
|
||||
"oem_crypto_security_patch_level";
|
||||
const std::string kKeyOemCryptoBuildInformation =
|
||||
"oem_crypto_build_information";
|
||||
} // unnamed namespace
|
||||
|
||||
namespace wvcdm {
|
||||
@@ -272,6 +274,12 @@ CdmResponseType ClientIdentification::Prepare(
|
||||
client_capabilities->set_resource_rating_tier(tier);
|
||||
}
|
||||
}
|
||||
std::string info;
|
||||
if (crypto_session_->GetBuildInformation(&info)) {
|
||||
client_info = client_id->add_client_info();
|
||||
client_info->set_name(kKeyOemCryptoBuildInformation);
|
||||
client_info->set_value(info);
|
||||
}
|
||||
}
|
||||
|
||||
return NO_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user