Use a placeholder ID for devices missing a system ID

[ Merge of http://go/wvgerrit/139343 ]

The CDM needs to report a system ID to apps on devices where L1
OEMCrypto implementations that are currently waiting for a new
keybox.  A placeholder system ID is now used.  This ID cannot be
used for DRM certificate requests or license requests.

Device ID has a similar issue, but it might not effect all devices.
If getting the device ID fails due to a missing keybox, it will
return an empty device ID.

Bug: 206570220
Bug: 205896558
Bug: 205041153
Test: Android unit tests
Change-Id: I04cdac95fd9a22a181b796c3b58f27cfa3ee684c
This commit is contained in:
Alex Dale
2021-11-18 20:14:17 -08:00
committed by Fred Gylys-Colwell
parent 4df5148997
commit 1d43036592
3 changed files with 96 additions and 62 deletions

View File

@@ -293,7 +293,7 @@ class CryptoSession {
// OTA Provisioning
bool needs_keybox_provisioning() const { return needs_keybox_provisioning_; }
static bool needs_keybox_provisioning() { return needs_keybox_provisioning_; }
// This tells the OEMCrypto adapter to ignore the next |count| keyboxes and
// report that it needs provisioning instead.