Commit graph

34468 commits

Author SHA1 Message Date
Tomasz Wasilczyk
70ac7bfb86 Implement RadioNetwork for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: Ic44227c9e2cd38ead97d3f3dda2e028052876568
2021-12-02 09:55:14 -08:00
Tomasz Wasilczyk
0716169065 Implement RadioData for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I5770ee4125cd9e6f118200ecee889ad785e8929f
2021-12-02 09:55:06 -08:00
Tomasz Wasilczyk
7f51a9ad1e Implement RadioSim for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I82d27049858e578522b83811a787b259e67d00a4
2021-12-02 09:54:56 -08:00
Tomasz Wasilczyk
9ddc87f6af Implement RadioMessaging for AIDL-HIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I10f0fc0b871fbaf26145c83211770a82af6adc61
2021-12-02 09:54:48 -08:00
Tomasz Wasilczyk
bff3b5b4c3 Initial implementation of HIDL-AIDL Telephony HAL translator
Bug: 203699028
Test: Boot and grep logcat against radiocompat
Change-Id: I182edf3b1fa39b30818e79a68fc586f12b677d19
2021-12-02 09:54:35 -08:00
David Drysdale
8aeb7ef2b4 Merge "KeyMint VTS: option to skip BOOT_PATCHLEVEL check" 2021-12-02 17:44:15 +00:00
David Drysdale
2fedeb5718 Merge "Use defaults to reference current keymint version" am: ddf63247e9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1898852

Change-Id: I8cec83ec6c73c7fbaba8c2340c56aee50addce7c
2021-12-02 08:09:33 +00:00
David Drysdale
ddf63247e9 Merge "Use defaults to reference current keymint version" 2021-12-02 07:55:03 +00:00
David Drysdale
dbbbe2ea6d KeyMint VTS: option to skip BOOT_PATCHLEVEL check
The KeyMint spec requires that all generated keys include the
BOOT_PATCHLEVEL for the device.

However, the VTS test sometimes gets run in an environment where this
is not possible; specifically the Trusty QEMU tests don't have the
bootloader -> KeyMint communication that is needed to populate this
information.

Add a command line flag that disables checks for BOOT_PATCHLEVEL to
cope with these scenarios, making sure that it defaults to having the
checks enabled.

Test: VtsAidlKeyMintTargetTest
Change-Id: I215c8a18afbd68af199d49f74b977ad7cac6b805
2021-12-02 07:52:33 +00:00
Treehugger Robot
7770509519 Merge "KeyMint: Test invalid AES key sizes" am: bb0ab83af8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1893476

Change-Id: Ief97104f2037e999d36ad6cd68a339caa1e402a0
2021-12-01 14:07:38 +00:00
Treehugger Robot
bb0ab83af8 Merge "KeyMint: Test invalid AES key sizes" 2021-12-01 13:48:57 +00:00
Kedar Chitnis
e8222cb95a Merge "dumpstate: Add dumpstate device AIDL HAL" am: 745a344a7c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895055

Change-Id: I2850f1eca597c0f9800f7e84ad749e8b878420b5
2021-12-01 12:30:31 +00:00
Kedar Chitnis
745a344a7c Merge "dumpstate: Add dumpstate device AIDL HAL" 2021-12-01 12:16:33 +00:00
Treehugger Robot
d9964bb31a Merge "health: properly support charger mode." am: 21c1e163d4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1894881

Change-Id: I3d7d0071a74e49c1312cf8c959972905941b047f
2021-12-01 04:01:37 +00:00
Treehugger Robot
21c1e163d4 Merge "health: properly support charger mode." 2021-12-01 03:45:49 +00:00
David Drysdale
2bd0d43b24 Turn off CFI for the Keymaster VTS
On a bramble device, observed a crash in the VTS binary itself when
executing BoringSSL signature verification code locally (i.e. with no
KeyMaster interaction involved).

The crash call stack involves CFI checks, and seems to occur at the
point when some BoringSSL digest calculation code invokes a function
pointer.

 - SHA1_Update passes &sha1_block_data_order to (inlined)...
 - crypto_md32_update() which invokes the function pointer
   via its block_func parameter.

Moving the BoringSSL dependency from static_libs: libcrypto_static to
shared_libs: libcrypto makes the crash go away, but a smaller change
that also fixes the problem is to disable CFI checks for the test
binary.

This approach was inspired by:
ab65cd0e89%5E%21/#F0

The same problem looks to be relevant for the bugs listed below.

Bug: 206496340
Bug: 206498742
Test: VtsHalKeymasterV4_0TargetTest --gtest_filter="*VerificationOperationsTest.RsaAllPaddingsAndDigests*"
Change-Id: I12b145dad5535846d68c97954d31a93123bb95e7
2021-11-30 15:27:32 +00:00
David Drysdale
61cf943208 Merge "Fix flaky corrupted padding tests" am: a33f46bc2a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1903312

Change-Id: I5e5b1e62c017e2e1db8ce099e1cabda6501ce44c
2021-11-30 07:00:16 +00:00
David Drysdale
a33f46bc2a Merge "Fix flaky corrupted padding tests" 2021-11-30 06:44:30 +00:00
Yifan Hong
7a6956ee0d health: add libhealthshim
This is a shim library that wraps a HIDL IHealth to
an AIDL BnHealth.

Also add tests for the library.

Bug: 177269435
Test: libhealthshim_test

Change-Id: Ia5f32c1ae0693c70cf698b46b48d5f77006cf6c7
2021-11-29 16:43:05 -08:00
Treehugger Robot
94dea4096c Merge "health storage AIDL HAL logs more." am: 4b0c7f0e7a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1905374

Change-Id: Ifc15c002af051dfae4b0b8b3efcdd79ecb1011ed
2021-11-29 23:52:45 +00:00
Treehugger Robot
4b0c7f0e7a Merge "health storage AIDL HAL logs more." 2021-11-29 23:33:55 +00:00
Yifan Hong
9f1639f6b4 health storage AIDL HAL logs more.
Test: builds
Bug: 206775954
Change-Id: I211e29e495a974e9c93ac97c7dd9ef93e1bcb5ef
2021-11-29 22:03:15 +00:00
David Drysdale
4c1f6ac496 Fix flaky corrupted padding tests
Transfer the fix in http://aosp/1745035 from the KeyMint VTS test back
into the keymaster VTS test.

Bug: 189261752
Test: VtsHalKeymasterV4_0TargetTest
Change-Id: I5f0a69255cfe980dd6e71fa29ff06a84cb668f6d
2021-11-29 16:17:11 +00:00
Kedar Chitnis
bc09321ae2 dumpstate: Add dumpstate device AIDL HAL
- Add interface AIDL files
- Add default example service. Example service is setup as a
  lazy service.
- Add VTS test having same coverage as dumpstate device HIDL
  1.1 VTS tests

Bug: 205760700
Test: VtsHalDumpstateTargetTest, dumpstate, dumpstate_test, dumpsys
Change-Id: I63f177af5e1e16cad392ce594f1b438e5610d757
2021-11-25 07:44:46 +00:00
David Gross
0ca4f1a02e Add NNAPI specification and infrastructure for FL7. am: 2edfc467f1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1858468

Change-Id: I74c7908ce69fef43a56985897b37869da4ea0743
2021-11-23 02:30:44 +00:00
David Gross
2edfc467f1 Add NNAPI specification and infrastructure for FL7.
Adds operations MIRROR_PAD and REVERSE.
Extends RSQRT to support QUANT8_ASYMM and QUANT8_ASYMM_SIGNED.

DOES NOT include tests or CPU reference implementation.

Bug: 202280917

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksTargetTest

Merged-In: I0b2133346b996849faac00c46885e3633c78f024
Change-Id: I0b2133346b996849faac00c46885e3633c78f024
(cherry picked from commit 04ed8595b5)
2021-11-22 14:41:51 -08:00
Mikhail Naganov
384ecfa68e Merge "audio VTS: Consider only attached devices for stream tests" am: 1323e4bd90
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895277

Change-Id: Ibb82fec3b1299b24adaaa9c1ceb15b821b80e911
2021-11-22 17:48:46 +00:00
Mikhail Naganov
1323e4bd90 Merge "audio VTS: Consider only attached devices for stream tests" 2021-11-22 17:30:19 +00:00
Serik Beketayev
6e506b6756 [IRadioConfig] Removing SimSlotStatus.cardActive am: 23692c7e20
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1895279

Change-Id: I0d3031458415f0b7095b0eb0375d253c0e906fd5
2021-11-22 17:09:19 +00:00
David Drysdale
49255346b4 Use defaults to reference current keymint version
The KeyMint HAL will soon be updated for a new version. To make this
process easier, add a cc_defaults and rust_defaults that references
the "current" version, and use this elsewhere. This should hopefully
mean that a future version bump only needs to happen in the defaults.

Test: TreeHugger
Change-Id: If7dd0c5778acb92177e16fd4fb4a04dcb837ad06
2021-11-22 16:13:08 +00:00
Treehugger Robot
36c5db90b3 Merge "health: fix running HAL in recovery mode." am: b75e7b43c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1893226

Change-Id: Ibb7b514aa4c583a48ed2ef2c8b9c6d7c79736dbb
2021-11-20 00:09:03 +00:00
Serik Beketayev
23692c7e20 [IRadioConfig] Removing SimSlotStatus.cardActive
Cleaning this up, since structure was changed for AIDL.

Bug: 205585789
Test: m
Change-Id: Ia59a1f1e3b66cd45f8ad9d1f4c2fb3af5fb09dc0
Merged-In: Ia59a1f1e3b66cd45f8ad9d1f4c2fb3af5fb09dc0
2021-11-19 16:06:12 -08:00
Mikhail Naganov
3483b0ad7e audio VTS: Consider only attached devices for stream tests
V6 and V7 use the audio policy configuration file for generating
the set of test profiles. The generator must only take into
account profiles of mix ports that are routed to device ports of
attached devices. Otherwise the HAL can rightfully refuse
to create a stream for the profile when the device isn't attached.

Bug: 205808571
Test: atest HalAudioV6_0GeneratorTest
Test: atest HalAudioV7_0GeneratorTest
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I798f978c1c0bc32831c20e4b08338b462d8eea16
2021-11-19 22:25:19 +00:00
Treehugger Robot
b75e7b43c5 Merge "health: fix running HAL in recovery mode." 2021-11-19 21:25:33 +00:00
David Drysdale
bc899371f4 Merge "KeyMint VTS: don't combine ATTEST_KEY with SIGN" am: 4f51da1c9e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1877245

Change-Id: Iebb88934dda5814a3c60112965baa0b67ba3ea73
2021-11-19 08:11:04 +00:00
David Drysdale
4f51da1c9e Merge "KeyMint VTS: don't combine ATTEST_KEY with SIGN" 2021-11-19 07:53:34 +00:00
Michael Butler
58b61dbce0 Merge "Rename Version::ANDROID_* to kVersionFeatureLevel* -- hal" am: 8f6b82c7a5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1896056

Change-Id: I698336ca059e99a4967c0612359ee0d5229f479e
2021-11-19 03:14:38 +00:00
Michael Butler
8f6b82c7a5 Merge "Rename Version::ANDROID_* to kVersionFeatureLevel* -- hal" 2021-11-19 02:45:32 +00:00
Yifan Hong
87ece16955 health: fix running HAL in recovery mode.
- Add proper RC files
- overrides charger.recovery
- update readme for implementing recovery mode

Test: pass
Bug: 177269435
Change-Id: Id60b57978e4e5bf78af32bd67523333ba0c2a04d
2021-11-19 02:18:21 +00:00
Michael Butler
a9ebf76162 Merge "Make NNAPI Version more structured -- hal" am: 71b595549c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1890277

Change-Id: Idc83d3c0b5e2cfb1d6da853b0754cbc108f57681
2021-11-19 00:17:10 +00:00
Michael Butler
71b595549c Merge "Make NNAPI Version more structured -- hal" 2021-11-18 23:58:42 +00:00
Michael Butler
60a7b86cf0 Rename Version::ANDROID_* to kVersionFeatureLevel* -- hal
Prior to this change, version constants (e.g., Version::ANDROID_S) were
public static constants to make the version constants look as if they
were enum values. However, this method prevented versions from being
constexpr, because the Version type was incomplete by that point in
time. This change moves these version constants outside of the Version
struct, and makes them constexpr. They have the new names:
* Version::ANDROID_OC_MR1 -> kVersionFeatureLevel1
* Version::ANDROID_P -> kVersionFeatureLevel2
* Version::ANDROID_Q -> kVersionFeatureLevel3
* Version::ANDROID_R -> kVersionFeatureLevel4
* Version::ANDROID_S -> kVersionFeatureLevel5
* Version::FEATURE_LEVEL_6 -> kVersionFeatureLevel6
* Version::EXPERIMENTAL -> kVersionFeatureLevelExperimental

Bug: 206975939
Test: mma
Change-Id: Ibf5f2fdb1459a69c51865aa5fdcd0cb0c3a88ade
2021-11-18 23:56:54 +00:00
Michael Butler
34f0a8f418 Make NNAPI Version more structured -- hal
Prior to this topic, NNAPI Versions were linear and represented by an
enumeration. However, this did not properly account for the
non-linearity of runtime-specific features such as a control flow
operations with operands of dynamic sizes. This topic alters Version to
be a struct containing a feature level enumeration as well as a boolean
which indicates whether there are runtime-specific features.

Bug: 206975939
Test: mma
Test: NeuralNetworksTests_static
Change-Id: I78c54ef597bf269b137f2835332bdedac49883d4
2021-11-18 23:56:15 +00:00
Treehugger Robot
f44059b065 Merge "Wifi: P2P VTS tests fail with no P2P support" am: a4a390c0d9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1892882

Change-Id: Iba6f9e413f5f49cf0bc09ec70339e982dc669ed2
2021-11-18 21:58:54 +00:00
Treehugger Robot
a4a390c0d9 Merge "Wifi: P2P VTS tests fail with no P2P support" 2021-11-18 21:31:09 +00:00
Xin Li
76364127bf Merge "Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918" into stage-aosp-master 2021-11-18 21:29:03 +00:00
Yifan Hong
a68e416fee health: Update README.md for SELinux rule example am: d4ebad8aef
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1894882

Change-Id: I97441c5c98ae10ef8449bf7e7a8f199556bdac95
2021-11-17 18:46:16 +00:00
Yifan Hong
04c4754b9c health: properly support charger mode.
Use charger_vendor SELinux context.

Also update readme to reflect the change.

Test: manual in offline-charging mode
Bug: 177269435
Change-Id: Icf5cd9d579b3365037e2d360fcc29b0ef4be1b15
2021-11-17 07:27:12 +00:00
Yifan Hong
d4ebad8aef health: Update README.md for SELinux rule example
Test: none
Bug: 177269435
Change-Id: Ifd5ef99e7dd1c27fe9973daa65ad70714f86a46b
2021-11-16 23:22:16 -08:00
Carter Hsu
66cfe34ef4 Merge "audio: Support 64bit configuration on 32+64bit compatible OS" am: f665b8fa86
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1891181

Change-Id: Ib5c59bedf9314d3a026f3496ecc0830ff649032d
2021-11-17 05:06:44 +00:00