Commit graph

58884 commits

Author SHA1 Message Date
Shikha Panwar
c8a37376cc Create OWNERS file for secretkeeper interface am: 5afbeec13d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2864267

Change-Id: I152ab38acdb953a4976141895fc46c91836db04c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 15:24:19 +00:00
Shikha Panwar
3b396ae001 Merge "Secretkeeper VTS: Use trait CborSerializable" into main am: 0b0895a49b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2864533

Change-Id: I613ed270bc2b1dd35ae5b81933b10a367bbe584b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 15:23:38 +00:00
Shikha Panwar
5afbeec13d Create OWNERS file for secretkeeper interface
Bug: 291224769
Test: N/A
Change-Id: I650d4e640522876f79ea583cbbddd159776c8955
2023-12-08 15:16:41 +00:00
Shikha Panwar
0b0895a49b Merge "Secretkeeper VTS: Use trait CborSerializable" into main 2023-12-08 14:56:47 +00:00
Shikha Panwar
72e99b7604 Secretkeeper VTS: Use trait CborSerializable
With Request/Response packets impl CborSerializable. Use the methods
from those.

Test: atest libsecretkeeper_comm_nostd
Bug: 291228655
Change-Id: Ib0daf9c0aa3417befedbc130725fb3445b327079
2023-12-08 11:37:59 +00:00
Antoine Soulier
a0f647d59f Merge changes from topic "codec_extensibility" into main am: 8024b94e6d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2768609

Change-Id: I4ac2e62fa3843a56c2b4ae22da10be40551a2da0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 00:02:18 +00:00
Hongguang Chen
8988050362 Merge "Allow non-zero HCI interface numbers" into main am: 13c04c29cc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2858605

Change-Id: I82faa19507ff1b284fa92df68d16e2ae3fe2cc52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 00:01:11 +00:00
Antoine Soulier
8024b94e6d Merge changes from topic "codec_extensibility" into main
* changes:
  Codec Extensibility A2DP HAL Reference Implementation
  Codec Extensibility A2DP Specific AIDL
2023-12-07 23:51:48 +00:00
Hongguang Chen
13c04c29cc Merge "Allow non-zero HCI interface numbers" into main 2023-12-07 23:29:23 +00:00
Seth Moore
c3e1e032a9 Merge "Change the way rkp tool obtains serial number" into main am: 40f1230a1d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861829

Change-Id: I5476c9469ca4378969a5e2acd88785425baf6859
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 19:52:59 +00:00
Seth Moore
40f1230a1d Merge "Change the way rkp tool obtains serial number" into main 2023-12-07 19:14:37 +00:00
Alice Kuo
7ee4289ef1 Merge changes from topic "HFP-SCO-management" into main am: f3531c57ea
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2824291

Change-Id: Ibb2bb4bf5bc6c3bd2e0383a09b9b9ab86555bc97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 16:58:01 +00:00
Yuyang Huang
5f3c47778e Add HFP to BluetoothAudioSession am: aa70c11126
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2806338

Change-Id: I4b2d6b9eb954dfb433de5762275ce800d972d9bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 16:57:57 +00:00
Yuyang Huang
0ec3b5a607 Add HFP default implementation am: 91d7f8b916
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2806339

Change-Id: I011c70461c36c910e0fc22ce61946259f0a16b0f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 16:57:53 +00:00
Yuyang Huang
fbf5d5c9d7 Add HFP AIDL design am: e50be86fd4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2774933

Change-Id: I49d95135d541aaae443ab57ff9271c1752e72557
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 16:57:49 +00:00
Antoine SOULIER
4e34d05b7b Codec Extensibility A2DP HAL Reference Implementation
Test: m
Bug: 297037759
Change-Id: I84b32c2ef22da8c3e920e497501b9f16feaf803c
2023-12-07 16:51:57 +00:00
Antoine SOULIER
33c4e5a629 Codec Extensibility A2DP Specific AIDL
Test: m
Bug: 297037759
Change-Id: If9a73d2791781ad948ce76b55b9d29f7eba655e4
2023-12-07 16:51:01 +00:00
Alice Kuo
f3531c57ea Merge changes from topic "HFP-SCO-management" into main
* changes:
  Add VTS for HFP sessions
  Add HFP to BluetoothAudioSession
  Add HFP default implementation
  Add HFP AIDL design
2023-12-07 16:20:16 +00:00
chuanchuan.gao
18a9fa99a8 Change the way rkp tool obtains serial number
[Description]
1.Add patch to modify rkp_factory_extraction_tool, so
 that it can meet TV customer's factory product line.
2.Change the method for
rkp_factory_extraction_tool to get the serial number.
3.Introduce a new input parameter, serialno_prop,
to the function jsonEncodeCsrWithBuild.
4.Use the new property of serialno_prop if it is set,
otherwise defaults to "ro.serialno".

Test:
1.build pass
2.AC on/off pass
3.run "rkp_factory_extraction_tool
--output_format build+csr
--serialno_prop $(customer_prop) > csr.json" pass
4.run "rkp_factory_extraction_tool
--output_format build+csr > csr.json" pass
5.VtsHalRemotelyProvisionedComponentTargetTest pass
6.libkeymint_remote_prov_support_test pass
7.VtsAidlKeyMintTargetTest pass

Bug: 313811996
Change-Id: I8aa83bacab22f0a28bc54aea9e816f75a382ffde
2023-12-07 18:23:15 +08:00
David Drysdale
c074a562e3 Merge "Secretkeeper: add AuthGraph key exchange" into main am: 986e92e098
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2824792

Change-Id: I5f6c0773a48b1ce9f911bc689fc32360049f2e88
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 07:31:27 +00:00
David Drysdale
986e92e098 Merge "Secretkeeper: add AuthGraph key exchange" into main 2023-12-07 06:56:12 +00:00
Bao Do
7239943cb5 Add VTS for HFP sessions
Contains VTS tests for HFP software encoding / decoding
and HFP hardware sessions.

Bug: 265057196
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I4bbdc07a0afa0a889a8cf34019c6685ebd4fa0a0
2023-12-07 05:57:26 +00:00
Yuyang Huang
aa70c11126 Add HFP to BluetoothAudioSession
Test: m .
Bug: 265057196
Change-Id: I0e2e9d0f34ebf3f732c4f2da799c4c30f52bdeef
2023-12-07 05:54:59 +00:00
Yuyang Huang
91d7f8b916 Add HFP default implementation
Bug: 265057196
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I712eb4db0d776b465436ae54730ad883ecaf40a0
2023-12-07 05:54:59 +00:00
Yuyang Huang
e50be86fd4 Add HFP AIDL design
Bug: 265057196
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I066c8c0db7516da8709c32558fe3b21ddbd91054
2023-12-07 05:54:58 +00:00
Tom Huang
9a9f9eb4fd Merge "Bluetooth Finder: fix typo android.hardware.bluetooth.finder-service.default" into main am: 2a824c99f5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861289

Change-Id: Ic32582ff85bbd69e493581db6fc037cadc4dded4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-07 05:16:45 +00:00
Tom Huang
2a824c99f5 Merge "Bluetooth Finder: fix typo android.hardware.bluetooth.finder-service.default" into main 2023-12-07 04:15:37 +00:00
yanggang.yang
c59d2d80ee Allow non-zero HCI interface numbers
[Description]
when driver re-register hci device, it may register hci 1
[Root Cause]
In the kernel mechanism, there may be a timing issue. when driver re-register hci device,kernel may not completely unregister hci 0.But aidl only open hci 0.
[Solution]
assign a value to the hci interface based on the device node found by AIDL

[Test Report]
Insert the bt chip into the usb 2.0 port, and then suspend the TV. The bt chip will be disconnected due to the USB power outage. And then quickly resume the TV,check whether the Bluetooth state is on. Suspend and resume for several times, check for bt state.

Change-Id: I57fd4a22c956e0cf2b4a516247c258493163e51a
BUG: 314149416
2023-12-07 02:07:58 +00:00
Seth Moore
0b79df3f01 Fix incorrect link rendering. am: 0293d63b50
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861887

Change-Id: Ib013f6c644ec1d8a202b463444dac2b2d71e9324
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 17:03:12 +00:00
Seth Moore
0293d63b50 Fix incorrect link rendering.
The MD format was wrong for some RKP-VM links.

Change-Id: I03c9b4c394cbfc9c85b6c5cb3ea3625da2eb09a3
2023-12-06 15:53:19 +00:00
Yi Kong
4eeda91a4a Fix -Wunused-variable compiler warning am: 810d41a774
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861356

Change-Id: I3383d70ff4387df65a0fdcaf0004061e5ad0c9a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 12:29:41 +00:00
kuanyuhuang
81e941fef5 Bluetooth Finder: fix typo android.hardware.bluetooth.finder-service.default
Bug: 314360499
Test: atest vts_treble_vintf_vendor_test
Change-Id: I4de7d83a4fad133d1471ffd17d5a41b3db413ff2
2023-12-06 11:23:09 +00:00
David Drysdale
8898d2ec57 Secretkeeper: add AuthGraph key exchange
Add `ISecretkeeper::getAuthGraphKe()` method to the Secretkeeper HAL.

Align the AIDL targets between AuthGraph and Secretkeeper, and add
some defaults that automatically link to the current version of the
Secretkeeper AIDL targets.

Move the non-secure implementation of AuthGraph to run the TA in a
separate thread.

Alter the nonsecure implementation of Secretkeeper so that it no longer
directly implements Secretkeeper functionality, but instead re-uses
common code from the Secretkeeper reference implementation.  This
involves re-using the common implementation of the HAL service (from
`authgraph_hal`), but also involves using the reference implementation
of the the TA code that would normally run in a separate secure
environment.  The latter code expects to run in a single-threaded
environment, so run it in a single local thread.

Note that the negotiated session keys emitted by AuthGraph are not yet
used by Secretkeeper (coming in a subsequent CL).

Extend the Secretkeeper VTS tests to invoke the AuthGraph VTS inner
tests on the returned IAuthGraphKeyExchange instance, exercising the
instance as an AuthGraph sink.

Bug: 291228560
Test: VtsSecretkeeperTargetTest
Change-Id: Ia2c97976edc4530b2c902d95a74f3c340d342174
2023-12-06 06:50:19 +00:00
Yi Kong
810d41a774 Fix -Wunused-variable compiler warning
Test: presubmit
Change-Id: I146d3435fe76da7f300452a14b62ce430c38ae36
2023-12-06 14:03:58 +09:00
Jooyung Han
d9e6e8b531 Merge "Create secretkeeper HAL APEX" into main am: 577cc0ac9b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2851666

Change-Id: I3a6eb43ac52ae53c4abfd2a074cc3ea1c8fdcfb2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 02:01:04 +00:00
Jooyung Han
577cc0ac9b Merge "Create secretkeeper HAL APEX" into main 2023-12-06 01:45:22 +00:00
Nagendra Prasad Nagarle Basavaraju
4aac55a743 [automerger skipped] [DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response am: 378bd90e66 -s ours am: 7ab862b625 -s ours am: 965b7e570b -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2858865

Change-Id: I188fc82690af3f464205894d80efcc93d30fe8aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 01:40:36 +00:00
Shunkai Yao
157e954972 Merge "DownmixProcess: Add tests to validate the downmix process." into main am: ab269e2fc7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2849236

Change-Id: I5e75d980c2e8bfcea9eea304f9f470c95d3a60d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 01:28:17 +00:00
Nagendra Prasad Nagarle Basavaraju
965b7e570b [automerger skipped] [DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response am: 378bd90e66 -s ours am: 7ab862b625 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2858865

Change-Id: I7a9ed2b7d70f4ccc204eafcda198ab8cac60032d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 00:41:38 +00:00
Shunkai Yao
ab269e2fc7 Merge "DownmixProcess: Add tests to validate the downmix process." into main 2023-12-06 00:35:39 +00:00
Nagendra Prasad Nagarle Basavaraju
7ab862b625 [automerger skipped] [DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response am: 378bd90e66 -s ours
am skip reason: subject contains skip directive

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2858865

Change-Id: Ie5356d995f91acf3ffe0f3b59a291fe2ec1d41e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 00:06:35 +00:00
Nagendra Prasad Nagarle Basavaraju
378bd90e66 [DO NOT MERGE] VTS setGetAllowedNetworkTypesBitmap handle "LTE + LTE_CA" response
Handle RIL reporting response for getAllowedNetworkTypesBitmap() with
"LTE_CA" responses until Android T.

Bug: 308538353
Test: atest VtsHalRadioTargetTest , Device test @ b/308538353#comment29
Change-Id: I1916422c88ac6dad4a9d0777b32182b599e9c30c
2023-12-05 21:26:05 +00:00
Antoine Soulier
33e767ffea Merge changes I3f440a75,I5566a1ef into main am: 9820d5d5ad
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2763946

Change-Id: I9383b4ddf13e80686e53d85504b5099521609be0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-05 19:38:52 +00:00
Mikhail Naganov
c9ba98773a Merge "audio: Adjust after "bus" device type change" into main am: a0df73110e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2858026

Change-Id: Idf6666c4f30e3a75cc0f750cfd89b484f798645f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-05 19:37:31 +00:00
Antoine Soulier
9820d5d5ad Merge changes I3f440a75,I5566a1ef into main
* changes:
  Codec Extensibility Base AIDL
  Upgrade VNDK version to 4
2023-12-05 17:51:38 +00:00
Mikhail Naganov
a0df73110e Merge "audio: Adjust after "bus" device type change" into main 2023-12-05 17:32:02 +00:00
Sneha Patil
f533b50925 DownmixProcess: Add tests to validate the downmix process.
Added methods to set and validate parameters.
Added test to verify multichannel to stereo conversion for STRIP type.
Added test to verify multichannel to stereo conversion for FOLD type.

Bug:314953788
Test: atest VtsHalDownmixTargetTest
Change-Id: I31ee4df3eac6ae42e3e3cabebd1622e860581eab
2023-12-05 22:09:05 +05:30
Mikhail Naganov
43269bc713 audio: Adjust after "bus" device type change
The `CONNECTION_BUS` constant is deprecated.
`{IN|OUT}_BUS` should be used instead of `{IN|OUT}_DEVICE`
for clarity.

Bug: 303926380
Test: m
Change-Id: I73365abbcc16550875cf307eafa46b1200698df4
2023-12-04 14:51:49 -08:00
William McVicker
6113fc26ac Merge "Update Android V compatibility matrix" into main am: 1ba87c3848
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2854992

Change-Id: Id56afc33e284436dc03dccc4d055652d8ab8743b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-04 18:56:24 +00:00
Antoine SOULIER
8c90f1f7b5 Codec Extensibility Base AIDL
Test: m
Bug: 297037759
Change-Id: I3f440a75aeada6c8739b89f89a6d942488c8ce77
2023-12-04 18:51:16 +00:00