Commit Graph

28741 Commits

Author SHA1 Message Date
Seth Moore
ea113e83c9 Add ensuring that test BCC keys not unique ids am: 42c1133fed
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1755320

Change-Id: Iba4468d4fd8c311425bbcd7f8a6d9d9ff3e20787
2021-07-06 06:52:37 +00:00
Seth Moore
42c1133fed Add ensuring that test BCC keys not unique ids
Get two test BCCs, then ensure that no repeated keys are found.

Bug: 192687735
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I48f86e7dfa9ab4bc6303a8d1b64ac7ca6ac76bbf
Merged-In: I48f86e7dfa9ab4bc6303a8d1b64ac7ca6ac76bbf
2021-07-02 15:58:26 -07:00
Seth Moore
5b6e9e923b Add a utility to JSON-format a CSR with build info am: f4c8ff9bef
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1753711

Change-Id: Ie73a6b77d8663b27fe2f39f35bc779ae2ee02965
2021-07-01 23:42:38 +00:00
Seth Moore
f4c8ff9bef Add a utility to JSON-format a CSR with build info
We need both the build fingerprint as well as the CSR when uploading
data to the APFE provisioning server. Add a utility function to format
the output as a JSON blob so that it may be easily collected in the
factory in a serialized data format, then later uploaded.

Test: libkeymint_remote_prov_support_test
Test: VtsAidlKeyMintTargetTest
Test: VtsHalRemotelyProvisionedComponentTargetTest
Bug: 191301285
Change-Id: I751c5461876d83251869539f1a395ba13cb5cf84
2021-07-01 10:17:28 -07:00
Treehugger Robot
a23de7b98d Merge changes from topic "rkp-factory-tool" am: 0ab5ef3ff7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1748602

Change-Id: I5911dab12da650546956131bd489bcf0db500594
2021-06-30 20:58:20 +00:00
Seth Moore
55d453f10e Add a unit test for remote_prov_utils am: 42a2f6b6e2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1748601

Change-Id: I885b63ac7aadd88351a3991576dc94562e13740d
2021-06-30 20:57:28 +00:00
Treehugger Robot
0ab5ef3ff7 Merge changes from topic "rkp-factory-tool"
* changes:
  Add real GEEK for RKP factory enrollment
  Add a unit test for remote_prov_utils
2021-06-30 20:39:53 +00:00
Kalesh Singh
be53a67a77 Merge "memtrack: Update AIDL memtrack hal documentation" am: 55305df1ff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1751681

Change-Id: I7c20edd812cb4713c7d5ea0fb567646c3cc7b1bb
2021-06-30 19:12:23 +00:00
Kalesh Singh
55305df1ff Merge "memtrack: Update AIDL memtrack hal documentation" 2021-06-30 18:45:42 +00:00
Treehugger Robot
a5a924db68 Merge "CEC: Add implementation of WAKEUP option to default HdmiCec" am: 229d55513b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1742234

Change-Id: I301452cb0b3bb5adaf307a706ff9402921ada3ca
2021-06-30 11:57:51 +00:00
Treehugger Robot
85f9d241c0 Merge "CEC: Add implementation of ENABLE_CEC option to default HdmiCec" am: 22135d775e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1742233

Change-Id: I7d44c193291cf624e8969be7fd2ce80ef2960f68
2021-06-30 11:57:43 +00:00
Treehugger Robot
229d55513b Merge "CEC: Add implementation of WAKEUP option to default HdmiCec" 2021-06-30 11:52:03 +00:00
Treehugger Robot
22135d775e Merge "CEC: Add implementation of ENABLE_CEC option to default HdmiCec" 2021-06-30 11:41:43 +00:00
Treehugger Robot
0bbe24d12d Merge changes Iaaec9a0a,I280d1424,Ic8a65044,I019cb5cf,I245d52a7, ... am: dba159dcfd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1730535

Change-Id: I0a94ac0993589037206161f27cfe51530c955506
2021-06-30 11:07:36 +00:00
Treehugger Robot
dba159dcfd Merge changes Iaaec9a0a,I280d1424,Ic8a65044,I019cb5cf,I245d52a7, ...
* changes:
  CEC: Add event handler to default HdmiCec
  CEC: Add implementation of setCallback method to default HdmiCec
  CEC: Add implementation of addLogicalAddress method to default HdmiCec
  CEC: Add implementation of getCecVersion method to default HdmiCec
  CEC: Add implementation of isConnected method to default HdmiCec
  CEC: Add implementation of getVendorId method to default HdmiCec
  CEC: Add implementation of getPortInfo method to default HdmiCec
  CEC: Add implementation of clearLogicalAddress method to default HdmiCec
  CEC: Add implementation of getPhysicalAddress method to default HdmiCec
  CEC: Add implementation of SendMessage method to default HdmiCec
  CEC: Initialise the HAL based on default implementation
2021-06-30 10:53:02 +00:00
Kalesh Singh
30fa141c80 memtrack: Update AIDL memtrack hal documentation
Fix Memtrack GRAPHICS type definition to also inculde
GPU-mapped DMA-BUF memory.

Clarify SMAPS_UNACCOUTNED should also include memory
mapped with VM_PFNMAP set.

Bug: 192384999
Test: N/A
Change-Id: I5370efa731bc6307e4fe9b454796361e9a1ac5eb
2021-06-29 21:57:56 +00:00
Treehugger Robot
c55f6b46e0 Merge "Fix default vibrator HAL to check support on getPrimitiveDuration" am: 6738af59c7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1748636

Change-Id: If4776ba2e09b282096c651d41607fc8e898a1578
2021-06-28 21:25:44 +00:00
Treehugger Robot
6738af59c7 Merge "Fix default vibrator HAL to check support on getPrimitiveDuration" 2021-06-28 21:02:48 +00:00
Treehugger Robot
a43ffc1278 Merge "Fix ordering of cache files requirements from device" am: dc46322e5a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1749647

Change-Id: I6c450e8f8fe64c8b813712f5b4d9d9a737750ca6
2021-06-28 18:25:18 +00:00
Treehugger Robot
dc46322e5a Merge "Fix ordering of cache files requirements from device" 2021-06-28 18:13:00 +00:00
David Drysdale
575246020d Merge "KeyMint HAL: clarify spec text" am: 17a0526b1e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1749620

Change-Id: I62e31307959573569a0c748a636d1c1174188c82
2021-06-28 17:17:18 +00:00
David Drysdale
a01b8259e3 Merge "KeyMint VTS: allow for stricter SharedSecret impls" am: f854cde530
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1749644

Change-Id: I4c1faec6657066df55c9c15b3d4938b28cf07e7a
2021-06-28 17:16:17 +00:00
David Drysdale
17a0526b1e Merge "KeyMint HAL: clarify spec text" 2021-06-28 17:14:23 +00:00
David Drysdale
f854cde530 Merge "KeyMint VTS: allow for stricter SharedSecret impls" 2021-06-28 17:01:22 +00:00
Lev Proleev
a31aff1ace Fix ordering of cache files requirements from device
Data and model numbers were switched in the AIDL implementation of
canonical Device.

Bug: 190757709
Test: neuralnetworks_utils_hal_aidl_test
Change-Id: I0d95b2d436994ffc877a4e02eb31f449b983e61e
Merged-In: I0d95b2d436994ffc877a4e02eb31f449b983e61e
(cherry picked from commit 3fd4ec4706)
2021-06-28 16:11:43 +01:00
David Drysdale
d46d61efec KeyMint VTS: allow for stricter SharedSecret impls
Bug: 192223752
Test: VtsAidlSharedSecretTargetTest
Change-Id: Iccf2d0fe2a2d10ad12269dfecf78ea1d831c3ad4
2021-06-28 14:58:28 +01:00
David Drysdale
5cf4a11c01 KeyMint HAL: clarify spec text
- Make clear that CERTIFICATE_NOT_{BEFORE,AFTER} must be specified for
   generating/importing asymmetric keys.
 - Fix enforcement level of Tag::UNLOCKED_DEVICE_REQUIRED.
 - Fix reference to exportKey() for Tag::STORAGE_KEY to mention
   convertStorageKeyToEphemeral instead.
 - Mark Tag::CONFIRMATION_TOKEN as deprecated.

Test: none, comment change
Bug: 188672564
Change-Id: I68727b024f6b6743403941763aefca64e3eb091a
2021-06-28 12:43:10 +01:00
Lais Andrade
6d4c0482fc Fix default vibrator HAL to check support on getPrimitiveDuration
Change-Id: I09219cca0a1b0bb985cae70734b0dd03cca441fc
Merged-In: I09219cca0a1b0bb985cae70734b0dd03cca441fc
Fix: 191115802
Fix: 191952216
Test: VtsHalVibratorTargetTest
2021-06-26 05:07:37 +00:00
Seth Moore
50d62b0b15 Add real GEEK for RKP factory enrollment
Include a unit test to verify the GEEK cert chain is valid.

Test: libkeymint_remote_prov_support_test
Bug: 191301285
Change-Id: Icf9cfa165fbccb24b36b03ff3ce729a7e9c44cfd
Merged-In: Icf9cfa165fbccb24b36b03ff3ce729a7e9c44cfd
2021-06-25 10:48:49 -07:00
Seth Moore
42a2f6b6e2 Add a unit test for remote_prov_utils
This functionality will be used for the factory tooling, so we should
test it. Additionally, some new functionality will soon be added, and
it also needs to be tested.

Test: libkeymint_remote_prov_support_test
Bug: 191301285
Change-Id: I6a8798fc4b09fff1e829185a4b9e471921e5d2a9
Merged-In: I6a8798fc4b09fff1e829185a4b9e471921e5d2a9
2021-06-25 10:48:33 -07:00
Treehugger Robot
201b08314b Merge "Allow VTS of 1.0 tetheroffload to be optional" am: 2e74933945
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1745384

Change-Id: Iaa017198d845c747ec5248aa75d78084a6a8ae8b
2021-06-24 21:31:44 +00:00
Treehugger Robot
2e74933945 Merge "Allow VTS of 1.0 tetheroffload to be optional" 2021-06-24 21:27:53 +00:00
Treehugger Robot
03a6cfdc15 Merge "Fix flaky corrupted padding tests" am: b54aebc2d8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1745035

Change-Id: I9927f8d2ad4bc38733331969556fe774cf1447c4
2021-06-24 21:19:44 +00:00
Treehugger Robot
ca66b32224 Merge "Remove ignoreSignature for cose signature checks" am: 04cdc5ebc1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1743933

Change-Id: I665d204b021d86cc87e2c404c11dc6a2182c23e5
2021-06-24 21:18:50 +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
Shraddha Basantwani
05c454f356 CEC: Add implementation of WAKEUP option to default HdmiCec
When WAKEUP is set to false, HAL does not wake up the system
upon receiving <Image View On> or <Text View On> messages.

Bug: 185434120
Test: manual
Change-Id: Iaf98020decc887f04b02da480adc70b76189b66d
2021-06-24 16:30:47 +05:30
Shraddha Basantwani
d591d97536 CEC: Add implementation of ENABLE_CEC option to default HdmiCec
When ENABLE_CEC is set to false, all the CEC commands are discarded

Bug: 185434120
Test: manual
Change-Id: Iaf7e61af0b5047b041818acf2590c3ffce2f3318
2021-06-24 16:30:47 +05:30
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
37f11181b7 Merge "Add owner field to android.hardware.tests.extension.vibrator" am: 5d3dd75690
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1745036

Change-Id: I7d28c9f0319afefbe61f9a8ddffeedf1af57fddc
2021-06-23 23:43:54 +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
7151796908 Merge "Replace writepid with task_profiles command for cgroup migration" am: a43f14bdac
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1740279

Change-Id: I64a8d0a44d85c4c3a0d79cff2e330ae2bb6dc06e
2021-06-23 22:49:53 +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
c10941d4de Merge "Correct grammatical error in README.md" am: 00baab69f1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1741753

Change-Id: I5fed42182ea9c468094c46928976cb0204bbdeb2
2021-06-23 20:25:18 +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
6b450ba4e4 Merge "[SP32.1] Put OffloadControl 1.1 HAL into apex" am: e3dc2f88b2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1675547

Change-Id: Ib7b0237719a64bbf83c4e7bcbc9cf5fd6b742ce9
2021-06-22 20:47:19 +00:00