From 065f08d09b0fdfe425de81e2abd593d64f0dcae6 Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Tue, 29 Aug 2017 18:37:21 -0700 Subject: [PATCH] cas: fix missing error code conversion bug: 22804304 Change-Id: Ia950e12f7feef3eeb16596c0939aaeb61bfdf5df --- cas/1.0/default/TypeConvert.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cas/1.0/default/TypeConvert.cpp b/cas/1.0/default/TypeConvert.cpp index de1f92bcb3..cd0efdbc2a 100644 --- a/cas/1.0/default/TypeConvert.cpp +++ b/cas/1.0/default/TypeConvert.cpp @@ -62,6 +62,9 @@ Status toStatus(status_t legacyStatus) { case android::ERROR_CAS_DEVICE_REVOKED: status = Status::ERROR_CAS_DEVICE_REVOKED; break; + case android::ERROR_CAS_DECRYPT_UNIT_NOT_INITIALIZED: + status = Status::ERROR_CAS_DECRYPT_UNIT_NOT_INITIALIZED; + break; case android::ERROR_CAS_DECRYPT: status = Status::ERROR_CAS_DECRYPT; break;