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:
@@ -631,7 +631,10 @@ CdmResponseType CdmEngine::QueryStatus(SecurityLevel security_level,
|
||||
} else if (query_token == QUERY_KEY_CURRENT_SRM_VERSION) {
|
||||
uint16_t current_srm_version;
|
||||
status = crypto_session->GetSrmVersion(¤t_srm_version);
|
||||
if (status != NO_ERROR) {
|
||||
if (status == NOT_IMPLEMENTED_ERROR) {
|
||||
*query_response = QUERY_VALUE_NONE;
|
||||
return NO_ERROR;
|
||||
} else if (status != NO_ERROR) {
|
||||
LOGW("CdmEngine::QueryStatus: GetCurrentSRMVersion failed: %d", status);
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user