Snap for 8082780 from e5822def1d to tm-release
Change-Id: I98cedf4fe695b99fd160d4f1d5b3d499ac395626
This commit is contained in:
@@ -679,8 +679,14 @@ CdmResponseType CryptoSession::GetInternalDeviceUniqueId(
|
||||
const bool use_null_device_id = WithStaticFieldReadLock(
|
||||
"GetInternalDeviceUniqueId() use_null_device_id", [&] {
|
||||
if (requested_security_level_ != kLevelDefault) return false;
|
||||
return sts == OEMCrypto_ERROR_KEYBOX_INVALID &&
|
||||
needs_keybox_provisioning_;
|
||||
if (!needs_keybox_provisioning_) return false;
|
||||
if (sts != OEMCrypto_ERROR_KEYBOX_INVALID &&
|
||||
sts != OEMCrypto_ERROR_NO_DEVICEID) {
|
||||
// Logging other error for debugging, but null device
|
||||
// ID should still be returned.
|
||||
LOGE("Unexpected error: sts = %d", sts);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
if (use_null_device_id) {
|
||||
LOGD("Using null device ID");
|
||||
|
||||
Reference in New Issue
Block a user