generic_tpm

Predefined TPM tests. TPM is called “TPM”, or “Secure Element” in AVL.

Inherit

APROVerification

Make old definition as an alias of the new definition for backward compatibility

pytest_name

cr50_ap_ro_verification

AssertGSCBoardIDIsUnset

pytest_name

check_cr50_board_id

args

board_id_type
"ffffffff"
board_id_flags
"ffffffff"

CheckCr50BoardIDNotSet

Make old definition as an alias of the new definition for backward compatibility

pytest_name

check_cr50_board_id

args

board_id_type
"ffffffff"
board_id_flags
"ffffffff"

CheckCr50FirmwareVersion

pytest_name

update_cr50_firmware

args

method
"CHECK_VERSION"

CheckSecdataVersion

pytest_name

check_secdata_version

args

major_version
1
minor_version
0

CheckTi50FirmwareVersion

pytest_name

update_cr50_firmware

args

method
"CHECK_VERSION"

ClearAPROHash

Make old definition as an alias of the new definition for backward compatibility

pytest_name

cr50_ap_ro_hash

args

action
"clear"

ClearCr50APROHash

pytest_name

cr50_ap_ro_hash

args

action
"clear"

ClearInactiveTi50Slot

pytest_name

clear_inactive_gsc_slot

ClearTPMOwnerRequest

pytest_name

tpm_clear_owner

Cr50APROVerification

pytest_name

cr50_ap_ro_verification

SetAPROHash

Make old definition as an alias of the new definition for backward compatibility

pytest_name

cr50_ap_ro_hash

args

action
"set"

SetCr50APROHash

pytest_name

cr50_ap_ro_hash

args

action
"set"

TPMState

Only needed and applicable for certain projects. b/198711349

pytest_name

tpm_state

TPMVerifyEK

pytest_name

tpm_verify_ek

APROVerificationGroup

Make old definition as an alias of the new definition for backward compatibility

Serial subtests

ClearTPMOwnerRequestGroup

Serial subtests

Cr50APROVerificationGroup

Serial subtests

TPMVerifyEKGroup

Serial subtests

Ti50APROVerification

Serial subtests

  • {
      "allow_reboot": true,
      "args": {
        "enable_swwp": true,
        "two_stages": "eval! constants.factory_process == 'TWOSTAGES'"
      },
      "label": "Ti50 AP RO Verification (PVT)",
      "pytest_name": "ti50_ap_ro_verification"
    }
    
  • {
      "allow_reboot": true,
      "args": {
        "enable_swwp": false,
        "two_stages": "eval! constants.factory_process == 'TWOSTAGES'"
      },
      "label": "Ti50 AP RO Verification (pre-PVT)",
      "pytest_name": "ti50_ap_ro_verification",
      "run_if": "constants.phase != 'PVT'"
    }
    

UpdateCr50Firmware

Serial subtests

  • {
      "args": {
        "firmware_file": "eval! constants.use_prepvt_cr50_firmware and '/opt/google/cr50/firmware/cr50.bin.prepvt' or None",
        "skip_prepvt_flag_check": "eval! constants.phase != 'PVT'"
      },
      "pytest_name": "update_cr50_firmware"
    }
    
  • {
      "inherit": "RebootStep",
      "run_if": "device.factory.cr50_update_need_reboot"
    }
    
  • CheckCr50FirmwareVersion

UpdateTi50Firmware

Serial subtests

  • {
      "args": {
        "firmware_file": "eval! constants.use_prepvt_ti50_firmware and '/opt/google/ti50/firmware/ti50.bin.prepvt' or None",
        "skip_prepvt_flag_check": "eval! constants.phase != 'PVT'"
      },
      "label": "Update Ti50 Firmware",
      "pytest_name": "update_cr50_firmware"
    }
    
  • {
      "inherit": "RebootStep",
      "run_if": "device.factory.cr50_update_need_reboot"
    }
    
  • CheckTi50FirmwareVersion

  • ClearInactiveTi50Slot