info:
- name: CTS-Verifier
  description: Device actions for installing CTS-Verifier.
  url: gs://android-test-catalog/prod/cts_verifier.yaml

device_actions:
- id: install_cts_verifier.11_0
  name: Install CTS-Verifier 11.0
  description: Configures the device for CTS-Verifier testing according to https://source.android.com/compatibility/cts/verifier#setup.
  test_resource_defs:
  - default_download_url: https://dl.google.com/dl/android/cts/android-cts-verifier-11_r3-linux_x86-arm.zip
    name: android-cts-verifier.zip
    test_resource_type: UNKNOWN
  tradefed_target_preparers:
  - class_name: com.android.tradefed.targetprep.RunHostCommandTargetPreparer
    option_values:
    - name: host-setup-command
      values:
      - adb -s $SERIAL shell service call overlay 6 s16 "com.android.internal.systemui.navbar.threebutton" i32 0
      - adb -s $SERIAL shell settings put global hidden_api_policy 1
      - adb -s $SERIAL install -r -g -d ${TF_WORK_DIR}/android-cts-verifier/CtsVerifier.apk
      - adb -s $SERIAL shell appops set com.android.cts.verifier android:read_device_identifiers allow
      - adb -s $SERIAL shell appops set com.android.cts.verifier MANAGE_EXTERNAL_STORAGE 0
    - name: host-cmd-timeout
      values:
      - 5m

- id: install_cts_verifier.10_0
  name: Install CTS-Verifier 10.0
  description: Configures the device for CTS-Verifier testing according to https://source.android.com/compatibility/cts/verifier#setup.
  test_resource_defs:
  - default_download_url: https://dl.google.com/dl/android/cts/android-cts-verifier-10_r7-linux_x86-arm.zip
    name: android-cts-verifier.zip
    test_resource_type: UNKNOWN
  tradefed_target_preparers:
  - class_name: com.android.tradefed.targetprep.RunHostCommandTargetPreparer
    option_values:
    - name: host-setup-command
      values:
      - adb -s $SERIAL shell service call overlay 6 s16 "com.android.internal.systemui.navbar.threebutton" i32 0
      - adb -s $SERIAL shell settings put global hidden_api_policy 1
      - adb -s $SERIAL install -r -g -d ${TF_WORK_DIR}/android-cts-verifier/CtsVerifier.apk
      - adb -s $SERIAL shell appops set com.android.cts.verifier android:read_device_identifiers allow
    - name: host-cmd-timeout
      values:
      - 5m
