hidl: return BAD_VALUE from RemoveOfflineLicense when keyset is not found
Bug: 127828539 Test: VtsHalDrmV1_2TargetTest Change-Id: Ia567be076a9460546c59c2a38231e18bb0549ce3
This commit is contained in:
@@ -238,7 +238,9 @@ CdmResponseType CdmSession::RestoreOfflineSession(
|
||||
"sub error: %d, key set id = %s",
|
||||
sub_error_code, key_set_id.c_str());
|
||||
SetErrorDetail(error_detail, sub_error_code);
|
||||
return GET_LICENSE_ERROR;
|
||||
return sub_error_code == DeviceFiles::kFileNotFound
|
||||
? KEYSET_ID_NOT_FOUND_4
|
||||
: GET_LICENSE_ERROR;
|
||||
}
|
||||
|
||||
// Attempts to restore a released offline license are treated as a release
|
||||
|
||||
Reference in New Issue
Block a user