Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db5b71c9 authored by Janis Danisevskis's avatar Janis Danisevskis Committed by android-build-merger
Browse files

Fix expected attestation version.

am: 538b7d85

Change-Id: I35fd340baa71984a9aa5b1db6d8df1b09cda7a6c
parents bd513e06 538b7d85
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -967,11 +967,7 @@ bool verify_attestation_record(const string& challenge, const string& app_id,
                                       &att_tee_enforced,                //
                                       &att_unique_id));

    if (att_keymaster_version == 3) {
        EXPECT_EQ(2U, att_attestation_version);
    } else {
        EXPECT_EQ(1U, att_attestation_version);
    }
    EXPECT_TRUE(att_attestation_version == 1 || att_attestation_version == 2);

    expected_sw_enforced.push_back(TAG_ATTESTATION_APPLICATION_ID,
                                   HidlBuf(app_id));