Correction to logging when SRM version is queried
[ Merge of http://go/wvgerrit/72703 ] SRM is an optional feature and whether it is implemented is upto the discretion of OEMs. If it is not, avoid logging this information. Bug: 124391178 Test: WV unit/integration tests Change-Id: If8d2b1e0b59fb11825f832a5d4259b03c482fd6b
This commit is contained in:
@@ -1856,6 +1856,14 @@ CdmResponseType CryptoSession::GetSrmVersion(uint16_t* srm_version) {
|
||||
|
||||
OEMCryptoResult status = OEMCrypto_GetCurrentSRMVersion(srm_version);
|
||||
|
||||
// SRM is an optional feature. Whether it is implemented is up to the
|
||||
// discretion of OEMs
|
||||
if (status == OEMCrypto_ERROR_NOT_IMPLEMENTED) {
|
||||
LOGV("CryptoSession::GetSrmVersion: OEMCrypto_GetCurrentSRMVersion not "
|
||||
"implemented");
|
||||
return NOT_IMPLEMENTED_ERROR;
|
||||
}
|
||||
|
||||
return MapOEMCryptoResult(
|
||||
status, GET_SRM_VERSION_ERROR, "GetCurrentSRMVersion");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user