provision_drm_key¶
Source code: provision_drm_key.py
Provision Widevine keybox to the VPD.
Description¶
This test implements the “OEM provisioning application” defined in go/spriggins-factory-provision.
Test Procedure¶
This is an automatic test that doesn’t need any user interaction.
This test does the following procedures:
Get the SoC serial number and SoC model ID via OEMCrypto API.
Read the Widevine keybox from the factory device data.
Verify the keybox with the checksum.
Encrypt the keybox with the transport key.
Pass the keybox to OEMCrypto TA to get an encrypted keybox.
Compute the CRC32 code of the encrypted keybox for checking the keybox validity in RMA.
Write the encrypted keybox along with the CRC32 code to VPD.
Dependency¶
OEMCrypto API
Examples¶
To read the keybox from the factory device data:
{
"pytest_name": "provision_drm_key"
}
Test Arguments¶
This test does not have any arguments.