Correct an error reported when a license is restored and then released
[ Merge of http://go/wvgerrit/128143 ] Now reports LICENSE_STATE_ERROR rather than ERROR_DRM_GENERIC_PLUGIN to make the cause of failure and suggested action more clear for app developers. Also added an additional error log. Bug: 190645000 Test: WV unit/integration tests Change-Id: Ib23ca628c590316f90f497d8fdfbab24fd644d6f
This commit is contained in:
@@ -361,6 +361,7 @@ static Status mapCdmResponseType_1_0(wvcdm::CdmResponseType res) {
|
||||
case wvcdm::CERT_PROVISIONING_RESPONSE_ERROR_9:
|
||||
case wvcdm::CERT_PROVISIONING_RESPONSE_ERROR_10:
|
||||
case wvcdm::CLIENT_TOKEN_NOT_SET:
|
||||
case wvcdm::USAGE_ENTRY_ALREADY_LOADED:
|
||||
ALOGW("Returns UNKNOWN error for legacy status: %d", res);
|
||||
return Status::ERROR_DRM_UNKNOWN;
|
||||
|
||||
@@ -617,6 +618,7 @@ static S mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
break;
|
||||
case wvcdm::GET_RELEASED_LICENSE_ERROR:
|
||||
case wvcdm::RESTORE_OFFLINE_LICENSE_ERROR_3:
|
||||
case wvcdm::USAGE_ENTRY_ALREADY_LOADED:
|
||||
err = ::drm::V1_4::Status::LICENSE_STATE_ERROR;
|
||||
break;
|
||||
case wvcdm::DEVICE_CERTIFICATE_ERROR_2:
|
||||
|
||||
Reference in New Issue
Block a user