Ignore certain errors on RemoveOfflineLicense().
[ Merge of http://go/wvgerrit/210652 ] The CDM API RemoveOfflineLicense() is used to remove an offline license by key set ID. From the app's perspective, removing the offline license should not depend on an app to be provisioned, or the license being loadable. However, internally, the CDM attempts to restore the license to lock out its usage entry. An issue arises when the license is not able to be restored, which will cause errors related to the restoration to be returned to the app. The license is still deleted in case of errors, but certain partners have experienced GTS failures when using the MediaDRM API removeOfflineLicense(). This change attempts to catch some of the common errors, but not all. If certain errors are encountered during the restoration process, the are not returned to the app. Additional error cases may be added later, depending on vendor feedback. Bug: 319055420 Bug: 357863269 Bug: 370195605 Bug: 288118860 Bug: 302049654 Bug: 346845333 Bug: 312595506 Bug: 345232142 Bug: 303261245 Bug: 287735498 Bug: 372105842 Test: WVTS on Oriole Change-Id: I020bbea30e5f6e0ae2777d8a1d4858c4f2af107b
This commit is contained in:
@@ -386,7 +386,7 @@ static inline WvStatus mapCdmResponseType(wvcdm::CdmResponseType res) {
|
||||
case wvcdm::PRIVACY_MODE_ERROR_3:
|
||||
err = Status::MISSING_CERTIFICATE;
|
||||
break;
|
||||
case wvcdm::LOAD_DEVICE_RSA_KEY_ERROR:
|
||||
case wvcdm::LOAD_DRM_PRIVATE_KEY_ERROR:
|
||||
err = Status::PROVISIONING_CERTIFICATE_ERROR;
|
||||
break;
|
||||
case wvcdm::CERT_PROVISIONING_EMPTY_SERVICE_CERTIFICATE:
|
||||
|
||||
Reference in New Issue
Block a user