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:
@@ -301,10 +301,11 @@ enum {
|
||||
kCertProvisioningResponseError9 = ERROR_DRM_VENDOR_MIN + 316,
|
||||
kCertProvisioningResponseError10 = ERROR_DRM_VENDOR_MIN + 317,
|
||||
kClientTokenNotSet = ERROR_DRM_VENDOR_MIN + 318,
|
||||
kUsageEntryAlreadyLoaded = ERROR_DRM_VENDOR_MIN + 319,
|
||||
|
||||
// This should always follow the last error code.
|
||||
// The offset value should be updated each time a new error code is added.
|
||||
kErrorWVDrmMaxErrorUsed = ERROR_DRM_VENDOR_MIN + 318,
|
||||
kErrorWVDrmMaxErrorUsed = ERROR_DRM_VENDOR_MIN + 319,
|
||||
|
||||
// Used by crypto test mode
|
||||
kErrorTestMode = ERROR_DRM_VENDOR_MAX,
|
||||
|
||||
@@ -539,6 +539,8 @@ static android::status_t mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
return kUpdateUsageEntryUnknownError;
|
||||
case wvcdm::USAGE_ENTRY_NUMBER_MISMATCH:
|
||||
return kUsageEntryNumberMismatch;
|
||||
case wvcdm::USAGE_ENTRY_ALREADY_LOADED:
|
||||
return kUsageEntryAlreadyLoaded;
|
||||
case wvcdm::USAGE_GET_ENTRY_RETRIEVE_INVALID_STORAGE_TYPE:
|
||||
return kUsageGetEntryRetrieveInvalidStorageType;
|
||||
case wvcdm::USAGE_GET_ENTRY_RETRIEVE_LICENSE_FAILED:
|
||||
|
||||
Reference in New Issue
Block a user