Commit graph

28688 commits

Author SHA1 Message Date
Yiming Pan
55f41b2996 Backfill owner information for VTS module VtsHalNeuralnetworksV1_1TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: If85b0ca5caecf4e0561c29b7c1e64464ad80c6ba
2021-09-09 14:43:35 -07:00
Treehugger Robot
2e74933945 Merge "Allow VTS of 1.0 tetheroffload to be optional" 2021-06-24 21:27:53 +00:00
Treehugger Robot
b54aebc2d8 Merge "Fix flaky corrupted padding tests" 2021-06-24 21:17:33 +00:00
Treehugger Robot
04cdc5ebc1 Merge "Remove ignoreSignature for cose signature checks" 2021-06-24 21:01:52 +00:00
Seth Moore
7a55ae3ddc Fix flaky corrupted padding tests
It's possible that corrupted ciphertext decrypts just fine. e.g. the
output ends with "0x01".

However, the chances of this happening are relatively low
(roughly 1/256). Corrupt the ciphertext up to 8 times, ensuring that
the likelihood of multiple successful decryptions is so miniscule that
it's effectively impossible.

Test: Ran *PaddingCorrupted tests 50000 times
Change-Id: If40ecd7817819921c020ea9b86ada18c4c77ea55
2021-06-24 12:45:23 -07:00
Junyu Lai
3db2f84815 Allow VTS of 1.0 tetheroffload to be optional
Per defined by compatibility matrixes, the tetheroffload
1.0 hardware is optional. But the tests failed if there
is no tetheroffload 1.0 hardware.
This is a regression during refactoring of the tests.

Test: atest VtsHalTetheroffloadControlV1_0TargetTest
Bug: 176057664
Change-Id: If54151beb3355b049b3f892f45c079cd5170d146
2021-06-24 08:59:41 +00:00
Steven Moreland
5d3dd75690 Merge "Add owner field to android.hardware.tests.extension.vibrator" 2021-06-23 23:28:10 +00:00
Treehugger Robot
a43f14bdac Merge "Replace writepid with task_profiles command for cgroup migration" 2021-06-23 22:33:03 +00:00
Jiyong Park
4118607822 Add owner field to android.hardware.tests.extension.vibrator
This will prevent the interface from being updated with aidl-freeze-api.
As the interface is for testing purpose, we really don't need to keep
the latest ToT version and the latest stable version to be the same.
Exempt that by adding the owner field to the interface.

Bug: 188713899
Bug: 190577319
Test: m

Change-Id: I9a670f763c8f31f7c847f8ba8d4706efa075285e
(cherry picked from commit ad0bed60e9)
Merged-In: I9a670f763c8f31f7c847f8ba8d4706efa075285e
2021-06-23 22:08:49 +00:00
Treehugger Robot
00baab69f1 Merge "Correct grammatical error in README.md" 2021-06-23 20:07:43 +00:00
Suren Baghdasaryan
dd50b2f45d Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I249ecc45a001a69d73b06b77154f9b6e5f9964d9
2021-06-23 18:43:27 +00:00
Seth Moore
798188aba0 Remove ignoreSignature for cose signature checks
This flag is never used anywhere, so just remove it. When used, it would
bypass signature checks. This is something we generally don't want to
do, even in testing. So remove the flag so there's no temptation to use
it.

Bug: 190942528
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I0433c1eedc08e9a5a5ad71347154867dba61689e
Merged-In: I0433c1eedc08e9a5a5ad71347154867dba61689e
2021-06-22 18:32:56 -07:00
Junyu Lai
e3dc2f88b2 Merge "[SP32.1] Put OffloadControl 1.1 HAL into apex" 2021-06-22 20:31:18 +00:00
Alan Stokes
fd7eeeaa1d Merge "Allow CompOS APEX to access Keystore AIDL." 2021-06-22 08:13:11 +00:00
rayhdez
5d3fcb2c57 Correct grammatical error in README.md
Bug: 175887156
Test: N/A
Change-Id: Ic89de4ac17ac5d67ff4d4c634c444f167878b7eb
2021-06-22 00:20:07 +00:00
Treehugger Robot
8701205c04 Merge "identity: fix access control checks in libeic." 2021-06-21 20:27:22 +00:00
David Zeuthen
af7e9cfb28 identity: fix access control checks in libeic.
Also add a new libeic_test binary which has a regression test for this
vulnerability.

Bug: 190757775
Test: atest libeic_test
Test: atest VtsHalIdentityTargetTest
Test: atest CtsIdentityTestCases
Merged-In: I8344655c59930d6bf1baa4e0f8d0f60e4fc9e48d
Change-Id: I8344655c59930d6bf1baa4e0f8d0f60e4fc9e48d
2021-06-21 15:13:55 -04:00
Xin Li
472ef6391c Merge "DO NOT MERGE - Merge RQ3A.210605.005" 2021-06-21 05:49:03 +00:00
David Drysdale
aedb92d5af Merge changes I33036387,I63ca8d29
* changes:
  KeyMint VTS: require curve for ECDSA keys
  KeyMint VTS: more attestation info tests
2021-06-21 05:30:10 +00:00
Xin Li
69f8f7446c DO NOT MERGE - Merge RQ3A.210605.005
Bug: 190855093
Merged-In: Id0a543a695fec5523410b41a289f2a71cd850b70
Change-Id: Iddab4cc5480ea83283e56514d9bc00319419a714
2021-06-18 12:24:34 -07:00
Treehugger Robot
b8cf151c98 Merge "Updating CDDL schemas to match the finalized spec." am: 11854c2d82
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1720450

Change-Id: Id0a543a695fec5523410b41a289f2a71cd850b70
2021-06-18 14:42:45 +00:00
Treehugger Robot
11854c2d82 Merge "Updating CDDL schemas to match the finalized spec." 2021-06-18 14:32:25 +00:00
Eran Messeri
4d2be4b6a5 Merge "Remove KeyMint TODOs" am: 45e16a09ca
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1741125

Change-Id: I61076f50f8aa7c58000c424b78f54d6d74686f92
2021-06-18 13:43:09 +00:00
Eran Messeri
45e16a09ca Merge "Remove KeyMint TODOs" 2021-06-18 13:28:25 +00:00
David Drysdale
df09e54ef3 KeyMint VTS: require curve for ECDSA keys
The KeyMint AIDL spec requires that "Tag::EC_CURVE must be provided to
generate an ECDSA key". Move the VTS tests to always create ECDSA keys
by curve not key size.

Bug: 188672564
Test: VtsAidlKeyMintTargetTest
Change-Id: I33036387c243b21ab0ecd49221b7e7757598913e
2021-06-18 13:52:47 +01:00
Eran Messeri
cd489e35d3 Merge "KeyMint: Document KeyCharacteristics" am: 30a6b0e7f0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1736773

Change-Id: Iad780ddff46fc981cf9356597328cdfa07e9b5bf
2021-06-18 12:52:07 +00:00
Eran Messeri
30a6b0e7f0 Merge "KeyMint: Document KeyCharacteristics" 2021-06-18 12:41:00 +00:00
Eran Messeri
2950654d44 Remove KeyMint TODOs
Remove TODOs from the KeyMint specification that were not concrete
enough or did not have enough context to act upon.

Bug: 183737811
Test: That it compiles.
Change-Id: I01899be5e65e9943053aa796a2ab23f1a783a1aa
2021-06-18 13:03:30 +01:00
Eran Messeri
58c8e39110 KeyMint: Document KeyCharacteristics
Document the various fields in KeyCharacteristics.

Bug: 183737811
Test: That it compiles.
Change-Id: I629001a3f5ac5d1e61ae6ffaa2702e3d32f56e52
2021-06-18 12:28:09 +01:00
Alan Stokes
e75851712b Allow CompOS APEX to access Keystore AIDL.
Makes the AIDL (and its dependencies) available to allow client code
to build against it.

Fixes: 190995136
Test: Client code (in progress) builds.
Change-Id: I06e7486463bca93ed25377c0dca30484a6bbf656
2021-06-18 10:21:36 +01:00
David Drysdale
37af4b3656 KeyMint VTS: more attestation info tests
Try all tags in attestion extension one by one

Test: VtsAidlKeyMintTargetTest on CF
Bug: 186735514
Change-Id: I63ca8d298d2d16f707f2437ab48aaa69c1d7563d
2021-06-18 07:45:27 +01:00
David Drysdale
2b6e3bb6ea Merge changes I5e19880b,Ibaed7364 am: 66b8018f0f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1739774

Change-Id: I5b33ec6cc4412a79f6a8022513d0ff5fad453a89
2021-06-18 06:03:42 +00:00
David Drysdale
0a24922361 KeyMint VTS: improve attestation tests am: a676c3b4ef
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1739773

Change-Id: I504d0a420ba2924184dfb4c61c2e382a191b4dc5
2021-06-18 06:03:04 +00:00
David Drysdale
66b8018f0f Merge changes I5e19880b,Ibaed7364
* changes:
  KeyMaster VTS: improve attestation tests
  KeyMint VTS: improve attestation tests
2021-06-18 05:48:34 +00:00
Xin Li
6153d3dc18 DO NOT MERGE - Mark RQ3A.210410.001 as merged
Bug: 190855093
Merged-In: Ie35ebafed5ca7a7f81ee2c03f799cc76f72d16d8
Change-Id: Ia5ade738e1bbe4bebfeaf4088e404bf6618f538a
2021-06-17 22:43:31 -07:00
Xin Li
b519a76f20 DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Merged-In: Icfd3007a194da7ade037e359858b3dd48f24a0d6
Change-Id: Ie35ebafed5ca7a7f81ee2c03f799cc76f72d16d8
2021-06-18 01:26:08 +00:00
Treehugger Robot
3f1d554b25 Merge "audio: Ignore SIGPIPE in the default audio HAL wrapper" am: 6d6ddd73ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1740273

Change-Id: Iccc84cd5bdfdafca7ed405e015076886f7b0d0d5
2021-06-17 22:13:56 +00:00
Treehugger Robot
6d6ddd73ee Merge "audio: Ignore SIGPIPE in the default audio HAL wrapper" 2021-06-17 21:58:30 +00:00
Yomna Nasser
991a680dfa Adds VTS test for getAllowedNetworkTypesBitmap am: 5645ff64b3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1739796

Change-Id: I66728fca5f2469f1d3d65e0974a480f365bc7f1d
2021-06-17 21:22:20 +00:00
Mikhail Naganov
9a88b5b110 audio: Ignore SIGPIPE in the default audio HAL wrapper
It could happen that a service process receives a SIGPIPE
while providing a dump due unexpected pipe closure on
the other side. This should not lead to a service
termination. Ignoring SIGPIPE is a normal practice for
system services.

Bug: 191123848
Test: adb shell kill -s 13 <pid-of-audio-hal>
Change-Id: I9c1d170b76aa27203206e8fd2ce2fc3f5431baac
2021-06-17 19:55:16 +00:00
Yomna Nasser
5645ff64b3 Adds VTS test for getAllowedNetworkTypesBitmap
Adds VTS test for the new HAL API getAllowedNetworkTypesBitmap

Bug: b/190398554
Test: atest VtsHalRadioV1_6TargetTest
Change-Id: Ida0aff8e239cad324627db83903f4a1adcc479d1
Merged-In: Ida0aff8e239cad324627db83903f4a1adcc479d1
2021-06-17 17:50:04 +00:00
Jakub Pawlowski
b45def320a Bluetooth Audio: Remove WARN log spam in IsSessionReady am: 15410861bf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1738979

Change-Id: I22d176b6bb270fb73ea0e511d8a804e3b2afea0b
2021-06-17 16:36:47 +00:00
Jakub Pawlowski
15410861bf Bluetooth Audio: Remove WARN log spam in IsSessionReady
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: Ib3ee17bcdd91e437dd8333c05d31013cb8ac6c9d
2021-06-17 16:34:31 +00:00
Nazanin
cac2bbf9af add sim_err to vts test for setSimCardPower am: 75683b35dd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1738793

Change-Id: I70777bae53456c5283d48c49cb1db9b7614c65b0
2021-06-17 16:31:59 +00:00
David Drysdale
e3cdcb2410 KeyMaster VTS: improve attestation tests
Check that the various ATTESTATION_ID_* tags are included if they
have the correct value, and that keygen fails if they have an invalid
value.

Also fix the support libraries to add the missing fields to the ASN.1
schema and fix the existing ordering.

Bug: 190757200
Test: VtsHalKeymasterV4_1TargetTest, VtsHalKeymasterV4_0TargetTest
Merged-In: I11d28d71676d44ebdc79b25b2eb70947022bb1cf
Ignore-AOSP-First: to be cross-merged manually
Change-Id: I5e19880bbc9e2e667f1204bdc2247ae53a3dada7
2021-06-17 16:43:48 +01:00
David Drysdale
a676c3b4ef KeyMint VTS: improve attestation tests
Check that the various ATTESTATION_ID_* tags are included if they
have the correct value, and that keygen fails if they have an invalid
value.

Also update attestation tags to include vendor/boot patchlevel if
they're available. (They always should be, but fixing that is a
separate task.)

Bug: 190757200
Test: VtsAidlKeyMintTargetTest
Merged-In: Ibaed7364c6d08c0982e2a9fb6cb864ae42cf39fe
Change-Id: Ibaed7364c6d08c0982e2a9fb6cb864ae42cf39fe
2021-06-17 16:43:37 +01:00
Nazanin
75683b35dd add sim_err to vts test for setSimCardPower
Test: VTS
Bug: 191105273
Change-Id: I73ba86b4f0c93d6467d5af5c430e374cb01435bc
2021-06-16 20:29:24 -07:00
David Drysdale
f0f6682ab5 Merge "VTS tests: check size of byte strings" am: 98949afb70
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1736653

Change-Id: I4d1f029a03d622afe304870c487aff95eabb7541
2021-06-16 07:32:21 +00:00
David Drysdale
24babae302 Merge "KeyMint VTS: extract full vendor patchlevel" am: 52ce52fb1e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1719301

Change-Id: I5d9f6370737ce7bcd1276c0ef0cc25609e0094f6
2021-06-16 07:31:26 +00:00
David Drysdale
98949afb70 Merge "VTS tests: check size of byte strings" 2021-06-16 07:17:53 +00:00