Commit graph

34468 commits

Author SHA1 Message Date
Seth Moore
3200496e75 Refactor IC support for RKP
Remote key provisioning means that attestation keys and certs are
passed in, and not pulled directly from the factory-provisioned data.

In anticipation of RKP support, parameterize/refactor some existing
functions so that we can pass keys to them. Also new extern functions
for generating an RKP-attested key as well as keypair/cert for testing.

Test: VtsHalIdentityTargetTest
Bug: 194696876
Change-Id: I7d2906de04835906682455952ebe238c3fa57321
2022-01-24 16:19:21 -08:00
Seth Moore
51efd9e0e4 Log to logd in the default identity service
This allows us to see logs in logcat for the default service.

Test: VtsHalIdentityTargetTest
Bug: 194696876
Change-Id: Ib368a2a0021f72b457fc5e4717e34bb696dfb0fb
2022-01-24 16:19:21 -08:00
Seth Moore
3b9abd3b9a Fix formatting of identity credential aidl
Fix formatting errors to keep file in compliance with the aidl style.
This allows the aidl to pass the presubmit hook.

Test: n/a
Change-Id: Iae0f14f1c0662c862d658b38465467f7f8e036ec
2022-01-24 16:19:21 -08:00
Seth Moore
fc86bf4d5f Add uniqueId to IRemotelyProvisionedComponent
This id is used to differentiate between implementations of the
IRemotelyProvisionedComponent interface. This is required to track
certificates and keys for each implementation. Without an implementation
id, we would have no way to associate persisted, remote provisioning
data with the appropriate IRemotelyProvisionedComponent.

Include VTS tests for compliance.

Test: VtsHalRemotelyProvisionedComponentTargetTest
Bug: 194696876

Change-Id: Id8bca26d71ecf9e389e68a269f782a9dc5ee6f01
2022-01-24 16:19:21 -08:00
Xusong Wang
75decdedcc Merge changes from topic "nnapi-reusable-execution-hal"
* changes:
  Reusable execution at HAL level -- HAL.
  Define AIDL reusable execution interface.
2022-01-18 21:44:51 +00:00
Treehugger Robot
9bea46c467 Merge "DICE: Use fixed sized arrays for fixed sized fields." 2022-01-18 19:32:16 +00:00
Xusong Wang
11f30c81ef Reusable execution at HAL level -- HAL.
This CL modifies the canonical/AIDL adapter to use IExecution object
if available.

Bug: 202405342
Bug: 202431255
Test: NNT_static
Test: CtsNNAPITestCases
Test: VtsHalNeuralnetworksTargetTest
Change-Id: I6aac3c57f97ac87a5ba3f78cfd843fcc403decff
Merged-In: I6aac3c57f97ac87a5ba3f78cfd843fcc403decff
(cherry picked from commit 7f5c7d293c)
2022-01-18 10:51:29 -08:00
Xusong Wang
018fc3cac8 Define AIDL reusable execution interface.
This CL defines the AIDL interface for reusable execution.

This CL also fixes a stale statement in IBurst about deadlineNs:
boot_clock should be used rather than steady_clock.

Bug: 202405342
Bug: 202431255
Test: NNT_static
Test: VtsHalNeuralnetworksTargetTest
Change-Id: I07d26909081018ffd92264d76109a66d4a0de3bd
Merged-In: I07d26909081018ffd92264d76109a66d4a0de3bd
(cherry picked from commit 0d9b1a9d28)
2022-01-18 10:49:42 -08:00
Alan Stokes
cd938514ba Allow CompOS to use DICE
Bug: 214233409
Test: Builds
Change-Id: I1640b64fbb4b63097106dba56269fe1cac6d1679
2022-01-17 15:49:11 +00:00
Treehugger Robot
3ee0b2d08a Merge "BtAudio: Replace bitmask capabilities with vector" 2022-01-17 12:31:45 +00:00
David Drysdale
34288aa2ee Merge "Alter spec text for RSA-PSS to match reality" 2022-01-17 06:53:26 +00:00
Treehugger Robot
da89cea23e Merge "Allow atrace hal tracefs access" 2022-01-15 01:14:07 +00:00
Steven Moreland
ee22878ac8 Merge "remove libbinder_ndk_host_user" 2022-01-14 23:10:16 +00:00
Kalesh Singh
760c1081f5 Allow atrace hal tracefs access
Add atrace hal to the readtracefs group

Bug: 214591300
Test: adb shell perfetto (Use config with atrace_categories)
Change-Id: Id9e06f88539b59480d5cf57a4ba67cef4676c1d5
2022-01-14 14:02:42 -08:00
Treehugger Robot
d89d96d196 Merge "Add alecmouri to composer OWNERS" 2022-01-14 21:33:33 +00:00
David Zeuthen
2e182eaf1a Merge "identity: Add multi-document presentation support." 2022-01-14 21:07:03 +00:00
Treehugger Robot
3d98c54066 Merge "Block cipher fixups" 2022-01-14 21:02:38 +00:00
Nathan Harold
e9ec9545fc Merge "VTS: Check for "ro.board.first_api_level" in GetBarringInfo()" 2022-01-14 18:22:49 +00:00
Brian J Murray
734c841daf Block cipher fixups
Various block cipher testing fixups. Some of these changes reflect edge
cases I encountered when running local GSC builds.

Change:
* Extend ciphertext lengths.
* Add SCOPED_TRACE() within for loops.
* Use '\t' instead of 'a' for PKCS7 padding.

Test: CTS/VTS

Signed-off-by: Brian J Murray <brianjmurray@google.com>
Change-Id: I4555519787e0133367ad3f40609d43a7bc71c36e
2022-01-14 17:41:53 +00:00
Ady Abraham
7b957abe49 Add alecmouri to composer OWNERS
Change-Id: I01a0958e1371ba0e6a92d7f5f0d19ce0acdb7604
2022-01-14 17:10:25 +00:00
Sooraj Sasindran
4e9056b70f Merge "add slicingConfigChanged api" 2022-01-14 03:18:42 +00:00
Bob Badour
f5a86e39fc Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" 2022-01-14 01:44:09 +00:00
Gabriel Biren
7b55e1a302 Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." 2022-01-13 22:35:33 +00:00
Bob Badour
8df6fa133b [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  bluetooth/audio/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ie941d147d28d4e6e7b9eb93154e029f743e8b086
2022-01-13 11:51:58 -08:00
Sooraj Sasindran
d561cc3391 add slicingConfigChanged api
add slicing config changed api to be sent
by modem whenever there is a slice config change

Test: build, vts tracked using bug 214043323
Bug: 194332512
Change-Id: I86e8ab8ac5aa782b099434f1a04ce314631b7f4e
2022-01-13 11:40:54 -08:00
David Gross
3e6d04f6df Merge "Freeze neuralnetworks AIDL version as v3 for FL7" 2022-01-13 17:51:42 +00:00
Sneh Bansal
c338f29b6d VTS: Check for "ro.board.first_api_level" in GetBarringInfo()
Some GRF targets launched with S release do not support getBarringInfo()
API.

Check "ro.board.first_api_level" also to return from the test-case
when the response is REQUEST_NOT_SUPPORTED.

Bug: 212384410
Change-Id: I890f54f80ff3aca3dcb2c51f20db087d453c2927
2022-01-13 22:57:22 +05:30
Gabriel Biren
f97801a1c5 Merge "Allow VTS tests to pass on devices without Hostapd AIDL." 2022-01-13 16:34:32 +00:00
Josh Wu
4dd1b26caf BtAudio: Replace bitmask capabilities with vector
Bug: 203490261
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I258e9912ab740990cab61772f0d6893a64d372d9
2022-01-13 04:32:36 -08:00
David Drysdale
c6b8907a32 Alter spec text for RSA-PSS to match reality
The Key{Mint,Master} spec previously said that RSA-PSS mode should use
SHA-1 for the MGF1 digest, separately from whatever Tag::DIGEST gets
specified as the main digest.

However, both the reference implementation and the VTS/CTS tests
use BoringSSL's defaults, which is to re-use the main digest as the MGF1
digest if none is separately specified.

Given that this behaviour is embedded in many implementations over
several years (and given that there isn't a security implication),
change the spec to match this behaviour.  Also update the VTS test
code to make this clear/obvious.

Test: VtsAidlKeyMintTargetTest, VtsHalKeymasterV4_0TargetTest
Bug: 210424594
Merged-In: I4303f28d094ef4d4b9dc931d6728b1fa040de20d
Change-Id: I4303f28d094ef4d4b9dc931d6728b1fa040de20d
2022-01-13 09:13:08 +00:00
Gabriel Biren
962d5dfa99 Allow VTS tests to pass on devices without Hostapd AIDL.
Bug: 214298597
Test: Run VTS tests on an AOSP build (since AOSP
       is still using the HIDL interface).
Change-Id: I4bd005b5c96570694477a4b45fa5cc790c45be8f
2022-01-12 23:15:17 +00:00
Gabriel Biren
ac91c7c9dd Merge "Allow VTS tests to pass on devices without Supplicant AIDL." 2022-01-12 22:52:18 +00:00
Treehugger Robot
dc1456dc77 Merge "health: vts: Remove hridya@ from OWNERS" 2022-01-12 22:35:20 +00:00
David Gross
68e4300c72 Freeze neuralnetworks AIDL version as v3 for FL7
$ m android.hardware.neuralnetworks-update-api
$ m android.hardware.neuralnetworks-freeze-api

Bug: 202280925

Test: adb shell NeuralNetworksTest_static
Test: atest VtsHalNeuralnetworksTargetTest
Change-Id: I2b2755d7376bb847b15b395e280bf352b5b9ef55
2022-01-12 14:18:36 -08:00
Gabriel Biren
5214086d25 Update supplicant bitmap comments to clarify that
defs.h is a useful reference, but not the main
definition for the bitmap values in the interface.

Bug: 210904141
Test: N/A since only comments were updated
Change-Id: Ib721d6ea0182db50f05ddab10096583481f85413
2022-01-12 22:02:55 +00:00
Michael Butler
104192c28f Merge changes Ifeffea05,I966f65a1
* changes:
  Remove uid from NN HIDL adapter
  Create NN AIDL adapter
2022-01-12 20:08:47 +00:00
Hridya Valsaraju
ec876871ed health: vts: Remove hridya@ from OWNERS
Test: N/A
Bug: N/A
Change-Id: I37b12a4e4dcabf09c3ff7188a59482357fe36242
2022-01-12 11:15:42 -08:00
Michael Butler
594cc78a7b Remove uid from NN HIDL adapter
Having the adapter retrieve the uid is redundant because the implementor
is already able to get the uid directly themselves with
IPCThreadState::self()->getCallingUid().

Bug: N/A
Test: mma
Change-Id: Ifeffea053cb92556be1aae8b17a94fafa1ac98e0
2022-01-11 22:59:11 -08:00
Changyeon Jo
becb08fac0 Update EVS OWNERS
Bug: 214143406
Test: Gerrit uploader
Change-Id: Ief6351e9609ce11dd85dca815b6833524fead0c7
2022-01-12 06:34:15 +00:00
Michael Butler
534556391a Create NN AIDL adapter
This change adds the following adapters:
* nn::IDevice -> BnDevice
* nn::IPreparedModel -> BnPreparedModel
* nn::IBurst -> BnBurst
* nn::IBuffer -> BnBuffer

Bug: N/A
Test: mma
Test: locally created a binderized service with this adapter code,
      which passed VtsHalNeuralnetworksTargetTest
Change-Id: I966f65a1e4d75284c050b77f3f40c515e4970130
2022-01-11 22:23:31 -08:00
Treehugger Robot
74a84f8446 Merge "Update IConsumerIr method comments and add units to parameter" 2022-01-12 01:16:20 +00:00
Treehugger Robot
f4a4ab1ca6 Merge "bluetooth.audio pass both source and sink metadata" 2022-01-12 00:48:30 +00:00
Gabriel Biren
cc7409e8f9 Allow VTS tests to pass on devices without Supplicant AIDL.
Bug: 212653303
Bug: 212652735
Bug: 212652340
Test: Run VTS tests on an AOSP build (since AOSP
       is still using the HIDL interface).
Change-Id: I442efb35c4c68a1337cacc952c3fdb338ef2615d
2022-01-12 00:46:38 +00:00
Janis Danisevskis
37f1609ed5 DICE: Use fixed sized arrays for fixed sized fields.
Bug: 210149444
Test: N/A
Change-Id: I1d4e502cb6535117f51d2d0ce008f2669fc90e96
2022-01-11 11:06:35 -08:00
Josh Wu
1bc606fafe BT: Support LC3 over A2DP
Test: m android.hardware.bluetooth.audio-update-api
Bug: 211589164
Change-Id: Ib2efd9b5af71fa0188edb85b13cf031710b6fe21
2022-01-11 03:28:18 -08:00
Alice Kuo
60b00151bd Add le audio capabilities and audio config update supported in aidl
Bug: 203490261
Bug: 150670922
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I035aad6ee6f6ac0833d9716b50323620ce6df34b
2022-01-11 03:28:16 -08:00
Jakub Pawlowski
0f5c11d965 bluetooth.audio pass both source and sink metadata
Currently just source metadata is passed through the new aidl.

Test: m android.hardware.bluetooth.audio-update-api
Bug: 203490261
Bug: 150670922
Change-Id: I76a44bb8c5cb0b6c16845aca36ba93517ecd07b4
Merged-In: I76a44bb8c5cb0b6c16845aca36ba93517ecd07b4
2022-01-11 05:41:04 +00:00
Kedar Chitnis
d8f9af28ee Merge "Fix dumpstate AIDL interface API comments" 2022-01-11 04:14:46 +00:00
Treehugger Robot
1303d913f3 Merge "Prepares android.hardware.wifi@1.0-service" 2022-01-11 01:35:49 +00:00
Treehugger Robot
cbb51b15fe Merge "Enable MS OS descriptors for adb." 2022-01-10 22:41:11 +00:00