Skip attestation test for first_api_level <=26

This change is a combination of 2 cherry-picks:

- https://android-review.googlesource.com/c/platform/cts/+/1832478
- https://android-review.googlesource.com/c/platform/cts/+/1850475

together with fixes to make the original changes work with all
downstream branches and TreeHugger.

If the product first launch is N, it uses KM1.0 and does not
support key attestation.

Fix:
Skip tests for those devices which does not support Attestations
As per cdd#9_11_keys_and_credentials
“Note that if a device implementation is already launched on an
 earlier Android version, such a device is exempted from the
requirement to have a keystore backed by an isolated execution
environment and support the key attestation, unless it declares
the android.hardware.fingerprint feature which requires
a keystore backed by an isolated execution environment.”

Bug: 199032140
Bug: 199357947
Test: CtsKeystoreTestCases, TreeHugger
Merged-In: If269b34f9db21c2174eb7a09c40d70ed5fc39a9e
Change-Id: If269b34f9db21c2174eb7a09c40d70ed5fc39a9e
6 files changed