Commit graph

18762 commits

Author SHA1 Message Date
Xusong Wang
3dca799497 Revert "Allow compilations in TOCTOU tests to fail with GENERAL_FAILURE."
This reverts commit 362dfd64d5.

Bug: 157489048
Test: 1.2/1.3 VTS TOCTOU tests
Change-Id: Ifdf4a8fab129cd90a3be019c3c598d980b785aaa
Merged-In: Ifdf4a8fab129cd90a3be019c3c598d980b785aaa
(cherry picked from commit 81fa7605cf)
2020-06-26 15:26:47 +01:00
Miao Wang
29a1225561 Remove temporary test filters
Bug: 155577050
Test: mm
Change-Id: Ibe8a3ed79f640249ba54f94bdde9649f156383ea
Merged-In: Ibe8a3ed79f640249ba54f94bdde9649f156383ea
(cherry picked from commit eeb0068015)
2020-06-26 15:26:44 +01:00
Xusong Wang
0b617ae022 Allow compilations in TOCTOU tests to fail with GENERAL_FAILURE.
A compilation failure is not related to the security aspect of the
TOCTOU test, but it will skip one iteration of security testing. This CL
allows the compilation to fail with GENERAL_FAILURE in TOCTOU tests, and
issues a retry once it happens to ensure enough test coverage.

Bug: 157489048
Test: 1.2/1.3 VTS
Change-Id: Idc88e0365c5d2799187093b6fd7b4abf8f8b463d
Merged-In: Idc88e0365c5d2799187093b6fd7b4abf8f8b463d
(cherry picked from commit 362dfd64d5)
2020-06-26 15:26:40 +01:00
Treehugger Robot
84a6118710 Merge "Identity: Update for changes to ISO 18013-5." 2020-06-24 16:00:34 +00:00
David Zeuthen
2e4533e5c1 Identity: Update for changes to ISO 18013-5.
Key derivation for session encryption and MACing now involves mixing
in SessionTranscriptBytes. Update docs, default implementation, and
VTS tests to reflect this.

Also, the standard changed such that instead of DeviceAuthentication
being MACed or signed, it's instead DeviceAuthenticationBytes which is
defined as #6.24(bstr .cbor DeviceAuthentication). The same also for
ReaderAuthentication, now ReaderAuthenticationBytes is the CBOR which
is signed by the reader.

Also update the URL for CDDL since it's now a published RFC.

Bug: 159482543
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Change-Id: I73fc7eb48ffb71e00a8b54849266ed814295fa39
2020-06-24 09:27:02 -04:00
Peter Kalauskas
cd6110105e Merge "android.hardware.tests.lazy@1.1::ILazy" 2020-06-24 01:56:13 +00:00
Treehugger Robot
8ca3229e06 Merge "A2DP: Enable AAC VBR Offloading" 2020-06-22 17:22:54 +00:00
Peter Kalauskas
f4efbd5a82 android.hardware.tests.lazy@1.1::ILazy
Introduce minor version increment to ILazy for testing lazy HAL
inheritance.

Bug: 157451814
Bug: 158606505
Test: hidl_lazy_test
Change-Id: Ib418bc002e834edf5eae53043875dcb351b3eaf2
2020-06-19 02:02:22 +00:00
David Zeuthen
780f8c860d Identity: More static linking of VTS test binary.
The VTS test was dynamically linking some libraries not normally
present on an Android system. Statically link these libraries instead.

Bug: 158150767
Test: atest VtsHalIdentityTargetTest
Change-Id: Ib93620c36b0ff7f5c9f239ff8861a11196605881
2020-06-18 09:44:51 -04:00
Bill Peckham
4e27e0f5a2 Fix link error in android.hardware.health@1.0-impl
Bug: 158134286
Change-Id: If5a1f0b7a76c3faf176a5a85be2f877b40c613a7
2020-06-17 21:03:59 +00:00
Slava Shklyaev
3722d6dcfa Log NNAPI VTS test case to logcat
Sample output:

    I VtsHalNeuralnetworksV1_2TargetTest: [Test Case] TestGenerated/GeneratedTest.Test/nnapi_sample_all_add BEGIN
    ...
    I VtsHalNeuralnetworksV1_2TargetTest: [Test Case] TestGenerated/GeneratedTest.Test/nnapi_sample_all_add END

Bug: 159060565
Test: VtsHalNeuralnetworksV1_0TargetTest (inspected logcat output)
Test: VtsHalNeuralnetworksV1_1TargetTest (inspected logcat output)
Test: VtsHalNeuralnetworksV1_2TargetTest (inspected logcat output)
Test: VtsHalNeuralnetworksV1_3TargetTest (inspected logcat output)
Change-Id: Ic1a0c90e0853ca84dd925d0f7df65e159bb284aa
Merged-In: Ic1a0c90e0853ca84dd925d0f7df65e159bb284aa
(cherry picked from commit 8c8efd68e8)
2020-06-17 13:48:25 +01:00
Ray Kuo
525050c8e6 A2DP: Enable AAC VBR Offloading
Bug: 155826682
Test: Manual
Change-Id: I55df55bbad18ab561493ec9d4d930345056d8c72
2020-06-17 20:25:40 +08:00
Treehugger Robot
6d4d3a20da Merge "Fix the failed case for the VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5# sendCdmaSmsExpectMore/0_slot1" 2020-06-16 22:13:04 +00:00
David Zeuthen
baa41d7945 Identity: Statically link VTS test binary.
The VTS test was dynamically linking some libraries not normally
present on an Android system. Statically link these libraries instead.

Bug: 158150767
Test: atest VtsHalIdentityTargetTest
Change-Id: Ida85ca8835d0243c47f451ccdfa0d11d29ec1bdb
2020-06-12 14:52:37 -04:00
Henry Fang
d3fbe19e6b Remove the enforce to build 32 binary
cherry-pick from internal master

bug: 157096583
Test: Manual
Change-Id: Ice58cac7adf46f17606be8c4b2c3fe2e4bf1a472
Merged-In: Ice58cac7adf46f17606be8c4b2c3fe2e4bf1a472
2020-06-10 22:22:05 +00:00
yan.cao
268ddbf5a2 Fix the failed case for the
VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5#
sendCdmaSmsExpectMore/0_slot1

Sendcdmasexpectmoreresponse to the request sendcdmasexpectmore
did not accept the return parameter responseinfo, which caused
the VTS system to wait for a response until it exceeded 60 seconds,
and the VTS determined No test results.
so we can add parameters to receive the parameters of
sendcdmasexpectmoreresponse,and then make subsequent judgment.

Bug: 158542706
Test: run vts -m VtsHalRadioV1_5TargetTest
Change-Id: I1d6214f58850d707520b80634cb93d0e0cc712bb
2020-06-09 18:12:46 +08:00
Xin Li
e129db1ac2 Merge "Merge QQ3A.200605.002 into master" 2020-06-06 01:41:11 +00:00
Treehugger Robot
17ec80b638 Merge "Update Identity Credential VTS tests." 2020-06-05 13:36:47 +00:00
David Zeuthen
ef7395127f Update Identity Credential VTS tests.
These updates are based on input/experiences implementing this
HAL. There are no API changes.

 - Specify that the validity for credentialKey certificate shall be
   from current time and expire at the same time as the attestation
   batch certificate.

 - Require challenge passed to getAttestationCertificate() is
   non-empty.

 - Fix bug in VTS tests where the startPersonlization() result was not
   checked.

 - Remove verifyStartPersonalizationZero test since it cannot be
   completed.

 - Ensure secureUserId is non-zero if user authentication is needed.

 - Specify format for signingKeyBlob in generateSigningKeyPair() same
   way we do for credentialData in finishAddingEntries().

 - Modify EndToEndTest to decrypt/unpack credentialData to obtain
   credentialPrivKey and storageKey and do cross-checks on these.

 - Modify EndToEndTest to decrypt/unpack signingKeyBlob to obtain
   signingKeyPriv and check it matches the public key in the returned
   certificate.

 - Add new VTS tests for user and reader authentication.

 - Relax unnecessary requirements about SessionTranscript structure -
   just require it has X and Y of the ephemeral key created earlier.

 - Allow calls in VTS tests to v2 HAL to fail - this should allow
   these VTS tests to pass on a compliant v1 HAL.

Bug: 156911917
Bug: 158107945
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Change-Id: I11b79dbd57b1830609c70301fea9c99f9e5080cb
2020-06-04 16:46:54 -04:00
Xin Li
ca126e53d5 Merge QQ3A.200605.002 into master
Bug: 158095402
Merged-In: I967cf8d0f42ec2b9745ce7bd95c7762e032c90d0
Change-Id: I3104c43c60c68ef1206d90858d4aaffa26a860c7
2020-06-03 10:45:04 -07:00
Xusong Wang
8743730642 Add checks of output shapes when OUTPUT_INSUFFICIENT_SIZE. am: 91521ab86b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1308498

Change-Id: I967cf8d0f42ec2b9745ce7bd95c7762e032c90d0
2020-06-03 00:51:43 +00:00
Xusong Wang
91521ab86b Add checks of output shapes when OUTPUT_INSUFFICIENT_SIZE.
Add checks that all returned output dimensions must be at
least as fully specified as the union of the information about the
corresponding operand in the model and in the request.

Bug: 154054474
Test: VTS
Change-Id: I934d084c7665160a98da9828604ce8297fef73b8
Merged-In: I934d084c7665160a98da9828604ce8297fef73b8
(cherry picked from commit d454751e00)
2020-06-02 16:52:56 -07:00
Shawn Willden
5ffa73290d Fix delivery of earlyBootEnded to KM4.1 am: a2a6a33ea9
Original change: undetermined

Change-Id: I80dfc835a8d4b92561e090375ea6343c11734bb8
2020-06-02 04:01:17 +00:00
Shawn Willden
a2a6a33ea9 Fix delivery of earlyBootEnded to KM4.1
Bug: 152932559
Test: Boot and observe that Strongbox gets the message
Merged-In: I752b44f5cc20d85bf819188ccaaf0813a5607ba5
Change-Id: I752b44f5cc20d85bf819188ccaaf0813a5607ba5
2020-06-01 14:08:39 -06:00
Orion Hodson
28c170427e Merge "Add dependency on jni_headers" am: d2985135d6
Change-Id: Ibd4542573f6cb148141b2834b16178cc09102a0f
2020-06-01 09:39:14 +00:00
Orion Hodson
d2985135d6 Merge "Add dependency on jni_headers" 2020-06-01 09:20:10 +00:00
Bowgo Tsai
767b4b3c2a Allow unlocked in VTS am: 43dd6e34bd
Change-Id: I91e5f63351c465aee0f4fe829d2fd4c003cd55f1
2020-06-01 04:03:29 +00:00
Bowgo Tsai
43dd6e34bd Allow unlocked in VTS
VTS was running on a userdebug build GSI before Android 10.
Starting from Android 10, VTS is switched to running on top of a
user build GSI image, plus the device-specific boot-debug.img to
allow adb root.

   https://source.android.com/compatibility/vts/vts-on-gsi

So 'ro.build.type' will be 'user' because the value comes from
/system/build.prop. Switching to using 'ro.debuggable' to decide
whether we should check the device is locked or not. Note that
'ro.debuggable' will be '1' for userdebug/eng images or when a
boot-debug.img is used.

Bug: 154449286
Test: atest VtsHalKeymasterV4_0TargetTest
Change-Id: If5a90d62f77489aa58f96e908553a052cf6d1e18
2020-05-29 07:49:11 +00:00
Treehugger Robot
249b63ced6 Merge "Fix GnssMeasurement state range check" am: 43f1d331e3
Change-Id: I245b97dd441e20e59116e3090fd55f3e8ca68307
2020-05-27 22:37:33 +00:00
Treehugger Robot
43f1d331e3 Merge "Fix GnssMeasurement state range check" 2020-05-27 22:22:40 +00:00
Elliott Hughes
95d8258b56 Use libcutils' host implementation directly. am: 69a08536c2
Change-Id: If7529366b4d4ff5d350f544f076d10b171e69f54
2020-05-27 17:06:05 +00:00
Orion Hodson
0f8403f606 Add dependency on jni_headers
Preparation for removing implicit include paths for jni.h from soong.

Bug: 152482542
Test: Apply future soong change && m checkbuild
Change-Id: I880eb1f307d995cbd4f0f19e8f8d22c20fc36bef
Merged-In: I880eb1f307d995cbd4f0f19e8f8d22c20fc36bef
Exempt-From-Owner-Approval: build clean-up
(cherry picked from commit 43c1a6a41c)
2020-05-27 17:29:42 +01:00
Yu-Han Yang
4f21df3b44 Fix GnssMeasurement state range check
Bug: 157463010
Test: atest VtsHalGnssV2_0TestTarget
Change-Id: I72f4bf1f09d6271ac6367abc3972ee7747b18155
(cherry picked from commit 51d8defb3c)
Merged-In: I72f4bf1f09d6271ac6367abc3972ee7747b18155
2020-05-26 21:22:42 +00:00
Elliott Hughes
69a08536c2 Use libcutils' host implementation directly.
Also remove the tests of the mock property functions themselves, and
rely on the libcutils/libbase testing.

Bug: http://b/151789258
Test: treehugger
Change-Id: I455ef0c2e4f19f6e69b8f65a3b6d4595717c81cd
2020-05-20 09:18:12 -07:00
Lev Proleev
92b20695bc NNAPI: Clarify behaviour of ops that reduce dimensions am: d90a5de791
Change-Id: I91af2c87ab99e4e2d44ebe70b16a6d4045e3a544
2020-05-20 01:04:47 +00:00
Miao Wang
7826dead97 Add AndroidTest.xml for NNAPI 1.3 VTS and temporarily blacklist failing tests am: 4749010554
Change-Id: Ie5fa9cbd309aeb3d64a50041ac0e3833d7c3a7dc
2020-05-20 01:04:45 +00:00
Lev Proleev
7f872effec NNAPI: Clarify behaviour of REDUCE_* ops am: 4b2917a5ed
Change-Id: I17f4e08fc2bf43c05b2679d51556ff4a5772dfd3
2020-05-20 01:04:44 +00:00
Miao Wang
b759b4abf4 Filter out failing NNAPI validation tests am: e1c1e7e2f6
Change-Id: I4ca995b406b424796869a300cd28a3101ddecc26
2020-05-20 01:04:41 +00:00
Miao Wang
626a022fed Add AndroidTest.xml for NNAPI 1.0 VTS and blacklist failing tests am: f904bb11d2
Change-Id: I6e210b479bee9a123d1da93deb7ab4878c802278
2020-05-20 01:04:38 +00:00
Miao Wang
2880abe014 Add AndroidTest.xml for NNAPI 1.2 VTS and blacklist failing tests am: 398adea8b6
Change-Id: I4923c06eafc89ee8df9c7d8cd19aab17ac989719
2020-05-20 01:04:37 +00:00
Lev Proleev
d90a5de791 NNAPI: Clarify behaviour of ops that reduce dimensions
Clarify behaviour of the following ops in the case when inputs would
cause an output to have an empty shape:
* MEAN
* ARGMIN/ARGMAX
* STRIDED_SLICE

Bug: 155508675
Bug: 155660285
Bug: 155508675
Bug: 155238914
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I92d1c3866a462a99b4eed7782b72f62bb6a076c6
Merged-In: I92d1c3866a462a99b4eed7782b72f62bb6a076c6
(cherry picked from commit d4bba83f6a)
2020-05-19 13:39:26 -07:00
Miao Wang
4749010554 Add AndroidTest.xml for NNAPI 1.3 VTS and temporarily blacklist failing tests
- Also adds TEST_MAPPING filters here to make sure sample driver tests
  are still being filtered out.
  - There may still be failing tests, but should not cause OOM in test harness.

Bug: 156691406
Test: mm
Test: atest VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Ie05350d71dede04967d94dad4147bd3ed3435f7d
Merged-In: Ie05350d71dede04967d94dad4147bd3ed3435f7d
(cherry picked from commit 338acf5c15)
2020-05-19 13:38:28 -07:00
Lev Proleev
4b2917a5ed NNAPI: Clarify behaviour of REDUCE_* ops
Add a clarification on the behaviour of REDUCE_* ops when all dimensions
of an input tensor are reduced.

Bug: 155508675
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I3a67225c3af80af40a11362ca5d0f55350cbfa05
Merged-In: I3a67225c3af80af40a11362ca5d0f55350cbfa05
(cherry picked from commit eec7d86b44)
2020-05-19 13:38:00 -07:00
Miao Wang
e1c1e7e2f6 Filter out failing NNAPI validation tests
Bug: 155577050
Test: atest VtsHalNeuralnetworksV1_*TargetTest
Change-Id: Id8d497dddd5521670689ff2ea08610c3aaeaf748
Merged-In: Id8d497dddd5521670689ff2ea08610c3aaeaf748
(cherry picked from commit 4429d856cd)
2020-05-19 13:35:55 -07:00
Miao Wang
f904bb11d2 Add AndroidTest.xml for NNAPI 1.0 VTS and blacklist failing tests
- Also adds TEST_MAPPING filters here to make sure sample driver tests
  are still being filtered out.

Bug: 155577050
Test: mm
Test: atest VtsHalNeuralnetworksV1_0TargetTest
Change-Id: Ic8f556a957e6af340d500e2c4696b41b2a6e8516
Merged-In: Ic8f556a957e6af340d500e2c4696b41b2a6e8516
(cherry picked from commit 8ebe2a04c5)
2020-05-19 13:35:42 -07:00
Miao Wang
398adea8b6 Add AndroidTest.xml for NNAPI 1.2 VTS and blacklist failing tests
- Also adds TEST_MAPPING filters here to make sure sample driver tests
  are still being filtered out.

Bug: 155674368
Test: mm
Test: atest VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I5f5d272742d4cdd6a8cc87ec035b5e2508eaa98f
Merged-In: I5f5d272742d4cdd6a8cc87ec035b5e2508eaa98f
(cherry picked from commit f7c55d5f9b)
2020-05-19 13:35:29 -07:00
David Anderson
f37dbbc570 Re-enable boot HAL tests and make sure they restore previous slot flags. am: d028b91f4a
Change-Id: I1e5c42c592419c097e678bd966b3ee3b26efd3c9
2020-05-19 06:18:19 +00:00
David Anderson
d028b91f4a Re-enable boot HAL tests and make sure they restore previous slot flags.
Bug: 154667790
Test: set slot to a
      run SetActiveBootSlot/SetSlotAsUnbootable tests
      fastboot reboot bootloader
      fastboot getvar current-slot shoud be a
      repeat on b slot
Change-Id: Icff45d3949d0ad76d22bdf8830c0903e81027b6e
2020-05-18 18:00:49 +00:00
Shuo Qian
ea208bd23e Merge "Skip voice call VTS for devices that don't support voice call with new Util" am: 41084e7ef4
Change-Id: I8011920a2bc136470d233940ed4dc335504bf82b
2020-05-16 03:07:01 +00:00
Shuo Qian
41084e7ef4 Merge "Skip voice call VTS for devices that don't support voice call with new Util" 2020-05-16 02:52:07 +00:00