Source release 19.5.0

This commit is contained in:
Cong Lin
2025-04-02 10:27:18 -07:00
parent 4407acee62
commit f7ec4fdeff
295 changed files with 32196 additions and 21748 deletions

View File

@@ -441,3 +441,12 @@ OEMCryptoResult _oecc155(OEMCrypto_SESSION session, uint32_t intent,
// OEMCrypto_GetBCCSignatureType defined in v19.4
OEMCryptoResult _oecc156(OEMCrypto_BCCSignatureType* bcc_signature_type);
// OEMCrypto_GetPVRKey defined in v18.9
OEMCryptoResult _oecc157(OEMCrypto_SESSION session, uint8_t* wrapped_pvr_key,
size_t* wrapped_pvr_key_length);
// OEMCrypto_LoadPVRKey defined in v18.9
OEMCryptoResult _oecc158(OEMCrypto_SESSION session,
const uint8_t* wrapped_pvr_key,
size_t wrapped_pvr_key_length);

View File

@@ -317,14 +317,14 @@ TEST_F(OEMCryptoClientTest, FreeUnallocatedSecureBufferNoFailure) {
*/
TEST_F(OEMCryptoClientTest, VersionNumber) {
const std::string log_message =
"OEMCrypto unit tests for API 19.4. Tests last updated 2024-11-04";
"OEMCrypto unit tests for API 19.5. Tests last updated 2025-03-11";
cout << " " << log_message << "\n";
cout << " " << "These tests are part of Android V." << "\n";
LOGI("%s", log_message.c_str());
// If any of the following fail, then it is time to update the log message
// above.
EXPECT_EQ(ODK_MAJOR_VERSION, 19);
EXPECT_EQ(ODK_MINOR_VERSION, 4);
EXPECT_EQ(ODK_MINOR_VERSION, 5);
EXPECT_EQ(kCurrentAPI, static_cast<unsigned>(ODK_MAJOR_VERSION));
RecordWvProperty("test_major_version", std::to_string(ODK_MAJOR_VERSION));
RecordWvProperty("test_minor_version", std::to_string(ODK_MINOR_VERSION));

View File

@@ -252,7 +252,13 @@ TEST_F(OEMCryptoProv40Test, GetBootCertificateChainSuccess) {
OEMCrypto_SUCCESS);
util::BccValidator validator;
EXPECT_EQ(util::CborMessageStatus::kCborParseOk, validator.Parse(bcc));
EXPECT_EQ(util::CborMessageStatus::kCborValidateOk, validator.Validate());
util::CborMessageStatus status = validator.Validate();
EXPECT_LT(status, util::CborMessageStatus::kCborValidateError);
if (status >= util::CborMessageStatus::kCborValidateError) {
const std::string parsed_bcc = validator.GetFormattedMessage();
LOGE("%s", parsed_bcc.c_str());
LOGE("Validation results\n%s", validator.PrintValidateMessage().c_str());
}
}
// Verifies BCC signature and its type if they are available.